qunicodetools.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qunicodetools.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include "qunicodetools_p.h"-
35-
36#include "qunicodetables_p.h"-
37#include "qvarlengtharray.h"-
38-
39#include "qharfbuzz_p.h"-
40-
41#define FLAG(x) (1 << (x))-
42-
43QT_BEGIN_NAMESPACE-
44-
45Q_AUTOTEST_EXPORT int qt_initcharattributes_default_algorithm_only = 0;-
46-
47namespace QUnicodeTools {-
48-
49// ------------------------------------------------------------------------------------------------------
50//-
51// The text boundaries determination algorithm.-
52// See http://www.unicode.org/reports/tr29/tr29-27.html-
53//-
54// ------------------------------------------------------------------------------------------------------
55-
56namespace GB {-
57-
58static const uchar breakTable[QUnicodeTables::GraphemeBreak_LVT + 1][QUnicodeTables::GraphemeBreak_LVT + 1] = {-
59// Other CR LF Control Extend RI Prepend S-Mark L V T LV LVT-
60 { true , true , true , true , false, true , true , false, true , true , true , true , true }, // Other-
61 { true , true , false, true , true , true , true , true , true , true , true , true , true }, // CR-
62 { true , true , true , true , true , true , true , true , true , true , true , true , true }, // LF-
63 { true , true , true , true , true , true , true , true , true , true , true , true , true }, // Control-
64 { true , true , true , true , false, true , true , false, true , true , true , true , true }, // Extend-
65 { true , true , true , true , false, false, true , false, true , true , true , true , true }, // RegionalIndicator-
66 { false, true , true , true , false, false, false, false, false, false, false, false, false }, // Prepend-
67 { true , true , true , true , false, true , true , false, true , true , true , true , true }, // SpacingMark-
68 { true , true , true , true , false, true , true , false, false, false, true , false, false }, // L-
69 { true , true , true , true , false, true , true , false, true , false, false, true , true }, // V-
70 { true , true , true , true , false, true , true , false, true , true , false, true , true }, // T-
71 { true , true , true , true , false, true , true , false, true , false, false, true , true }, // LV-
72 { true , true , true , true , false, true , true , false, true , true , false, true , true }, // LVT-
73};-
74-
75} // namespace GB-
76-
77static void getGraphemeBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
78{-
79 QUnicodeTables::GraphemeBreakClass lcls = QUnicodeTables::GraphemeBreak_LF; // to meet GB1-
80 for (quint32 i = 0; i != len; ++i) {
i != lenDescription
TRUEevaluated 5305882 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 205495 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205495-5305882
81 quint32 pos = i;-
82 uint ucs4 = string[i];-
83 if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5305744 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
i + 1 != lenDescription
TRUEevaluated 110 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
28-5305744
84 ushort low = string[i + 1];-
85 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 82 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
28-82
86 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
87 ++i;-
88 }
executed 82 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
82
89 }
executed 110 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
110
90-
91 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
92 QUnicodeTables::GraphemeBreakClass cls = (QUnicodeTables::GraphemeBreakClass) prop->graphemeBreakClass;-
93-
94 if (Q_LIKELY(GB::breakTable[lcls][cls]))
__builtin_expe...][cls]), true)Description
TRUEevaluated 5305473 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 409 times by 3 tests
Evaluated by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
409-5305473
95 attributes[pos].graphemeBoundary = true;
executed 5305473 times by 114 tests: attributes[pos].graphemeBoundary = true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5305473
96-
97 lcls = cls;-
98 }
executed 5305882 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5305882
99-
100 attributes[len].graphemeBoundary = true; // GB2-
101}
executed 205495 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205495
102-
103-
104namespace WB {-
105-
106enum Action {-
107 NoBreak,-
108 Break,-
109 Lookup,-
110 LookupW-
111};-
112-
113static const uchar breakTable[QUnicodeTables::WordBreak_ExtendNumLet + 1][QUnicodeTables::WordBreak_ExtendNumLet + 1] = {-
114// Other CR LF Newline Extend RI Katakana HLetter ALetter SQuote DQuote MidNumLet MidLetter MidNum Numeric ExtendNumLet-
115 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // Other-
116 { Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // CR-
117 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // LF-
118 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // Newline-
119 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // Extend-
120 { Break , Break , Break , Break , NoBreak, NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // RegionalIndicator-
121 { Break , Break , Break , Break , NoBreak, Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , NoBreak }, // Katakana-
122 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Lookup , LookupW, LookupW, Break , NoBreak, NoBreak }, // HebrewLetter-
123 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Break , LookupW, LookupW, Break , NoBreak, NoBreak }, // ALetter-
124 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // SingleQuote-
125 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // DoubleQuote-
126 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // MidNumLet-
127 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // MidLetter-
128 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // MidNum-
129 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, Lookup , Break , Lookup , Break , Lookup , NoBreak, NoBreak }, // Numeric-
130 { Break , Break , Break , Break , NoBreak, Break , NoBreak, NoBreak, NoBreak, Break , Break , Break , Break , Break , NoBreak, NoBreak }, // ExtendNumLet-
131};-
132-
133} // namespace WB-
134-
135static void getWordBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
136{-
137 enum WordType {-
138 WordTypeNone, WordTypeAlphaNumeric, WordTypeHiraganaKatakana-
139 } currentWordType = WordTypeNone;-
140-
141 QUnicodeTables::WordBreakClass cls = QUnicodeTables::WordBreak_LF; // to meet WB1-
142 for (quint32 i = 0; i != len; ++i) {
i != lenDescription
TRUEevaluated 134912 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 1553 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1553-134912
143 quint32 pos = i;-
144 uint ucs4 = string[i];-
145 if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 134785 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
i + 1 != lenDescription
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-134785
146 ushort low = string[i + 1];-
147 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-127
148 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
149 ++i;-
150 }
executed 127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
127
151 }
executed 127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
127
152-
153 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
154 QUnicodeTables::WordBreakClass ncls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass;-
155#ifdef QT_BUILD_INTERNAL-
156 if (qt_initcharattributes_default_algorithm_only) {
qt_initcharatt...algorithm_onlyDescription
TRUEevaluated 5127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 129785 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
5127-129785
157 // as of Unicode 5.1, some punctuation marks were mapped to MidLetter and MidNumLet-
158 // which caused "hi.there" to be treated like if it were just a single word;-
159 // we keep the pre-5.1 behavior by remapping these characters in the Unicode tables generator-
160 // and this code is needed to pass the coverage tests; remove once the issue is fixed.-
161 if (ucs4 == 0x002E) // FULL STOP
ucs4 == 0x002EDescription
TRUEevaluated 290 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 4837 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
290-4837
162 ncls = QUnicodeTables::WordBreak_MidNumLet;
executed 290 times by 1 test: ncls = QUnicodeTables::WordBreak_MidNumLet;
Executed by:
  • tst_QTextBoundaryFinder
290
163 else if (ucs4 == 0x003A) // COLON
ucs4 == 0x003ADescription
TRUEevaluated 384 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 4453 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
384-4453
164 ncls = QUnicodeTables::WordBreak_MidLetter;
executed 384 times by 1 test: ncls = QUnicodeTables::WordBreak_MidLetter;
Executed by:
  • tst_QTextBoundaryFinder
384
165 }
executed 5127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
5127
166#endif-
167-
168 uchar action = WB::breakTable[cls][ncls];-
169 switch (action) {-
170 case WB::Break:
executed 3856 times by 3 tests: case WB::Break:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3856
171 break;
executed 3856 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3856
172 case WB::NoBreak:
executed 130284 times by 3 tests: case WB::NoBreak:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
130284
173 if (Q_UNLIKELY(ncls == QUnicodeTables::WordBreak_Extend)) {
__builtin_expe...xtend), false)Description
TRUEevaluated 1100 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 129184 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1100-129184
174 // WB4: X(Extend|Format)* -> X-
175 continue;
executed 1100 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
1100
176 }-
177 break;
executed 129184 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
129184
178 case WB::Lookup:
executed 373 times by 1 test: case WB::Lookup:
Executed by:
  • tst_QTextBoundaryFinder
