qunicodetools.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qunicodetools.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8__attribute__((visibility("default"))) int qt_initcharattributes_default_algorithm_only = 0;-
9-
10namespace QUnicodeTools {-
11namespace GB {-
12-
13static const uchar breakTable[QUnicodeTables::GraphemeBreak_LVT + 1][QUnicodeTables::GraphemeBreak_LVT + 1] = {-
14-
15 { true , true , true , true , false, true , true , false, true , true , true , true , true },-
16 { true , true , false, true , true , true , true , true , true , true , true , true , true },-
17 { true , true , true , true , true , true , true , true , true , true , true , true , true },-
18 { true , true , true , true , true , true , true , true , true , true , true , true , true },-
19 { true , true , true , true , false, true , true , false, true , true , true , true , true },-
20 { true , true , true , true , false, false, true , false, true , true , true , true , true },-
21 { false, true , true , true , false, false, false, false, false, false, false, false, false },-
22 { true , true , true , true , false, true , true , false, true , true , true , true , true },-
23 { true , true , true , true , false, true , true , false, false, false, true , false, false },-
24 { true , true , true , true , false, true , true , false, true , false, false, true , true },-
25 { true , true , true , true , false, true , true , false, true , true , false, true , true },-
26 { true , true , true , true , false, true , true , false, true , false, false, true , true },-
27 { true , true , true , true , false, true , true , false, true , true , false, true , true },-
28};-
29-
30}-
31-
32static void getGraphemeBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
33{-
34 QUnicodeTables::GraphemeBreakClass lcls = QUnicodeTables::GraphemeBreak_LF;-
35 for (quint32 i = 0; i != len
i != lenDescription
TRUEevaluated 5206695 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 207923 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) {
207923-5206695
36 quint32 pos = i;-
37 uint ucs4 = string[i];-
38 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5206557 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 != len
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-5206557
39 ushort low = string[i + 1];-
40 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
41 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
42 ++i;-
43 }
executed 82 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
82
44 }
executed 110 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
110
45-
46 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
47 QUnicodeTables::GraphemeBreakClass cls = (QUnicodeTables::GraphemeBreakClass) prop->graphemeBreakClass;-
48-
49 if (__builtin_expect(!!(GB::breakTable[lcls][cls]), true)
__builtin_expe...][cls]), true)Description
TRUEevaluated 5206286 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-5206286
50 attributes[pos].graphemeBoundary = true;
executed 5206286 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
  • ...
5206286
51-
52 lcls = cls;-
53 }
executed 5206695 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
  • ...
5206695
54-
55 attributes[len].graphemeBoundary = true;-
56}
executed 207923 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
  • ...
207923
57-
58-
59namespace WB {-
60-
61enum Action {-
62 NoBreak,-
63 Break,-
64 Lookup,-
65 LookupW-
66};-
67-
68static const uchar breakTable[QUnicodeTables::WordBreak_ExtendNumLet + 1][QUnicodeTables::WordBreak_ExtendNumLet + 1] = {-
69-
70 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
71 { Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
72 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
73 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
74 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
75 { Break , Break , Break , Break , NoBreak, NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
76 { Break , Break , Break , Break , NoBreak, Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , NoBreak },-
77 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Lookup , LookupW, LookupW, Break , NoBreak, NoBreak },-
78 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Break , LookupW, LookupW, Break , NoBreak, NoBreak },-
79 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
80 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
81 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
82 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
83 { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
84 { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, Lookup , Break , Lookup , Break , Lookup , NoBreak, NoBreak },-
85 { Break , Break , Break , Break , NoBreak, Break , NoBreak, NoBreak, NoBreak, Break , Break , Break , Break , Break , NoBreak, NoBreak },-
86};-
87-
88}-
89-
90static void getWordBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
91{-
92 enum WordType {-
93 WordTypeNone, WordTypeAlphaNumeric, WordTypeHiraganaKatakana-
94 } currentWordType = WordTypeNone;-
95-
96 QUnicodeTables::WordBreakClass cls = QUnicodeTables::WordBreak_LF;-
97 for (quint32 i = 0; i != len
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
; ++i) {
1553-134912
98 quint32 pos = i;-
99 uint ucs4 = string[i];-
100 if (QChar::isHighSurrogate(ucs4)
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 != len
i + 1 != lenDescription
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-134785
101 ushort low = string[i + 1];-
102 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-127
103 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
104 ++i;-
105 }
executed 127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
127
106 }
executed 127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
127
107-
108 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
109 QUnicodeTables::WordBreakClass ncls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass;-
110-
111 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
112-
113-
114-
115-
116 if (ucs4 == 0x002E
ucs4 == 0x002EDescription
TRUEevaluated 290 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 4837 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
)
290-4837
117 ncls = QUnicodeTables::WordBreak_MidNumLet;
executed 290 times by 1 test: ncls = QUnicodeTables::WordBreak_MidNumLet;
Executed by:
  • tst_QTextBoundaryFinder
290
118 else if (ucs4 == 0x003A
ucs4 == 0x003ADescription
TRUEevaluated 384 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 4453 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
)
384-4453
119 ncls = QUnicodeTables::WordBreak_MidLetter;
executed 384 times by 1 test: ncls = QUnicodeTables::WordBreak_MidLetter;
Executed by:
  • tst_QTextBoundaryFinder
384
120 }
executed 5127 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
5127
121-
122-
123 uchar action = WB::breakTable[cls][ncls];-
124 switch (action) {-
125 case
executed 3856 times by 3 tests: case WB::Break:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
WB::Break:
executed 3856 times by 3 tests: case WB::Break:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3856
126 break;
executed 3856 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3856
127 case
executed 130284 times by 3 tests: case WB::NoBreak:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
WB::NoBreak:
executed 130284 times by 3 tests: case WB::NoBreak:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
130284
128 if (__builtin_expect(!!(ncls == QUnicodeTables::WordBreak_Extend), false)
__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
129-
130 continue;
executed 1100 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
1100
131 }-
132 break;
executed 129184 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
129184
133 case
executed 373 times by 1 test: case WB::Lookup:
Executed by:
  • tst_QTextBoundaryFinder
WB::Lookup:
executed 373 times by 1 test: case WB::Lookup:
Executed by:
  • tst_QTextBoundaryFinder
373
134 case
executed 399 times by 1 test: case WB::LookupW:
Executed by:
  • tst_QTextBoundaryFinder
WB::LookupW:
executed 399 times by 1 test: case WB::LookupW:
Executed by:
  • tst_QTextBoundaryFinder
399
135 for (quint32 lookahead = i + 1; lookahead < len
lookahead < lenDescription
TRUEevaluated 818 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 362 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
; ++lookahead) {
362-818
136 ucs4 = string[lookahead];-
137 if (QChar::isHighSurrogate(ucs4)
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 != len
lookahead + 1 != lenDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-806
138 ushort low = string[lookahead + 1];-
139 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-12
140 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
141 ++lookahead;-
142 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
12
143 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
12
144-
145 prop = QUnicodeTables::properties(ucs4);-
146 QUnicodeTables::WordBreakClass tcls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass;-
147-
148 if (__builtin_expect(!!(tcls == QUnicodeTables::WordBreak_Extend), false)
__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
149-
150 continue;
executed 408 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
408
151 }-
152-
153 if (__builtin_expect(!!(tcls == cls || (action == WB::LookupW && (tcls == QUnicodeTables::WordBreak_HebrewLetter || tcls == QUnicodeTables::WordBreak_ALetter))), true)
__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
154 ) {-
155 i = lookahead;-
156 ncls = tcls;-
157 action = WB::NoBreak;-
158 }
executed 122 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
122
159 break;
executed 410 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
410
160 }-
161 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
162 action = WB::Break;-
163 if (__builtin_expect(!!(ncls == QUnicodeTables::WordBreak_SingleQuote && cls == QUnicodeTables::WordBreak_HebrewLetter), false)
__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
164 action = WB::NoBreak;
executed 2 times by 1 test: action = WB::NoBreak;
Executed by:
  • tst_QTextBoundaryFinder
2
165 }
executed 650 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
650
166 break;
executed 772 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
772
167 }-
168-
169 cls = ncls;-
170 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
171 attributes[pos].wordBreak = true;-
172 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
173 attributes[pos].wordEnd = true;
executed 1294 times by 3 tests: attributes[pos].wordEnd = true;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1294
174 switch (cls) {-
175 case
executed 100 times by 1 test: case QUnicodeTables::WordBreak_Katakana:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::WordBreak_Katakana:
executed 100 times by 1 test: case QUnicodeTables::WordBreak_Katakana:
Executed by:
  • tst_QTextBoundaryFinder
100
176 currentWordType = WordTypeHiraganaKatakana;-
177 attributes[pos].wordStart = true;-
178 break;
executed 100 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
100
179 case
executed 89 times by 1 test: case QUnicodeTables::WordBreak_HebrewLetter:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::WordBreak_HebrewLetter:
executed 89 times by 1 test: case QUnicodeTables::WordBreak_HebrewLetter:
Executed by:
  • tst_QTextBoundaryFinder
89
180 case
executed 998 times by 3 tests: case QUnicodeTables::WordBreak_ALetter:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
QUnicodeTables::WordBreak_ALetter:
executed 998 times by 3 tests: case QUnicodeTables::WordBreak_ALetter:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
998
181 case
executed 564 times by 1 test: case QUnicodeTables::WordBreak_Numeric:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::WordBreak_Numeric:
executed 564 times by 1 test: case QUnicodeTables::WordBreak_Numeric:
Executed by:
  • tst_QTextBoundaryFinder
564
182 currentWordType = WordTypeAlphaNumeric;-
183 attributes[pos].wordStart = true;-
184 break;
executed 1651 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1651
185 default
executed 2753 times by 3 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
:
executed 2753 times by 3 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2753
186 currentWordType = WordTypeNone;-
187 break;
executed 2753 times by 3 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2753
188 }-
189 }-
190 }
executed 133812 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
133812
191-
192 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
193 attributes[len].wordEnd = true;
executed 457 times by 3 tests: attributes[len].wordEnd = true;
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
457
194 attributes[len].wordBreak = true;-
195}
executed 1553 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1553
196-
197-
198namespace SB {-
199-
200enum State {-
201 Initial,-
202 Lower,-
203 Upper,-
204 LUATerm,-
205 ATerm,-
206 ATermC,-
207 ACS,-
208 STerm,-
209 STermC,-
210 SCS,-
211 BAfterC,-
212 BAfter,-
213 Break,-
214 Lookup-
215};-
216-
217static const uchar breakTable[BAfter + 1][QUnicodeTables::SentenceBreak_Close + 1] = {-
218-
219 { Initial, BAfterC, BAfter , BAfter , Initial, Initial, Lower , Upper , Initial, Initial, ATerm , Initial, STerm , Initial },-
220 { Initial, BAfterC, BAfter , BAfter , Lower , Initial, Initial, Initial, Initial, Initial, LUATerm, Initial, STerm , Initial },-
221 { Initial, BAfterC, BAfter , BAfter , Upper , Initial, Initial, Upper , Initial, Initial, LUATerm, STerm , STerm , Initial },-
222-
223 { Lookup , BAfterC, BAfter , BAfter , LUATerm, ACS , Initial, Upper , Break , Initial, ATerm , STerm , STerm , ATermC },-
224 { Lookup , BAfterC, BAfter , BAfter , ATerm , ACS , Initial, Break , Break , Initial, ATerm , STerm , STerm , ATermC },-
225 { Lookup , BAfterC, BAfter , BAfter , ATermC , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , ATermC },-
226 { Lookup , BAfterC, BAfter , BAfter , ACS , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , Lookup },-
227-
228 { Break , BAfterC, BAfter , BAfter , STerm , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC },-
229 { Break , BAfterC, BAfter , BAfter , STermC , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC },-
230 { Break , BAfterC, BAfter , BAfter , SCS , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , Break },-
231 { Break , Break , BAfter , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
232 { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break },-
233};-
234-
235}-
236-
237static void getSentenceBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
238{-
239 uchar state = SB::BAfter;-
240 for (quint32 i = 0; i != len
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
; ++i) {
521-2339
241 quint32 pos = i;-
242 uint ucs4 = string[i];-
243 if (QChar::isHighSurrogate(ucs4)
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 != len
i + 1 != lenDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-2330
244 ushort low = string[i + 1];-
245 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
) {
0-9
246 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
247 ++i;-
248 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
9
249 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
9
250-
251 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
252 QUnicodeTables::SentenceBreakClass ncls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass;-
253-
254 ((!(state <= SB::BAfter)) ? qt_assert("state <= SB::BAfter",__FILE__,305) : qt_noop());-
255 state = SB::breakTable[state][ncls];-
256 if (__builtin_expect(!!(state == SB::Lookup), false)
__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
257 state = SB::Break;-
258 for (quint32 lookahead = i + 1; lookahead < len
lookahead < lenDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
; ++lookahead) {
2-15
259 ucs4 = string[lookahead];-
260 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
&& lookahead + 1 != len
lookahead + 1 != lenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-15
261 ushort low = string[lookahead + 1];-
262 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
263 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
264 ++lookahead;-
265 }
never executed: end of block
0
266 }
never executed: end of block
0
267-
268 prop = QUnicodeTables::properties(ucs4);-
269 QUnicodeTables::SentenceBreakClass tcls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass;-
270 switch (tcls) {-
271 case
never executed: case QUnicodeTables::SentenceBreak_Other:
QUnicodeTables::SentenceBreak_Other:
never executed: case QUnicodeTables::SentenceBreak_Other:
0
272 case
executed 5 times by 1 test: case QUnicodeTables::SentenceBreak_Extend:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::SentenceBreak_Extend:
executed 5 times by 1 test: case QUnicodeTables::SentenceBreak_Extend:
Executed by:
  • tst_QTextBoundaryFinder
5
273 case
never executed: case QUnicodeTables::SentenceBreak_Sp:
QUnicodeTables::SentenceBreak_Sp:
never executed: case QUnicodeTables::SentenceBreak_Sp:
0
274 case
never executed: case QUnicodeTables::SentenceBreak_Numeric:
QUnicodeTables::SentenceBreak_Numeric:
never executed: case QUnicodeTables::SentenceBreak_Numeric:
0
275 case
never executed: case QUnicodeTables::SentenceBreak_SContinue:
QUnicodeTables::SentenceBreak_SContinue:
never executed: case QUnicodeTables::SentenceBreak_SContinue:
0
276 case
executed 4 times by 1 test: case QUnicodeTables::SentenceBreak_Close:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::SentenceBreak_Close:
executed 4 times by 1 test: case QUnicodeTables::SentenceBreak_Close:
Executed by:
  • tst_QTextBoundaryFinder
4
277 continue;
executed 9 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
9
278 case
executed 2 times by 1 test: case QUnicodeTables::SentenceBreak_Lower:
Executed by:
  • tst_QTextBoundaryFinder
QUnicodeTables::SentenceBreak_Lower:
executed 2 times by 1 test: case QUnicodeTables::SentenceBreak_Lower:
Executed by:
  • tst_QTextBoundaryFinder
2
279 i = lookahead;-
280 state = SB::Initial;-
281 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
2
282 default
executed 4 times by 1 test: default:
Executed by:
  • tst_QTextBoundaryFinder
:
executed 4 times by 1 test: default:
Executed by:
  • tst_QTextBoundaryFinder
4
283 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
4
284 }-
285 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
6
286 }-
287 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QTextBoundaryFinder
8
288 if (__builtin_expect(!!(state == SB::Break), false)
__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
289 attributes[pos].sentenceBoundary = true;-
290 state = SB::breakTable[SB::Initial][ncls];-
291 }
executed 672 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
672
292 }
executed 2339 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
2339
293-
294 attributes[len].sentenceBoundary = true;-
295}
executed 521 times by 2 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
521
296namespace LB {-
297-
298namespace NS {-
299-
300-
301-
302-
303-
304enum Action {-
305 None,-
306 Start,-
307 Continue,-
308 Break-
309};-
310-
311enum Class {-
312 XX,-
313 PRPO,-
314 OPHY,-
315 NU,-
316 SYIS,-
317 CLCP-
318};-
319-
320static const uchar actionTable[CLCP + 1][CLCP + 1] = {-
321-
322 { None , Start , Start , Start , None , None },-
323 { None , Start , Continue, Continue, None , None },-
324 { None , Start , Start , Continue, None , None },-
325 { Break , Break , Break , Continue, Continue, Continue },-
326 { Break , Break , Break , Continue, Continue, Continue },-
327 { Break , Continue, Break , Break , Break , Break },-
328};-
329-
330inline Class toClass(QUnicodeTables::LineBreakClass lbc, QChar::Category category)-
331{-
332 switch (lbc) {-
333 case
executed 3461344 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
  • ...
QUnicodeTables::LineBreak_AL:
executed 3461344 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
  • ...
3461344
334-
335 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 3458740 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-3458740
336 return
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
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
337 break;
executed 3458740 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
  • ...
3458740
338 case
executed 4431 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
QUnicodeTables::LineBreak_PR:
executed 4431 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
case
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
QUnicodeTables::LineBreak_PO:
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-4431
339 return
executed 4908 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
  • ...
PRPO;
executed 4908 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
  • ...
4908
340 case
executed 7892 times by 26 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
  • ...
QUnicodeTables::LineBreak_OP:
executed 7892 times by 26 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
  • ...
case
executed 75165 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
  • ...
QUnicodeTables::LineBreak_HY:
executed 75165 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
  • ...
7892-75165
341 return
executed 83057 times by 41 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
  • ...
OPHY;
executed 83057 times by 41 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
  • ...
83057
342 case
executed 990330 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
  • ...
QUnicodeTables::LineBreak_NU:
executed 990330 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
  • ...
990330
343 return
executed 990330 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
  • ...
NU;
executed 990330 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
  • ...
990330
344 case
executed 91544 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
QUnicodeTables::LineBreak_SY:
executed 91544 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
case
executed 139841 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
  • ...
QUnicodeTables::LineBreak_IS:
executed 139841 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
  • ...
91544-139841
345 return
executed 231385 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
  • ...
SYIS;
executed 231385 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
  • ...
231385
346 case
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
QUnicodeTables::LineBreak_CL:
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
case
executed 7483 times by 24 tests: case QUnicodeTables::LineBreak_CP:
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • 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
  • tst_languageChange
QUnicodeTables::LineBreak_CP:
executed 7483 times by 24 tests: case QUnicodeTables::LineBreak_CP:
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • 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
  • tst_languageChange
472-7483
347 return
executed 7955 times by 26 tests: return CLCP;
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • 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
  • tst_QTreeWidget
  • ...
CLCP;
executed 7955 times by 26 tests: return CLCP;
Executed by:
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • 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
  • tst_QTreeWidget
  • ...
7955
348 default
executed 443334 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
  • ...
:
executed 443334 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
  • ...
443334
349 break;
executed 443334 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
  • ...
443334
350 }-
351 return
executed 3902074 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
  • ...
XX;
executed 3902074 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
  • ...
3902074
352}-
353-
354}-
355enum Action {-
356 ProhibitedBreak, PB = ProhibitedBreak,-
357 DirectBreak, DB = DirectBreak,-
358 IndirectBreak, IB = IndirectBreak,-
359 CombiningIndirectBreak, CI = CombiningIndirectBreak,-
360 CombiningProhibitedBreak, CP = CombiningProhibitedBreak,-
361 ProhibitedBreakAfterHebrewPlusHyphen, HH = ProhibitedBreakAfterHebrewPlusHyphen-
362};-
363-
364static const uchar breakTable[QUnicodeTables::LineBreak_CB + 1][QUnicodeTables::LineBreak_CB + 1] = {-
365-
366 { 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 },-
367 { 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 },-
368 { 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 },-
369 { 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 },-
370 { 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 },-
371 { 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 },-
372 { 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 },-
373 { 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 },-
374 { 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 },-
375 { 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 },-
376 { 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 },-
377 { 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 },-
378 { 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 },-
379 { 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 },-
380 { 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 },-
381 { 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 },-
382 { 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 },-
383 { 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 },-
384 { 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 },-
385 { 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 },-
386 { 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 },-
387 { 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 },-
388 { 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 },-
389 { 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 },-
390 { 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 },-
391 { 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 },-
392 { 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 },-
393 { 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 },-
394 { 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 },-
395 { 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 }-
396};-
397-
398-
399-
400-
401-
402}-
403-
404static void getLineBreaks(const ushort *string, quint32 len, QCharAttributes *attributes)-
405{-
406 quint32 nestart = 0;-
407 LB::NS::Class nelast = LB::NS::XX;-
408-
409 QUnicodeTables::LineBreakClass lcls = QUnicodeTables::LineBreak_LF;-
410 QUnicodeTables::LineBreakClass cls = lcls;-
411 for (quint32 i = 0; i != len
i != lenDescription
TRUEevaluated 5225275 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 213827 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) {
213827-5225275
412 quint32 pos = i;-
413 uint ucs4 = string[i];-
414 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5224625 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 != len
i + 1 != lenDescription
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEnever evaluated
) {
0-5224625
415 ushort low = string[i + 1];-
416 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 650 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEnever evaluated
) {
0-650
417 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
418 ++i;-
419 }
executed 650 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
650
420 }
executed 650 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
650
421-
422 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
423 QUnicodeTables::LineBreakClass ncls = (QUnicodeTables::LineBreakClass) prop->lineBreakClass;-
424-
425 if (__builtin_expect(!!(ncls == QUnicodeTables::LineBreak_SA), false)
__builtin_expe...ak_SA), false)Description
TRUEevaluated 1374 times by 3 tests
Evaluated by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5223901 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-5223901
426-
427 static const int test = (1 << (QChar::Mark_NonSpacing)) | (1 << (QChar::Mark_SpacingCombining));-
428 if ((
(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
1 << (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
429 ncls = QUnicodeTables::LineBreak_CM;
executed 190 times by 2 tests: ncls = QUnicodeTables::LineBreak_CM;
Executed by:
  • tst_QLabel
  • tst_QTextLayout
190
430 }
executed 1374 times by 3 tests: end of block
Executed by:
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1374
431 if (__builtin_expect(!!(ncls == QUnicodeTables::LineBreak_CM), false)
__builtin_expe...ak_CM), false)Description
TRUEevaluated 3747 times by 4 tests
Evaluated by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 5221528 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-5221528
432-
433 if (lcls == QUnicodeTables::LineBreak_ZW
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 >= QUnicodeTables::LineBreak_SP
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
434 ncls = QUnicodeTables::LineBreak_AL;
executed 785 times by 2 tests: ncls = QUnicodeTables::LineBreak_AL;
Executed by:
  • tst_QComplexText
  • tst_QTextBoundaryFinder
785
435 }
executed 3747 times by 4 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
3747
436-
437 if (__builtin_expect(!!(ncls != QUnicodeTables::LineBreak_CM), true)
__builtin_expe...eak_CM), true)Description
TRUEevaluated 5222313 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-5222313
438-
439 LB::NS::Class necur = LB::NS::toClass(ncls, (QChar::Category)prop->category);-
440 switch (LB::NS::actionTable[nelast][necur]) {-
441 case
executed 149502 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
  • ...
LB::NS::Break:
executed 149502 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
  • ...
149502
442-
443 for (quint32 j = nestart + 1; j < pos
j < posDescription
TRUEevaluated 134928 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 149502 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
  • ...
; ++j)
134928-149502
444 attributes[j].lineBreak = false;
executed 134928 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
  • ...
134928
445-
446 case
executed 3947139 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
  • ...
LB::NS::None:
executed 3947139 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
  • ...
code before this statement executed 149502 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
  • ...
149502-3947139
447 nelast = LB::NS::XX;-
448 break;
executed 4096641 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
  • ...
4096641
449 case
executed 373172 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
  • ...
LB::NS::Start:
executed 373172 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
  • ...
373172
450 nestart = i;-
451-
452 default
executed 752500 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
  • ...
:
executed 752500 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
  • ...
code before this statement executed 373172 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
  • ...
373172-752500
453 nelast = necur;-
454 break;
executed 1125672 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
  • ...
1125672
455 }-
456 }-
457-
458 if (__builtin_expect(!!(lcls >= QUnicodeTables::LineBreak_CR), false)
__builtin_expe...ak_CR), false)Description
TRUEevaluated 223542 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 5001733 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
  • ...
) {
223542-5001733
459-
460 if (lcls > QUnicodeTables::LineBreak_CR
lcls > QUnicod...::LineBreak_CRDescription
TRUEevaluated 223378 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 != QUnicodeTables::LineBreak_LF
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-223378
461 attributes[pos].lineBreak = attributes[pos].mandatoryBreak = true;
executed 223537 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
  • ...
223537
462 goto
executed 223542 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
  • ...
next;
executed 223542 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
  • ...
223542
463 }-
464-
465 if (__builtin_expect(!!(ncls >= QUnicodeTables::LineBreak_SP), false)
__builtin_expe...ak_SP), false)Description
TRUEevaluated 429241 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 4572492 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
  • ...
) {
429241-4572492
466 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 419453 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-419453
467 goto
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
next;
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
468 goto
executed 419453 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
  • ...
next_no_cls_update;
executed 419453 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
  • ...
419453
469 }-
470-
471-
472-
473 if (__builtin_expect(!!(cls >= QUnicodeTables::LineBreak_SA), false)
__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 4571142 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-4571142
474 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
475-
476 switch (LB::breakTable[cls][ncls < QUnicodeTables::LineBreak_SA ? ncls : QUnicodeTables::LineBreak_AL]) {-
477 case
executed 84719 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
  • ...
LB::DirectBreak:
executed 84719 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
  • ...
84719
478 attributes[pos].lineBreak = true;-
479 break;
executed 84719 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
  • ...
84719
480 case
executed 4173176 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
  • ...
LB::IndirectBreak:
executed 4173176 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
  • ...
4173176
481 if (lcls == QUnicodeTables::LineBreak_SP
lcls == QUnico...::LineBreak_SPDescription
TRUEevaluated 411372 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 3761804 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
  • ...
)
411372-3761804
482 attributes[pos].lineBreak = true;
executed 411372 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
  • ...
411372
483 break;
executed 4173176 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
  • ...
4173176
484 case
executed 2898 times by 4 tests: case LB::CombiningIndirectBreak:
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
LB::CombiningIndirectBreak:
executed 2898 times by 4 tests: case LB::CombiningIndirectBreak:
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
2898
485 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
486 goto
executed 2894 times by 4 tests: goto next_no_cls_update;
Executed by:
  • tst_QComplexText
  • tst_QLabel
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
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
487 attributes[pos].lineBreak = true;-
488 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QTextBoundaryFinder
4
489 case
executed 82 times by 1 test: case LB::CombiningProhibitedBreak:
Executed by:
  • tst_QTextBoundaryFinder
LB::CombiningProhibitedBreak:
executed 82 times by 1 test: case LB::CombiningProhibitedBreak:
Executed by:
  • tst_QTextBoundaryFinder
82
490 if (lcls != QUnicodeTables::LineBreak_SP
lcls != QUnico...::LineBreak_SPDescription
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEnever evaluated
)
0-82
491 goto
executed 82 times by 1 test: goto next_no_cls_update;
Executed by:
  • tst_QTextBoundaryFinder
next_no_cls_update;
executed 82 times by 1 test: goto next_no_cls_update;
Executed by:
  • tst_QTextBoundaryFinder
82
492 break;
never executed: break;
0
493 case
executed 65281 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
  • ...
LB::ProhibitedBreakAfterHebrewPlusHyphen:
executed 65281 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
  • ...
65281
494 if (lcls != QUnicodeTables::LineBreak_HL
lcls != QUnico...::LineBreak_HLDescription
TRUEevaluated 65281 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-65281
495 attributes[pos].lineBreak = true;
executed 65281 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
  • ...
65281
496 break;
executed 65281 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
  • ...
65281
497 case
executed 246336 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
  • ...
LB::ProhibitedBreak:
executed 246336 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
  • ...
246336
498-
499 default
never executed: default:
:
never executed: default:
0
500 break;
executed 246336 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
  • ...
246336
501 }-
502-
503 next:
code before this statement executed 4569516 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
  • ...
4569516
504 cls = ncls;-
505 next_no_cls_update:
code before this statement executed 4802846 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
  • ...
4802846
506 lcls = ncls;-
507 }
executed 5225275 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
  • ...
5225275
508-
509 if (__builtin_expect(!!(LB::NS::actionTable[nelast][LB::NS::XX] == LB::NS::Break), false)
__builtin_expe...Break), false)Description
TRUEevaluated 151266 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 62561 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
  • ...
) {
62561-151266
510-
511 for (quint32 j = nestart + 1; j < len
j < lenDescription
TRUEevaluated 617611 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 151266 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
  • ...
; ++j)
151266-617611
512 attributes[j].lineBreak = false;
executed 617611 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
  • ...
617611
513 }
executed 151266 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
  • ...