373
179 case WB::LookupW:
executed 399 times by 1 test: case WB::LookupW:
Executed by:
  • tst_QTextBoundaryFinder
399
180 for (quint32 lookahead = i + 1; lookahead < len; ++lookahead) {
lookahead < lenDescription
TRUEevaluated 818 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 362 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
362-818
181 ucs4 = string[lookahead];-
182 if (QChar::isHighSurrogate(ucs4) && lookahead + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 806 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
lookahead + 1 != lenDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-806
183 ushort low = string[lookahead + 1];-
184 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-12
185 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
186 ++lookahead;-
187 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
12
188 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
12
189-
190 prop = QUnicodeTables::properties(ucs4);-
191 QUnicodeTables::WordBreakClass tcls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass;-
192-
193 if (Q_UNLIKELY(tcls == QUnicodeTables::WordBreak_Extend)) {
__builtin_expe...xtend), false)Description
TRUEevaluated 408 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 410 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
408-410
194 // WB4: X(Extend|Format)* -> X-
195 continue;
executed 408 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
408
196 }-
197-
198 if (Q_LIKELY(tcls == cls || (action == WB::LookupW && (tcls == QUnicodeTables::WordBreak_HebrewLetter
__builtin_expe...tter))), true)Description
TRUEevaluated 122 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 288 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
122-288
199 || tcls == QUnicodeTables::WordBreak_ALetter)))) {-
200 i = lookahead;-
201 ncls = tcls;-
202 action = WB::NoBreak;-
203 }
executed 122 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
122
204 break;
executed 410 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
410
205 }-
206 if (action != WB::NoBreak) {
action != WB::NoBreakDescription
TRUEevaluated 650 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 122 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
122-650
207 action = WB::Break;-
208 if (Q_UNLIKELY(ncls == QUnicodeTables::WordBreak_SingleQuote && cls == QUnicodeTables::WordBreak_HebrewLetter))
__builtin_expe...etter), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 648 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
2-648
209 action = WB::NoBreak; // WB7a
executed 2 times by 1 test: action = WB::NoBreak;
Executed by:
  • tst_QTextBoundaryFinder