151266
514-
515 attributes[0].lineBreak = attributes[0].mandatoryBreak = false;-
516 attributes[len].lineBreak = attributes[len].mandatoryBreak = true;-
517}
executed 213827 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
  • ...
213827
518-
519-
520static void getWhiteSpaces(const ushort *string, quint32 len, QCharAttributes *attributes)-
521{-
522 for (quint32 i = 0; i != len
i != lenDescription
TRUEevaluated 5204972 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 207489 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) {
207489-5204972
523 uint ucs4 = string[i];-
524 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEevaluated 5204969 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 != len
i + 1 != lenDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEnever evaluated
) {
0-5204969
525 ushort low = string[i + 1];-
526 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextLayout
FALSEnever evaluated
) {
0-3
527 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
528 ++i;-
529 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextLayout
3
530 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextLayout
3
531-
532 if (__builtin_expect(!!(QChar::isSpace(ucs4)), false)
__builtin_expe...ucs4)), false)Description
TRUEevaluated 426158 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 4778814 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
  • ...
)
426158-4778814
533 attributes[i].whiteSpace = true;
executed 426158 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
  • ...
426158
534 }
executed 5204972 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
  • ...
5204972
535}
executed 207489 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
  • ...
207489
536-
537-
538__attribute__((visibility("default"))) void initCharAttributes(const ushort *string, int length,-
539 const ScriptItem *items, int numItems,-
540 QCharAttributes *attributes, CharAttributeOptions options)-
541{-
542 if (length <= 0
length <= 0Description
TRUEevaluated 29 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QTabBar
  • tst_QTabWidget
  • tst_QTextCursor
  • tst_QTextLayout
FALSEevaluated 216335 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
  • ...
)
29-216335
543 return;
executed 29 times by 8 tests: return;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QTabBar
  • tst_QTabWidget
  • tst_QTextCursor
  • tst_QTextLayout
29
544-
545 if (!(options & DontClearAttributes)
!(options & Do...earAttributes)Description
TRUEevaluated 216335 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-216335
546 ::
executed 216335 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
  • ...
memset(attributes, 0, (length + 1) * sizeof(QCharAttributes));
executed 216335 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
  • ...
216335
547-
548 if (options & GraphemeBreaks
options & GraphemeBreaksDescription
TRUEevaluated 207923 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-207923
549 getGraphemeBreaks(string, length, attributes);
executed 207923 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
  • ...
207923
550 if (options & WordBreaks
options & WordBreaksDescription
TRUEevaluated 1553 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 214782 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-214782
551 getWordBreaks(string, length, attributes);
executed 1553 times by 3 tests: getWordBreaks(string, length, attributes);
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
1553
552 if (options & SentenceBreaks
options & SentenceBreaksDescription
TRUEevaluated 521 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
FALSEevaluated 215814 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-215814
553 getSentenceBreaks(string, length, attributes);
executed 521 times by 2 tests: getSentenceBreaks(string, length, attributes);
Executed by:
  • tst_QAccessibility
  • tst_QTextBoundaryFinder
521
554 if (options & LineBreaks
options & LineBreaksDescription
TRUEevaluated 213827 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-213827
555 getLineBreaks(string, length, attributes);
executed 213827 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
  • ...
213827
556 if (options & WhiteSpaces
options & WhiteSpacesDescription
TRUEevaluated 207489 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-207489
557 getWhiteSpaces(string, length, attributes);
executed 207489 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
  • ...
207489
558-
559 if (!qt_initcharattributes_default_algorithm_only
!qt_initcharat...algorithm_onlyDescription
TRUEevaluated 207630 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-207630
560 if (!items
!itemsDescription
TRUEnever evaluated
FALSEevaluated 207630 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 <= 0
numItems <= 0Description
TRUEnever evaluated
FALSEevaluated 207630 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-207630
561 return;
never executed: return;
0
562-
563 QVarLengthArray<HB_ScriptItem, 64> scriptItems;-
564 scriptItems.reserve(numItems);-
565 int start = 0;-
566 HB_Script startScript = script_to_hbscript(items[start].script);-
567 if (__builtin_expect(!!(startScript == HB_Script_Inherited), false)
__builtin_expe...rited), false)Description
TRUEnever evaluated
FALSEevaluated 207630 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-207630
568 startScript = HB_Script_Common;
never executed: startScript = HB_Script_Common;
0
569 for (int i = start + 1; i < numItems
i < numItemsDescription
TRUEevaluated 220606 times by 40 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 207630 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) {
207630-220606
570 HB_Script script = script_to_hbscript(items[i].script);-
571 if (__builtin_expect(!!(script == startScript || script == HB_Script_Inherited), true)
__builtin_expe...erited), true)Description
TRUEevaluated 220349 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • 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
  • ...
FALSEevaluated 257 times by 5 tests
Evaluated by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextEdit
)
257-220349
572 continue;
executed 220349 times by 39 tests: continue;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QComplexText
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDatabase
  • 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
  • ...
220349
573 ((!(items[i].position > items[start].position)) ? qt_assert("items[i].position > items[start].position",__FILE__,653) : qt_noop());-
574 HB_ScriptItem item;-
575 item.pos = items[start].position;-
576 item.length = items[i].position - items[start].position;-
577 item.script = startScript;-
578 item.bidiLevel = 0;-
579 scriptItems.append(item);-
580 start = i;-
581 startScript = script;-
582 }
executed 257 times by 5 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextEdit
257
583 if (items[start].position + 1 < length
items[start].p...n + 1 < lengthDescription
TRUEevaluated 180993 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
  • ...
FALSEevaluated 26637 times by 61 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_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
) {
26637-180993
584 HB_ScriptItem item;-
585 item.pos = items[start].position;-
586 item.length = length - items[start].position;-
587 item.script = startScript;-
588 item.bidiLevel = 0;-
589 scriptItems.append(item);-
590 }
executed 180993 times by 113 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
  • ...
180993
591 static_assert(bool(sizeof(QCharAttributes) == sizeof(HB_CharAttributes)), "sizeof(QCharAttributes) == sizeof(HB_CharAttributes)");-
592 HB_GetTailoredCharAttributes(string, length,-
593 scriptItems.constData(), scriptItems.size(),-
594 reinterpret_cast<HB_CharAttributes *>(attributes));-
595 }
executed 207630 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
  • ...
207630
596}
executed 216335 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
  • ...
216335
597__attribute__((visibility("default"))) void initScripts(const ushort *string, int length, uchar *scripts)-
598{-
599 int sor = 0;-
600 int eor = 0;-
601 uchar script = QChar::Script_Common;-
602-
603 for (int i = 0; i < length
i < lengthDescription
TRUEevaluated 6067506 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 257027 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, eor = i) {
257027-6067506
604 uint ucs4 = string[i];-
605 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 921 times by 2 tests
Evaluated by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
FALSEevaluated 6066585 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 < length
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-6066585
606 ushort low = string[i + 1];-
607 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
608 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
609 ++i;-
610 }
executed 865 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
865
611 }
executed 893 times by 2 tests: end of block
Executed by:
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
893
612-
613 const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4);-
614-
615 uchar nscript = prop->script;-
616-
617 if (__builtin_expect(!!(nscript == script || nscript <= QChar::Script_Common), true)
__builtin_expe...Common), true)Description
TRUEevaluated 5966042 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 101464 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
  • ...
)
101464-5966042
618 continue;
executed 5966042 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
  • ...
5966042
619-
620-
621 if (__builtin_expect(!!(script <= QChar::Script_Common), false)
__builtin_expe...ommon), false)Description
TRUEevaluated 100737 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 727 times by 7 tests
Evaluated by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextBoundaryFinder
  • tst_QTextEdit
  • tst_QTextLayout
) {
727-100737
622-
623-
624 script = nscript;-
625 continue;
executed 100737 times by 112 tests: continue;
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
  • ...
100737
626 }-
627-
628-
629-
630-
631 static const int test = ((1 << (QChar::Mark_NonSpacing)) | (1 << (QChar::Mark_SpacingCombining)) | (1 << (QChar::Mark_Enclosing)));-
632 if (__builtin_expect(!!((1 << (prop->category)) & test), false)
__builtin_expe... test), false)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextBoundaryFinder
FALSEevaluated 717 times by 7 tests
Evaluated by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextBoundaryFinder
  • tst_QTextEdit
  • tst_QTextLayout
)
10-717
633 continue;
executed 10 times by 1 test: continue;
Executed by:
  • tst_QTextBoundaryFinder
10
634-
635 ((!(script > QChar::Script_Common)) ? qt_assert("script > QChar::Script_Common",__FILE__,723) : qt_noop());-
636 ((!(sor < eor)) ? qt_assert("sor < eor",__FILE__,724) : qt_noop());-
637 ::memset(scripts + sor, script, (eor - sor) * sizeof(uchar));-
638 sor = eor;-
639-
640 script = nscript;-
641 }
executed 717 times by 7 tests: end of block
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLineEdit
  • tst_QStaticText
  • tst_QTextBoundaryFinder
  • tst_QTextEdit
  • tst_QTextLayout
717
642-
643 ((!(script >= QChar::Script_Common)) ? qt_assert("script >= QChar::Script_Common",__FILE__,731) : qt_noop());-
644 ((!(eor == length)) ? qt_assert("eor == length",__FILE__,732) : qt_noop());-
645 ::memset(scripts + sor, script, (eor - sor) * sizeof(uchar));-
646}
executed 257027 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
  • ...
257027
647-
648}-
649-
650-
Switch to Source codePreprocessed file

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