2
210 }
executed 650 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
650
211 break;
executed 772 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
772
212 }-
213-
214 cls = ncls;-
215 if (action == WB::Break) {
action == WB::BreakDescription
TRUEevaluated 4504 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 129308 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
4504-129308
216 attributes[pos].wordBreak = true;-
217 if (currentWordType != WordTypeNone)
currentWordTyp...= WordTypeNoneDescription
TRUEevaluated 1294 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 3210 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1294-3210
218 attributes[pos].wordEnd = true;
executed 1294 times by 3 tests: attributes[pos].wordEnd = true;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1294
219 switch (cls) {-
220 case QUnicodeTables::WordBreak_Katakana:
executed 100 times by 1 test: case QUnicodeTables::WordBreak_Katakana:
Executed by:
  • tst_QTextBoundaryFinder
100
221 currentWordType = WordTypeHiraganaKatakana;-
222 attributes[pos].wordStart = true;-
223 break;
executed 100 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
100
224 case QUnicodeTables::WordBreak_HebrewLetter:
executed 89 times by 1 test: case QUnicodeTables::WordBreak_HebrewLetter:
Executed by:
  • tst_QTextBoundaryFinder
89
225 case QUnicodeTables::WordBreak_ALetter:
executed 998 times by 3 tests: case QUnicodeTables::WordBreak_ALetter:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
998
226 case QUnicodeTables::WordBreak_Numeric:
executed 564 times by 1 test: case QUnicodeTables::WordBreak_Numeric:
Executed by:
  • tst_QTextBoundaryFinder
564
227 currentWordType = WordTypeAlphaNumeric;-
228 attributes[pos].wordStart = true;-
229 break;
executed 1651 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1651
230 default:
executed 2753 times by 3 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2753
231 currentWordType = WordTypeNone;-
232 break;
executed 2753 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2753
233 }-
234 }-
235 }
executed 133812 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
133812
236-
237 if (currentWordType != WordTypeNone)
currentWordTyp...= WordTypeNoneDescription
TRUEevaluated 457 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 1096 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
457-1096
238 attributes[len].wordEnd = true;
executed 457 times by 3 tests: attributes[len].wordEnd = true;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
457
239 attributes[len].wordBreak = true; // WB2-
240}
executed 1553 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1553
241-
242-
243namespace SB {-
244-
245enum State {-
246 Initial,-
247 Lower,-
248 Upper,-
249 LUATerm,-
250 ATerm,-
251 ATermC,-
252 ACS,-
253 STerm,-
254 STermC,-
255 SCS,-
256 BAfterC,-
257 BAfter,-
258 Break,-
259 Lookup-
260};-
261-
262static const uchar breakTable[BAfter + 1][QUnicodeTables::SentenceBreak_Close + 1] = {-
263// Other CR LF Sep Extend Sp Lower Upper OLetter Numeric ATerm SContinue STerm Close-
264 { Initial, BAfterC, BAfter , BAfter , Initial, Initial, Lower , Upper , Initial, Initial, ATerm , Initial, STerm , Initial }, // Initial-
265 { Initial, BAfterC, BAfter , BAfter , Lower , Initial, Initial, Initial, Initial, Initial, LUATerm, Initial, STerm , Initial }, // Lower-
266 { Initial, BAfterC, BAfter , BAfter , Upper , Initial, Initial, Upper , Initial, Initial, LUATerm, STerm , STerm , Initial }, // Upper-
267-
268 { Lookup , BAfterC, BAfter , BAfter , LUATerm, ACS , Initial, Upper , Break , Initial, ATerm , STerm , STerm , ATermC }, // LUATerm-
269 { Lookup , BAfterC, BAfter , BAfter , ATerm , ACS , Initial, Break , Break , Initial, ATerm , STerm , STerm , ATermC }, // ATerm-
270 { Lookup , BAfterC, BAfter , BAfter , ATermC , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , ATermC }, // ATermC-
271 { Lookup , BAfterC, BAfter , BAfter , ACS , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , Lookup }, // ACS-
272-
273 { Break , BAfterC, BAfter , BAfter , STerm , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC }, // STerm,-
274 { Break , BAfterC, BAfter , BAfter , STermC , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC }, // STermC-
275 { Break , BAfterC, BAfter , BAfter , SCS , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , Break }, // SCS-
276 { Break , Break , BAfter , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // BAfterC-
277 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, // BAfter-
278};-
279-
280} // namespace SB-
281-
282static void getSentenceBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
283{-
284 uchar state = SB::BAfter; // to meet SB1-
285 for (quint32 i = 0; i != len; ++i) {
i != lenDescription
TRUEevaluated 2339 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
FALSEevaluated 521 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
521-2339
286 quint32 pos = i;-
287 uint ucs4 = string[i];-
288 if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 2330 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
i + 1 != lenDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-2330
289 ushort low = string[i + 1];-
290 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-9
291 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
292 ++i;-
293 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
9
294 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
9
295-
296 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
297 QUnicodeTables::SentenceBreakClass ncls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass;-
298-
299 Q_ASSERT(state <= SB::BAfter);-
300 state = SB::breakTable[state][ncls];-
301 if (Q_UNLIKELY(state == SB::Lookup)) { // SB8
__builtin_expe...ookup), false)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 2331 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
8-2331
302 state = SB::Break;-
303 for (quint32 lookahead = i + 1; lookahead < len; ++lookahead) {
lookahead < lenDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
2-15
304 ucs4 = string[lookahead];-
305 if (QChar::isHighSurrogate(ucs4) && lookahead + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
lookahead + 1 != lenDescription
TRUEnever evaluated
FALSEnever evaluated
0-15
306 ushort low = string[lookahead + 1];-
307 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEnever evaluated
FALSEnever evaluated
0
308 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
309 ++lookahead;-
310 }
never executed: end of block
0
311 }
never executed: end of block
0
312-
313 prop = QUnicodeTables::properties(ucs4);-
314 QUnicodeTables::SentenceBreakClass tcls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass;-
315 switch (tcls) {-
316 case QUnicodeTables::SentenceBreak_Other:
never executed: case QUnicodeTables::SentenceBreak_Other:
0
317 case QUnicodeTables::SentenceBreak_Extend:
executed 5 times by 1 test: case QUnicodeTables::SentenceBreak_Extend:
Executed by:
  • tst_QTextBoundaryFinder
5
318 case QUnicodeTables::SentenceBreak_Sp:
never executed: case QUnicodeTables::SentenceBreak_Sp:
0
319 case QUnicodeTables::SentenceBreak_Numeric:
never executed: case QUnicodeTables::SentenceBreak_Numeric:
0
320 case QUnicodeTables::SentenceBreak_SContinue:
never executed: case QUnicodeTables::SentenceBreak_SContinue:
0
321 case QUnicodeTables::SentenceBreak_Close:
executed 4 times by 1 test: case QUnicodeTables::SentenceBreak_Close:
Executed by:
  • tst_QTextBoundaryFinder
4
322 continue;
executed 9 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
9
323 case QUnicodeTables::SentenceBreak_Lower:
executed 2 times by 1 test: case QUnicodeTables::SentenceBreak_Lower:
Executed by:
  • tst_QTextBoundaryFinder
2
324 i = lookahead;-
325 state = SB::Initial;-
326 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
2
327 default:
executed 4 times by 1 test: default:
Executed by:
  • tst_QTextBoundaryFinder
4
328 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
4
329 }-
330 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
6
331 }-
332 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
8
333 if (Q_UNLIKELY(state == SB::Break)) {
__builtin_expe...Break), false)Description
TRUEevaluated 672 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
FALSEevaluated 1667 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
672-1667
334 attributes[pos].sentenceBoundary = true;-
335 state = SB::breakTable[SB::Initial][ncls];-
336 }
executed 672 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
672
337 }
executed 2339 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
2339
338-
339 attributes[len].sentenceBoundary = true; // SB2-
340}
executed 521 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
521
341-
342-
343// ------------------------------------------------------------------------------------------------------
344//-
345// The line breaking algorithm.-
346// See http://www.unicode.org/reports/tr14/tr14-35.html-
347//-
348// ------------------------------------------------------------------------------------------------------
349-
350namespace LB {-
351-
352namespace NS { // Number Sequence-
353-
354// LB25 recommends to not break lines inside numbers of the form-
355// described by the following regular expression:-
356// (PR|PO)?(OP|HY)?NU(NU|SY|IS)*(CL|CP)?(PR|PO)?-
357-
358enum Action {-
359 None,-
360 Start,-
361 Continue,-
362 Break-
363};-
364-
365enum Class {-
366 XX,-
367 PRPO,-
368 OPHY,-
369 NU,-
370 SYIS,-
371 CLCP-
372};-
373-
374static const uchar actionTable[CLCP + 1][CLCP + 1] = {-
375// XX PRPO OPHY NU SYIS CLCP-
376 { None , Start , Start , Start , None , None }, // XX-
377 { None , Start , Continue, Continue, None , None }, // PRPO-
378 { None , Start , Start , Continue, None , None }, // OPHY-
379 { Break , Break , Break , Continue, Continue, Continue }, // NU-
380 { Break , Break , Break , Continue, Continue, Continue }, // SYIS-
381 { Break , Continue, Break , Break , Break , Break }, // CLCP-
382};-
383-
384inline Class toClass(QUnicodeTables::LineBreakClass lbc, QChar::Category category)-
385{-
386 switch (lbc) {-
387 case QUnicodeTables::LineBreak_AL:// case QUnicodeTables::LineBreak_AI:
executed 3462455 times by 109 tests: case QUnicodeTables::LineBreak_AL:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3462455
388 // resolve AI math symbols in numerical context to IS-
389 if (category == QChar::Symbol_Math)
category == QChar::Symbol_MathDescription
TRUEevaluated 2604 times by 13 tests
Evaluated by:
  • tst_QComplexText
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QShortcut
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTreeView
  • tst_QWizard
FALSEevaluated 3459851 times by 109 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
2604-3459851
390 return SYIS;
executed 2604 times by 13 tests: return SYIS;
Executed by:
  • tst_QComplexText
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QShortcut
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTreeView
  • tst_QWizard
2604
391 break;
executed 3459851 times by 109 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3459851
392 case QUnicodeTables::LineBreak_PR: case QUnicodeTables::LineBreak_PO:
executed 4440 times by 23 tests: case QUnicodeTables::LineBreak_PR:
Executed by:
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComplexText
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPushButton
  • tst_QShortcut
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
executed 477 times by 8 tests: case QUnicodeTables::LineBreak_PO:
Executed by:
  • tst_QComplexText
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
477-4440
393 return PRPO;
executed 4917 times by 26 tests: return PRPO;
Executed by:
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComplexText
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPushButton
  • tst_QShortcut
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • ...
4917
394 case QUnicodeTables::LineBreak_OP: case QUnicodeTables::LineBreak_HY:
executed 7283 times by 25 tests: case QUnicodeTables::LineBreak_OP:
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QTableView
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QTreeView
  • tst_QTreeWidget
executed 75190 times by 33 tests: case QUnicodeTables::LineBreak_HY:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QSpinBox
  • tst_QStackedLayout
  • tst_QStandardItemModel
  • ...
7283-75190
395 return OPHY;
executed 82473 times by 40 tests: return OPHY;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • ...
82473
396 case QUnicodeTables::LineBreak_NU:
executed 1089305 times by 75 tests: case QUnicodeTables::LineBreak_NU:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
1089305
397 return NU;
executed 1089305 times by 75 tests: return NU;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
1089305
398 case QUnicodeTables::LineBreak_SY: case QUnicodeTables::LineBreak_IS:
executed 91770 times by 24 tests: case QUnicodeTables::LineBreak_SY:
Executed by:
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
  • tst_QTreeView
  • tst_languageChange
executed 138331 times by 47 tests: case QUnicodeTables::LineBreak_IS:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
91770-138331
399 return SYIS;
executed 230101 times by 51 tests: return SYIS;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
230101
400 case QUnicodeTables::LineBreak_CL: case QUnicodeTables::LineBreak_CP:
executed 472 times by 9 tests: case QUnicodeTables::LineBreak_CL:
Executed by:
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QTextBoundaryFinder
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextScriptEngine
executed 7174 times by 24 tests: case QUnicodeTables::LineBreak_CP:
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QTableView
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QTreeView
  • tst_QTreeWidget
472-7174
401 return CLCP;
executed 7646 times by 26 tests: return CLCP;
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QTableView
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QTreeView
  • ...
7646
402 default:
executed 444603 times by 87 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
444603
403 break;
executed 444603 times by 87 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
444603
404 }-
405 return XX;
executed 3904454 times by 110 tests: return XX;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3904454
406}-
407-
408} // namespace NS-
409-
410/* In order to support the tailored implementation of LB25 properly-
411 the following changes were made in the pair table to allow breaks-
412 where the numeric expression doesn't match the template (i.e. [^NU](IS|SY)NU):-
413 (CL)(PO) from IB to DB-
414 (CP)(PO) from IB to DB-
415 (CL)(PR) from IB to DB-
416 (CP)(PR) from IB to DB-
417 (PO)(OP) from IB to DB-
418 (PR)(OP) from IB to DB-
419 (IS)(NU) from IB to DB-
420 (SY)(NU) from IB to DB-
421*/-
422-
423/* In order to implementat LB21a properly a special rule HH has been introduced and-
424 the following changes were made in the pair table to disallow breaks after Hebrew + Hyphen:-
425 (HL)(HY|BA) from IB to CI-
426 (HY|BA)(!CB) from DB to HH-
427*/-
428-
429enum Action {-
430 ProhibitedBreak, PB = ProhibitedBreak,-
431 DirectBreak, DB = DirectBreak,-
432 IndirectBreak, IB = IndirectBreak,-
433 CombiningIndirectBreak, CI = CombiningIndirectBreak,-
434 CombiningProhibitedBreak, CP = CombiningProhibitedBreak,-
435 ProhibitedBreakAfterHebrewPlusHyphen, HH = ProhibitedBreakAfterHebrewPlusHyphen-
436};-
437-
438static const uchar breakTable[QUnicodeTables::LineBreak_CB + 1][QUnicodeTables::LineBreak_CB + 1] = {-
439/* OP CL CP QU GL NS EX SY IS PR PO NU AL HL ID IN HY BA BB B2 ZW CM WJ H2 H3 JL JV JT RI CB */-
440/* OP */ { PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, CP, PB, PB, PB, PB, PB, PB, PB, PB },-
441/* CL */ { DB, PB, PB, IB, IB, PB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
442/* CP */ { DB, PB, PB, IB, IB, PB, PB, PB, PB, DB, DB, IB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
443/* QU */ { PB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB },-
444/* GL */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB },-
445/* NS */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
446/* EX */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
447/* SY */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
448/* IS */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
449/* PR */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, IB, DB, IB, IB, DB, DB, PB, CI, PB, IB, IB, IB, IB, IB, DB, DB },-
450/* PO */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
451/* NU */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
452/* AL */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
453/* HL */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, CI, CI, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
454/* ID */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
455/* IN */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
456/* HY */ { HH, PB, PB, IB, HH, IB, PB, PB, PB, HH, HH, IB, HH, HH, HH, HH, IB, IB, HH, HH, PB, CI, PB, HH, HH, HH, HH, HH, HH, DB },-
457/* BA */ { HH, PB, PB, IB, HH, IB, PB, PB, PB, HH, HH, HH, HH, HH, HH, HH, IB, IB, HH, HH, PB, CI, PB, HH, HH, HH, HH, HH, HH, DB },-
458/* BB */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, DB },-
459/* B2 */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, PB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
460/* ZW */ { DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, PB, DB, DB, DB, DB, DB, DB, DB, DB, DB },-
461/* CM */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB },-
462/* WJ */ { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB },-
463/* H2 */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, IB, IB, DB, DB },-
464/* H3 */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, IB, DB, DB },-
465/* JL */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, IB, IB, IB, IB, DB, DB, DB },-
466/* JV */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, IB, IB, DB, DB },-
467/* JT */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, IB, DB, DB },-
468/* RI */ { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, IB, DB },-
469/* CB */ { DB, PB, PB, IB, IB, DB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }-
470};-
471-
472// The following line break classes are not treated by the pair table-
473// and must be resolved outside:-
474// AI, BK, CB, CJ, CR, LF, NL, SA, SG, SP, XX-
475-
476} // namespace LB-
477-
478static void getLineBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
479{-
480 quint32 nestart = 0;-
481 LB::NS::Class nelast = LB::NS::XX;-
482-
483 QUnicodeTables::LineBreakClass lcls = QUnicodeTables::LineBreak_LF; // to meet LB10-
484 QUnicodeTables::LineBreakClass cls = lcls;-
485 for (quint32 i = 0; i != len; ++i) {
i != lenDescription
TRUEevaluated 5324462 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 211399 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
211399-5324462
486 quint32 pos = i;-
487 uint ucs4 = string[i];-
488 if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5323812 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
i + 1 != lenDescription
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEnever evaluated
0-5323812
489 ushort low = string[i + 1];-
490 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEnever evaluated
0-650
491 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
492 ++i;-
493 }
executed 650 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
650
494 }
executed 650 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
650
495-
496 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
497 QUnicodeTables::LineBreakClass ncls = (QUnicodeTables::LineBreakClass) prop->lineBreakClass;-
498-
499 if (Q_UNLIKELY(ncls == QUnicodeTables::LineBreak_SA)) {
__builtin_expe...ak_SA), false)Description
TRUEevaluated 1374 times by 3 tests
Evaluated by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5323088 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
1374-5323088
500 // LB1: resolve SA to AL, except of those that have Category Mn or Mc be resolved to CM-
501 static const int test = FLAG(QChar::Mark_NonSpacing) | FLAG(QChar::Mark_SpacingCombining);-
502 if (FLAG(prop->category) & test)
(1 << (prop->category)) & testDescription
TRUEevaluated 190 times by 2 tests
Evaluated by:
  • tst_QLabel
  • tst_QTextLayout
FALSEevaluated 1184 times by 3 tests
Evaluated by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
190-1184
503 ncls = QUnicodeTables::LineBreak_CM;
executed 190 times by 2 tests: ncls = QUnicodeTables::LineBreak_CM;
Executed by:
  • tst_QLabel
  • tst_QTextLayout
190
504 }
executed 1374 times by 3 tests: end of block
Executed by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1374
505 if (Q_UNLIKELY(ncls == QUnicodeTables::LineBreak_CM)) {
__builtin_expe...ak_CM), false)Description
TRUEevaluated 3747 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5320715 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3747-5320715
506 // LB10: treat CM that follows SP, BK, CR, LF, NL, or ZW as AL-
507 if (lcls == QUnicodeTables::LineBreak_ZW || lcls >= QUnicodeTables::LineBreak_SP)
lcls == QUnico...::LineBreak_ZWDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 3668 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
lcls >= QUnico...::LineBreak_SPDescription
TRUEevaluated 706 times by 2 tests
Evaluated by:
  • tst_QComplexText
  • tst_QTextBoundaryFinder
FALSEevaluated 2962 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
79-3668
508 ncls = QUnicodeTables::LineBreak_AL;
executed 785 times by 2 tests: ncls = QUnicodeTables::LineBreak_AL;
Executed by:
  • tst_QComplexText
  • tst_QTextBoundaryFinder
785
509 }
executed 3747 times by 4 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3747
510-
511 if (Q_LIKELY(ncls != QUnicodeTables::LineBreak_CM)) {
__builtin_expe...eak_CM), true)Description
TRUEevaluated 5321500 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 2962 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2962-5321500
512 // LB25: do not break lines inside numbers-
513 LB::NS::Class necur = LB::NS::toClass(ncls, (QChar::Category)prop->category);-
514 switch (LB::NS::actionTable[nelast][necur]) {-
515 case LB::NS::Break:
executed 149725 times by 47 tests: case LB::NS::Break:
Executed by:
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
149725
516 // do not change breaks before and after the expression-
517 for (quint32 j = nestart + 1; j < pos; ++j)
j < posDescription
TRUEevaluated 136260 times by 36 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
FALSEevaluated 149725 times by 47 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
136260-149725
518 attributes[j].lineBreak = false;
executed 136260 times by 36 tests: attributes[j].lineBreak = false;
Executed by:
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
136260
519 // fall through-
520 case LB::NS::None:
code before this statement executed 149725 times by 47 tests: case LB::NS::None:
Executed by:
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
executed 3947996 times by 109 tests: case LB::NS::None:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
149725-3947996
521 nelast = LB::NS::XX; // reset state-
522 break;
executed 4097721 times by 111 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
4097721
523 case LB::NS::Start:
executed 371096 times by 80 tests: case LB::NS::Start:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
371096
524 nestart = i;-
525 // fall through-
526 default:
code before this statement executed 371096 times by 80 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
executed 852683 times by 53 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
371096-852683
527 nelast = necur;-
528 break;
executed 1223779 times by 80 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
1223779
529 }-
530 }-
531-
532 if (Q_UNLIKELY(lcls >= QUnicodeTables::LineBreak_CR)) {
__builtin_expe...ak_CR), false)Description
TRUEevaluated 221114 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 5103348 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
221114-5103348
533 // LB4: BK!, LB5: (CRxLF|CR|LF|NL)!-
534 if (lcls > QUnicodeTables::LineBreak_CR || ncls != QUnicodeTables::LineBreak_LF)
lcls > QUnicod...::LineBreak_CRDescription
TRUEevaluated 220950 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 164 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
ncls != QUnico...::LineBreak_LFDescription
TRUEevaluated 159 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
5-220950
535 attributes[pos].lineBreak = attributes[pos].mandatoryBreak = true;
executed 221109 times by 114 tests: attributes[pos].lineBreak = attributes[pos].mandatoryBreak = true;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
221109
536 goto next;
executed 221114 times by 114 tests: goto next;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
221114
537 }-
538-
539 if (Q_UNLIKELY(ncls >= QUnicodeTables::LineBreak_SP)) {
__builtin_expe...ak_SP), false)Description
TRUEevaluated 430461 times by 84 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
FALSEevaluated 4672887 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
430461-4672887
540 if (ncls > QUnicodeTables::LineBreak_SP)
ncls > QUnicod...::LineBreak_SPDescription
TRUEevaluated 9788 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QItemDelegate
  • tst_QListView
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QWizard
FALSEevaluated 420673 times by 84 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
9788-420673
541 goto next; // LB6: x(BK|CR|LF|NL)
executed 9788 times by 14 tests: goto next;
Executed by:
  • tst_QAccessibility
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QItemDelegate
  • tst_QListView
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QWizard
9788
542 goto next_no_cls_update; // LB7: xSP
executed 420673 times by 84 tests: goto next_no_cls_update;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
420673
543 }-
544-
545 // for South East Asian chars that require a complex analysis, the Unicode-
546 // standard recommends to treat them as AL. tailoring that do dictionary analysis can override-
547 if (Q_UNLIKELY(cls >= QUnicodeTables::LineBreak_SA))
__builtin_expe...ak_SA), false)Description
TRUEevaluated 1350 times by 11 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QSyntaxHighlighter
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextLayout
  • tst_QWizard
FALSEevaluated 4671537 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
1350-4671537
548 cls = QUnicodeTables::LineBreak_AL;
executed 1350 times by 11 tests: cls = QUnicodeTables::LineBreak_AL;
Executed by:
  • tst_QDateTimeEdit
  • tst_QGraphicsItem
  • tst_QInputDialog
  • tst_QLabel
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QSyntaxHighlighter
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextLayout
  • tst_QWizard
1350
549-
550 switch (LB::breakTable[cls][ncls < QUnicodeTables::LineBreak_SA ? ncls : QUnicodeTables::LineBreak_AL]) {-
551 case LB::DirectBreak:
executed 84015 times by 43 tests: case LB::DirectBreak:
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • ...
84015
552 attributes[pos].lineBreak = true;-
553 break;
executed 84015 times by 43 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • ...
84015
554 case LB::IndirectBreak:
executed 4276496 times by 112 tests: case LB::IndirectBreak:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
4276496
555 if (lcls == QUnicodeTables::LineBreak_SP)
lcls == QUnico...::LineBreak_SPDescription
TRUEevaluated 412659 times by 82 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
FALSEevaluated 3863837 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
412659-3863837
556 attributes[pos].lineBreak = true;
executed 412659 times by 82 tests: attributes[pos].lineBreak = true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
412659
557 break;
executed 4276496 times by 112 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
4276496
558 case LB::CombiningIndirectBreak:
executed 2898 times by 4 tests: case LB::CombiningIndirectBreak:
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2898
559 if (lcls != QUnicodeTables::LineBreak_SP)
lcls != QUnico...::LineBreak_SPDescription
TRUEevaluated 2894 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
4-2894
560 goto next_no_cls_update;
executed 2894 times by 4 tests: goto next_no_cls_update;
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2894
561 attributes[pos].lineBreak = true;-
562 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
4
563 case LB::CombiningProhibitedBreak:
executed 82 times by 1 test: case LB::CombiningProhibitedBreak:
Executed by:
  • tst_QTextBoundaryFinder
82
564 if (lcls != QUnicodeTables::LineBreak_SP)
lcls != QUnico...::LineBreak_SPDescription
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
0-82
565 goto next_no_cls_update;
executed 82 times by 1 test: goto next_no_cls_update;
Executed by:
  • tst_QTextBoundaryFinder
82
566 break;
never executed: break;
0
567 case LB::ProhibitedBreakAfterHebrewPlusHyphen:
executed 65315 times by 26 tests: case LB::ProhibitedBreakAfterHebrewPlusHyphen:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTreeView
  • ...
65315
568 if (lcls != QUnicodeTables::LineBreak_HL)
lcls != QUnico...::LineBreak_HLDescription
TRUEevaluated 65315 times by 26 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTreeView
  • ...
FALSEnever evaluated
0-65315
569 attributes[pos].lineBreak = true;
executed 65315 times by 26 tests: attributes[pos].lineBreak = true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTreeView
  • ...
65315
570 break;
executed 65315 times by 26 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStackedLayout
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTreeView
  • ...
65315
571 case LB::ProhibitedBreak:
executed 244081 times by 56 tests: case LB::ProhibitedBreak:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • ...
244081
572 // nothing to do-
573 default:
never executed: default:
0
574 break;
executed 244081 times by 56 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLabel
  • ...
244081
575 }-
576-
577 next:
code before this statement executed 4669911 times by 113 tests: next:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
4669911
578 cls = ncls;-
579 next_no_cls_update:
code before this statement executed 4900813 times by 114 tests: next_no_cls_update:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4900813
580 lcls = ncls;-
581 }
executed 5324462 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5324462
582-
583 if (Q_UNLIKELY(LB::NS::actionTable[nelast][LB::NS::XX] == LB::NS::Break)) {
__builtin_expe...Break), false)Description
TRUEevaluated 149532 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
FALSEevaluated 61867 times by 108 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
61867-149532
584 // LB25: do not break lines inside numbers-
585 for (quint32 j = nestart + 1; j < len; ++j)
j < lenDescription
TRUEevaluated 716462 times by 44 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • ...
FALSEevaluated 149532 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
149532-716462
586 attributes[j].lineBreak = false;
executed 716462 times by 44 tests: attributes[j].lineBreak = false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • ...
716462
587 }
executed 149532 times by 68 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
149532
588-
589 attributes[0].lineBreak = attributes[0].mandatoryBreak = false; // LB2-
590 attributes[len].lineBreak = attributes[len].mandatoryBreak = true; // LB3-
591}
executed 211399 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
211399
592-
593-
594static void getWhiteSpaces(const ushort *string, quint32 len, QCharAttributes *attributes)-
595{-
596 for (quint32 i = 0; i != len; ++i) {
i != lenDescription
TRUEevaluated 5304159 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 205061 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205061-5304159
597 uint ucs4 = string[i];-
598 if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEevaluated 5304156 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
i + 1 != lenDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEnever evaluated
0-5304156
599 ushort low = string[i + 1];-
600 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEnever evaluated
0-3
601 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
602 ++i;-
603 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextLayout
3
604 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextLayout
3
605-
606 if (Q_UNLIKELY(QChar::isSpace(ucs4)))
__builtin_expe...ucs4)), false)Description
TRUEevaluated 427427 times by 85 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
FALSEevaluated 4876732 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
427427-4876732
607 attributes[i].whiteSpace = true;
executed 427427 times by 85 tests: attributes[i].whiteSpace = true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
427427
608 }
executed 5304159 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
5304159
609}
executed 205061 times by 113 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205061
610-
611-
612Q_CORE_EXPORT void initCharAttributes(const ushort *string, int length,-
613 const ScriptItem *items, int numItems,-
614 QCharAttributes *attributes, CharAttributeOptions options)-
615{-
616 if (length <= 0)
length <= 0Description
TRUEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QTextCursor
  • tst_QTextLayout
FALSEevaluated 213907 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
23-213907
617 return;
executed 23 times by 5 tests: return;
Executed by:
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QTextCursor
  • tst_QTextLayout
23
618-
619 if (!(options & DontClearAttributes))
!(options & Do...earAttributes)Description
TRUEevaluated 213907 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
0-213907
620 ::memset(attributes, 0, (length + 1) * sizeof(QCharAttributes));
executed 213907 times by 114 tests: ::memset(attributes, 0, (length + 1) * sizeof(QCharAttributes));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
213907
621-
622 if (options & GraphemeBreaks)
options & GraphemeBreaksDescription
TRUEevaluated 205495 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 8412 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
8412-205495
623 getGraphemeBreaks(string, length, attributes);
executed 205495 times by 114 tests: getGraphemeBreaks(string, length, attributes);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205495
624 if (options & WordBreaks)
options & WordBreaksDescription
TRUEevaluated 1553 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 212354 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
1553-212354
625 getWordBreaks(string, length, attributes);
executed 1553 times by 3 tests: getWordBreaks(string, length, attributes);
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1553
626 if (options & SentenceBreaks)
options & SentenceBreaksDescription
TRUEevaluated 521 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
FALSEevaluated 213386 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
521-213386
627 getSentenceBreaks(string, length, attributes);
executed 521 times by 2 tests: getSentenceBreaks(string, length, attributes);
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
521
628 if (options & LineBreaks)
options & LineBreaksDescription
TRUEevaluated 211399 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 2508 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2508-211399
629 getLineBreaks(string, length, attributes);
executed 211399 times by 114 tests: getLineBreaks(string, length, attributes);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
211399
630 if (options & WhiteSpaces)
options & WhiteSpacesDescription
TRUEevaluated 205061 times by 113 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 8846 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
8846-205061
631 getWhiteSpaces(string, length, attributes);
executed 205061 times by 113 tests: getWhiteSpaces(string, length, attributes);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205061
632-
633 if (!qt_initcharattributes_default_algorithm_only) {
!qt_initcharat...algorithm_onlyDescription
TRUEevaluated 205202 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 8705 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
8705-205202
634 if (!items || numItems <= 0)
!itemsDescription
TRUEnever evaluated
FALSEevaluated 205202 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
numItems <= 0Description
TRUEnever evaluated
FALSEevaluated 205202 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-205202
635 return;
never executed: return;
0
636-
637 QVarLengthArray<HB_ScriptItem, 64> scriptItems;-
638 scriptItems.reserve(numItems);-
639 int start = 0;-
640 HB_Script startScript = script_to_hbscript(items[start].script);-
641 if (Q_UNLIKELY(startScript == HB_Script_Inherited))
__builtin_expe...rited), false)Description
TRUEnever evaluated
FALSEevaluated 205202 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-205202
642 startScript = HB_Script_Common;
never executed: startScript = HB_Script_Common;
0
643 for (int i = start + 1; i < numItems; ++i) {
i < numItemsDescription
TRUEevaluated 322387 times by 41 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPushButton
  • ...
FALSEevaluated 205202 times by 114 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205202-322387
644 HB_Script script = script_to_hbscript(items[i].script);-
645 if (Q_LIKELY(script == startScript || script == HB_Script_Inherited))
__builtin_expe...erited), true)Description
TRUEevaluated 321552 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStackedLayout
  • tst_QStaticText
  • ...
FALSEevaluated 835 times by 8 tests
Evaluated by:
  • tst_QComplexText
  • tst_QFontDatabase
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextEdit
  • tst_QTextLayout
835-321552
646 continue;
executed 321552 times by 39 tests: continue;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPushButton
  • tst_QStackedLayout
  • tst_QStaticText
  • ...
321552
647 Q_ASSERT(items[i].position > items[start].position);-
648 HB_ScriptItem item;-
649 item.pos = items[start].position;-
650 item.length = items[i].position - items[start].position;-
651 item.script = startScript;-
652 item.bidiLevel = 0; // unused-
653 scriptItems.append(item);-
654 start = i;-
655 startScript = script;-
656 }
executed 835 times by 8 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QFontDatabase
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextEdit
  • tst_QTextLayout
835
657 if (items[start].position + 1 < length) {
items[start].p...n + 1 < lengthDescription
TRUEevaluated 179505 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 25697 times by 62 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
25697-179505
658 HB_ScriptItem item;-
659 item.pos = items[start].position;-
660 item.length = length - items[start].position;-
661 item.script = startScript;-
662 item.bidiLevel = 0; // unused-
663 scriptItems.append(item);-
664 }
executed 179505 times by 112 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
179505
665 Q_STATIC_ASSERT(sizeof(QCharAttributes) == sizeof(HB_CharAttributes));-
666 HB_GetTailoredCharAttributes(string, length,-
667 scriptItems.constData(), scriptItems.size(),-
668 reinterpret_cast<HB_CharAttributes *>(attributes));-
669 }
executed 205202 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
205202
670}
executed 213907 times by 114 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
213907
671-
672-
673// -----------------------------------------------------------------------------
674//-
675// The Unicode script property. See http://www.unicode.org/reports/tr24/tr24-24.html-
676//-
677// -----------------------------------------------------------------------------
678-
679Q_CORE_EXPORT void initScripts(const ushort *string, int length, uchar *scripts)-
680{-
681 int sor = 0;-
682 int eor = -1;-
683 uchar script = QChar::Script_Common;-
684 for (int i = 0; i < length; ++i) {
i < lengthDescription
TRUEevaluated 6162126 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 254170 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
254170-6162126
685 eor = i;-
686 uint ucs4 = string[i];-
687 if (QChar::isHighSurrogate(ucs4) && i + 1 < length) {
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 921 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 6161205 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
i + 1 < lengthDescription
TRUEevaluated 893 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
28-6161205
688 ushort low = string[i + 1];-
689 if (QChar::isLowSurrogate(low)) {
QChar::isLowSurrogate(low)Description
TRUEevaluated 865 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
28-865
690 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
691 ++i;-
692 }
executed 865 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
865
693 }
executed 893 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
893
694-
695 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
696-
697 if (Q_LIKELY(prop->script == script || prop->script <= QChar::Script_Inherited))
__builtin_expe...erited), true)Description
TRUEevaluated 4996457 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 1165669 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
1165669-4996457
698 continue;
executed 4996457 times by 116 tests: continue;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
4996457
699-
700 // Never break between a combining mark (gc= Mc, Mn or Me) and its base character.-
701 // Thus, a combining mark — whatever its script property value is — should inherit-
702 // the script property value of its base character.-
703 static const int test = (FLAG(QChar::Mark_NonSpacing) | FLAG(QChar::Mark_SpacingCombining) | FLAG(QChar::Mark_Enclosing));-
704 if (Q_UNLIKELY(FLAG(prop->category) & test)) {
__builtin_expe... test), false)Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 1165615 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
54-1165615
705 // In cases where the base character itself has the Common script property value,-
706 // and it is followed by one or more combining marks with a specific script property value,-
707 // it may be even better for processing to let the base acquire the script property value-
708 // from the first mark. This approach can be generalized by treating all the characters-
709 // of a combining character sequence as having the script property value-
710 // of the first non-Inherited, non-Common character in the sequence if there is one,-
711 // and otherwise treating all the characters as having the Common script property value.-
712 if (Q_LIKELY(script > QChar::Script_Common || prop->script <= QChar::Script_Common))
__builtin_expe...Common), true)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
10-44
713 continue;
executed 10 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
10
714-
715 script = QChar::Script(prop->script);-
716 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
44
717-
718#if 0 // ### Disabled due to regressions. The font selection algorithm is not prepared for this change.-
719 if (Q_LIKELY(script != QChar::Script_Common)) {-
720 // override preceding Common-s-
721 while (sor > 0 && scripts[sor - 1] == QChar::Script_Common)-
722 --sor;-
723 } else {-
724 // see if we are inheriting preceding run-
725 if (sor > 0)-
726 script = scripts[sor - 1];-
727 }-
728#endif-
729-
730 while (sor < eor)
sor < eorDescription
TRUEevaluated 3081734 times by 92 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
FALSEevaluated 1165659 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
1165659-3081734
731 scripts[sor++] = script;
executed 3081734 times by 92 tests: scripts[sor++] = script;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
3081734
732-
733 script = prop->script;-
734 }
executed 1165659 times by 112 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
1165659
735 eor = length;-
736-
737#if 0 // ### Disabled due to regressions. The font selection algorithm is not prepared for this change.-
738 if (Q_LIKELY(script != QChar::Script_Common)) {-
739 // override preceding Common-s-
740 while (sor > 0 && scripts[sor - 1] == QChar::Script_Common)-
741 --sor;-
742 } else {-
743 // see if we are inheriting preceding run-
744 if (sor > 0)-
745 script = scripts[sor - 1];-
746 }-
747#endif-
748-
749 while (sor < eor)
sor < eorDescription
TRUEevaluated 3081257 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 254170 times by 116 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
254170-3081257
750 scripts[sor++] = script;
executed 3081257 times by 116 tests: scripts[sor++] = script;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3081257
751}
executed 254170 times by 116 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
254170
752-
753} // namespace QUnicodeTools-
754-
755QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9