Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | __attribute__((visibility("default"))) unsigned int qt_qregularexpression_optimize_after_use_count = 10; | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | static int convertToPcreOptions(QRegularExpression::PatternOptions patternOptions) | - |
16 | { | - |
17 | int options = 0; | - |
18 | | - |
19 | if (patternOptions & QRegularExpression::CaseInsensitiveOptionTRUE | evaluated 89 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
| FALSE | evaluated 4513 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 89-4513 |
20 | options |= 0x00000001;executed 89 times by 5 tests: options |= 0x00000001; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
| 89 |
21 | if (patternOptions & QRegularExpression::DotMatchesEverythingOptionTRUE | evaluated 105 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qdbusxml2cpp
| FALSE | evaluated 4497 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 105-4497 |
22 | options |= 0x00000004;executed 105 times by 4 tests: options |= 0x00000004; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qdbusxml2cpp
| 105 |
23 | if (patternOptions & QRegularExpression::MultilineOptionTRUE | evaluated 37 times by 6 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4565 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 37-4565 |
24 | options |= 0x00000002;executed 37 times by 6 tests: options |= 0x00000002; Executed by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 37 |
25 | if (patternOptions & QRegularExpression::ExtendedPatternSyntaxOptionTRUE | evaluated 10 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4592 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 10-4592 |
26 | options |= 0x00000008;executed 10 times by 3 tests: options |= 0x00000008; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 10 |
27 | if (patternOptions & QRegularExpression::InvertedGreedinessOptionTRUE | evaluated 24 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4578 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 24-4578 |
28 | options |= 0x00000200;executed 24 times by 3 tests: options |= 0x00000200; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 24 |
29 | if (patternOptions & QRegularExpression::DontCaptureOptionTRUE | evaluated 10 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4592 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 10-4592 |
30 | options |= 0x00001000;executed 10 times by 3 tests: options |= 0x00001000; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 10 |
31 | if (patternOptions & QRegularExpression::UseUnicodePropertiesOptionTRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4599 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 3-4599 |
32 | options |= 0x20000000;executed 3 times by 3 tests: options |= 0x20000000; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 3 |
33 | | - |
34 | returnexecuted 4602 times by 21 tests: return options; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
options;executed 4602 times by 21 tests: return options; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4602 |
35 | } | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | static int convertToPcreOptions(QRegularExpression::MatchOptions matchOptions) | - |
41 | { | - |
42 | int options = 0; | - |
43 | | - |
44 | if (matchOptions & QRegularExpression::AnchoredMatchOptionTRUE | evaluated 60 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 14647 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 60-14647 |
45 | options |= 0x00000010;executed 60 times by 3 tests: options |= 0x00000010; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 60 |
46 | | - |
47 | returnexecuted 14707 times by 21 tests: return options; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
options;executed 14707 times by 21 tests: return options; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 14707 |
48 | } | - |
49 | | - |
50 | struct QRegularExpressionPrivate : QSharedData | - |
51 | { | - |
52 | QRegularExpressionPrivate(); | - |
53 | ~QRegularExpressionPrivate(); | - |
54 | QRegularExpressionPrivate(const QRegularExpressionPrivate &other); | - |
55 | | - |
56 | void cleanCompiledPattern(); | - |
57 | void compilePattern(); | - |
58 | void getPatternInfo(); | - |
59 | | - |
60 | enum OptimizePatternOption { | - |
61 | LazyOptimizeOption, | - |
62 | ImmediateOptimizeOption | - |
63 | }; | - |
64 | | - |
65 | void optimizePattern(OptimizePatternOption option); | - |
66 | | - |
67 | enum CheckSubjectStringOption { | - |
68 | CheckSubjectString, | - |
69 | DontCheckSubjectString | - |
70 | }; | - |
71 | | - |
72 | QRegularExpressionMatchPrivate *doMatch(const QString &subject, | - |
73 | int subjectStartPos, | - |
74 | int subjectLength, | - |
75 | int offset, | - |
76 | QRegularExpression::MatchType matchType, | - |
77 | QRegularExpression::MatchOptions matchOptions, | - |
78 | CheckSubjectStringOption checkSubjectStringOption = CheckSubjectString, | - |
79 | const QRegularExpressionMatchPrivate *previous = 0) const; | - |
80 | | - |
81 | int captureIndexForName(const QString &name) const; | - |
82 | | - |
83 | | - |
84 | QRegularExpression::PatternOptions patternOptions; | - |
85 | QString pattern; | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | QMutex mutex; | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | pcre16 *compiledPattern; | - |
99 | QAtomicPointer<pcre16_extra> studyData; | - |
100 | const char *errorString; | - |
101 | int errorOffset; | - |
102 | int capturingCount; | - |
103 | unsigned int usedCount; | - |
104 | bool usingCrLfNewlines; | - |
105 | bool isDirty; | - |
106 | }; | - |
107 | | - |
108 | struct QRegularExpressionMatchPrivate : QSharedData | - |
109 | { | - |
110 | QRegularExpressionMatchPrivate(const QRegularExpression &re, | - |
111 | const QString &subject, | - |
112 | int subjectStart, | - |
113 | int subjectLength, | - |
114 | QRegularExpression::MatchType matchType, | - |
115 | QRegularExpression::MatchOptions matchOptions, | - |
116 | int capturingCount = 0); | - |
117 | | - |
118 | QRegularExpressionMatch nextMatch() const; | - |
119 | | - |
120 | const QRegularExpression regularExpression; | - |
121 | const QString subject; | - |
122 | | - |
123 | | - |
124 | QVector<int> capturedOffsets; | - |
125 | | - |
126 | const int subjectStart; | - |
127 | const int subjectLength; | - |
128 | | - |
129 | const QRegularExpression::MatchType matchType; | - |
130 | const QRegularExpression::MatchOptions matchOptions; | - |
131 | | - |
132 | int capturedCount; | - |
133 | | - |
134 | bool hasMatch; | - |
135 | bool hasPartialMatch; | - |
136 | bool isValid; | - |
137 | }; | - |
138 | | - |
139 | struct QRegularExpressionMatchIteratorPrivate : QSharedData | - |
140 | { | - |
141 | QRegularExpressionMatchIteratorPrivate(const QRegularExpression &re, | - |
142 | QRegularExpression::MatchType matchType, | - |
143 | QRegularExpression::MatchOptions matchOptions, | - |
144 | const QRegularExpressionMatch &next); | - |
145 | | - |
146 | bool hasNext() const; | - |
147 | QRegularExpressionMatch next; | - |
148 | const QRegularExpression regularExpression; | - |
149 | const QRegularExpression::MatchType matchType; | - |
150 | const QRegularExpression::MatchOptions matchOptions; | - |
151 | }; | - |
152 | | - |
153 | | - |
154 | | - |
155 | | - |
156 | QRegularExpression::QRegularExpression(QRegularExpressionPrivate &dd) | - |
157 | : d(&dd) | - |
158 | { | - |
159 | }executed 15205 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 15205 |
160 | | - |
161 | | - |
162 | | - |
163 | | - |
164 | QRegularExpressionPrivate::QRegularExpressionPrivate() | - |
165 | : patternOptions(0), pattern(), | - |
166 | mutex(), | - |
167 | compiledPattern(0), studyData(0), | - |
168 | errorString(0), errorOffset(-1), | - |
169 | capturingCount(0), | - |
170 | usedCount(0), | - |
171 | usingCrLfNewlines(false), | - |
172 | isDirty(true) | - |
173 | { | - |
174 | }executed 5202 times by 22 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QMetaType
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 5202 |
175 | | - |
176 | | - |
177 | | - |
178 | | - |
179 | QRegularExpressionPrivate::~QRegularExpressionPrivate() | - |
180 | { | - |
181 | cleanCompiledPattern(); | - |
182 | }executed 5251 times by 23 tests: end of block Executed by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QMetaType
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qdbusxml2cpp - unknown status
- tst_qgraphicsview - unknown status
- tst_qlogging - unknown status
- tst_qopenglwidget - unknown status
- tst_qopenglwindow - unknown status
- tst_selftests - unknown status
| 5251 |
183 | QRegularExpressionPrivate::QRegularExpressionPrivate(const QRegularExpressionPrivate &other) | - |
184 | : QSharedData(other), | - |
185 | patternOptions(other.patternOptions), pattern(other.pattern), | - |
186 | mutex(), | - |
187 | compiledPattern(0), studyData(0), | - |
188 | errorString(0), | - |
189 | errorOffset(-1), capturingCount(0), | - |
190 | usedCount(0), | - |
191 | usingCrLfNewlines(false), isDirty(true) | - |
192 | { | - |
193 | }executed 50 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QString
- tst_QTextDocument
- tst_languageChange
| 50 |
194 | | - |
195 | | - |
196 | | - |
197 | | - |
198 | void QRegularExpressionPrivate::cleanCompiledPattern() | - |
199 | { | - |
200 | pcre16_free(compiledPattern); | - |
201 | pcre16_free_study(studyData.load()); | - |
202 | usedCount = 0; | - |
203 | compiledPattern = 0; | - |
204 | studyData.store(0); | - |
205 | usingCrLfNewlines = false; | - |
206 | errorOffset = -1; | - |
207 | capturingCount = 0; | - |
208 | }executed 9853 times by 26 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QMetaType
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qdbusxml2cpp - unknown status
- tst_qgraphicsview - unknown status
- tst_qlogging - unknown status
- tst_qopenglwidget - unknown status
- tst_qopenglwindow - unknown status
- ...
| 9853 |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | void QRegularExpressionPrivate::compilePattern() | - |
214 | { | - |
215 | QMutexLocker lock(&mutex); | - |
216 | | - |
217 | if (!isDirtyTRUE | evaluated 19819 times by 19 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 4602 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 4602-19819 |
218 | return;executed 19819 times by 19 tests: return; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 19819 |
219 | | - |
220 | isDirty = false; | - |
221 | cleanCompiledPattern(); | - |
222 | | - |
223 | int options = convertToPcreOptions(patternOptions); | - |
224 | options |= 0x00000800; | - |
225 | | - |
226 | int errorCode; | - |
227 | compiledPattern = pcre16_compile2(pattern.utf16(), options, | - |
228 | &errorCode, &errorString, &errorOffset, 0); | - |
229 | | - |
230 | if (!compiledPatternTRUE | evaluated 49 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 4553 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 49-4553 |
231 | return;executed 49 times by 4 tests: return; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 49 |
232 | | - |
233 | ((!(errorCode == 0)) ? qt_assert("errorCode == 0",__FILE__,1015) : qt_noop()); | - |
234 | ((!(studyData.load() == 0)) ? qt_assert("studyData.load() == 0",__FILE__,1016) : qt_noop()); | - |
235 | errorOffset = -1; | - |
236 | | - |
237 | getPatternInfo(); | - |
238 | }executed 4553 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4553 |
239 | | - |
240 | | - |
241 | | - |
242 | | - |
243 | void QRegularExpressionPrivate::getPatternInfo() | - |
244 | { | - |
245 | ((!(compiledPattern)) ? qt_assert("compiledPattern",__FILE__,1027) : qt_noop()); | - |
246 | ((!(studyData.load() == 0)) ? qt_assert("studyData.load() == 0",__FILE__,1028) : qt_noop()); | - |
247 | | - |
248 | pcre16_fullinfo(compiledPattern, 0, 2, &capturingCount); | - |
249 | | - |
250 | | - |
251 | unsigned long int patternNewlineSetting; | - |
252 | pcre16_fullinfo(compiledPattern, 0, 0, &patternNewlineSetting); | - |
253 | patternNewlineSetting &= 0x00100000 | 0x00200000 | 0x00300000 | - |
254 | | 0x00400000 | 0x00500000; | - |
255 | if (patternNewlineSetting == 0TRUE | evaluated 4544 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 9 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) { | 9-4544 |
256 | | - |
257 | int pcreNewlineSetting; | - |
258 | pcre16_config(1, &pcreNewlineSetting); | - |
259 | switch (pcreNewlineSetting) { | - |
260 | case never executed: case 13: 13:never executed: case 13: | 0 |
261 | patternNewlineSetting = 0x00100000; break; never executed: break; | 0 |
262 | caseexecuted 4544 times by 21 tests: case 10: Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
10:executed 4544 times by 21 tests: case 10: Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4544 |
263 | patternNewlineSetting = 0x00200000; break;executed 4544 times by 21 tests: break; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4544 |
264 | case never executed: case 3338: 3338:never executed: case 3338: | 0 |
265 | patternNewlineSetting = 0x00300000; break; never executed: break; | 0 |
266 | case never executed: case -2: -2:never executed: case -2: | 0 |
267 | patternNewlineSetting = 0x00500000; break; never executed: break; | 0 |
268 | case never executed: case -1: -1:never executed: case -1: | 0 |
269 | patternNewlineSetting = 0x00400000; break; never executed: break; | 0 |
270 | default never executed: default: :never executed: default: | 0 |
271 | QMessageLogger(__FILE__, 1053, __PRETTY_FUNCTION__).warning("QRegularExpressionPrivate::compilePattern(): " | - |
272 | "PCRE_CONFIG_NEWLINE returned an unknown newline"); | - |
273 | break; never executed: break; | 0 |
274 | } | - |
275 | } | - |
276 | | - |
277 | usingCrLfNewlines = (TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4547 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
patternNewlineSetting == 0x00300000)TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4547 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
|| | 6-4547 |
278 | (TRUE | never evaluated | FALSE | evaluated 4547 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
patternNewlineSetting == 0x00400000)TRUE | never evaluated | FALSE | evaluated 4547 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
|| | 0-4547 |
279 | (TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4544 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
patternNewlineSetting == 0x00500000)TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4544 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
; | 3-4544 |
280 | | - |
281 | int hasJOptionChanged; | - |
282 | pcre16_fullinfo(compiledPattern, 0, 13, &hasJOptionChanged); | - |
283 | if (hasJOptionChangedTRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4544 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) { | 9-4544 |
284 | QMessageLogger(__FILE__, 1066, __PRETTY_FUNCTION__).warning("QRegularExpressionPrivate::getPatternInfo(): the pattern '%s'\n" | - |
285 | " is using the (?J) option; duplicate capturing group names are not supported by Qt", | - |
286 | QString(pattern).toLocal8Bit().constData()); | - |
287 | }executed 9 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 9 |
288 | }executed 4553 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4553 |
289 | | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | | - |
295 | class QPcreJitStackPointer | - |
296 | { | - |
297 | QPcreJitStackPointer(const QPcreJitStackPointer &) = delete; QPcreJitStackPointer &operator=(const QPcreJitStackPointer &) = delete; | - |
298 | | - |
299 | public: | - |
300 | | - |
301 | | - |
302 | | - |
303 | QPcreJitStackPointer() | - |
304 | { | - |
305 | | - |
306 | | - |
307 | stack = pcre16_jit_stack_alloc(32*1024, 512*1024); | - |
308 | } never executed: end of block | 0 |
309 | | - |
310 | | - |
311 | | - |
312 | ~QPcreJitStackPointer() | - |
313 | { | - |
314 | if (stackTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
315 | pcre16_jit_stack_free(stack); never executed: pcre16_jit_stack_free(stack); | 0 |
316 | } never executed: end of block | 0 |
317 | | - |
318 | pcre16_jit_stack *stack; | - |
319 | }; | - |
320 | | - |
321 | namespace { namespace Q_QGS_jitStacks { typedef QThreadStorage<QPcreJitStackPointer *> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | never evaluated | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);never executed: guard.store(QtGlobalStatic::Destroyed); }never executed: end of block }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnnever executed: return &holder.value; &holder.value;never executed: return &holder.value; } } } static QGlobalStatic<QThreadStorage<QPcreJitStackPointer *>, Q_QGS_jitStacks::innerFunction, Q_QGS_jitStacks::guard> jitStacks; | 0 |
322 | | - |
323 | | - |
324 | | - |
325 | | - |
326 | static pcre16_jit_stack *qtPcreCallback(void *) | - |
327 | { | - |
328 | if (jitStacks()->hasLocalData()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
329 | return never executed: return jitStacks()->localData()->stack; jitStacks()->localData()->stack;never executed: return jitStacks()->localData()->stack; | 0 |
330 | | - |
331 | return never executed: return 0; 0;never executed: return 0; | 0 |
332 | } | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | static bool isJitEnabled() | - |
338 | { | - |
339 | QByteArray jitEnvironment = qgetenv("QT_ENABLE_REGEXP_JIT"); | - |
340 | if (!jitEnvironment.isEmpty()TRUE | never evaluated | FALSE | evaluated 12 times by 11 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) { | 0-12 |
341 | bool ok; | - |
342 | int enableJit = jitEnvironment.toInt(&ok); | - |
343 | return never executed: return ok ? (enableJit != 0) : true; ok ? (enableJit != 0) : true;never executed: return ok ? (enableJit != 0) : true; | 0 |
344 | } | - |
345 | | - |
346 | | - |
347 | returnexecuted 12 times by 11 tests: return false; Executed by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
false;executed 12 times by 11 tests: return false; Executed by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 12 |
348 | | - |
349 | | - |
350 | | - |
351 | } | - |
352 | void QRegularExpressionPrivate::optimizePattern(OptimizePatternOption option) | - |
353 | { | - |
354 | ((!(compiledPattern)) ? qt_assert("compiledPattern",__FILE__,1159) : qt_noop()); | - |
355 | | - |
356 | QMutexLocker lock(&mutex); | - |
357 | | - |
358 | if (studyData.load()TRUE | evaluated 3605 times by 10 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
| FALSE | evaluated 11397 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 3605-11397 |
359 | return;executed 3605 times by 10 tests: return; Executed by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
| 3605 |
360 | | - |
361 | if ((TRUE | evaluated 11097 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 300 times by 5 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
|
option == LazyOptimizeOption)TRUE | evaluated 11097 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 300 times by 5 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
|
&& (++TRUE | evaluated 10943 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 154 times by 7 testsEvaluated by:- tst_QItemDelegate
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
|
usedCount != qt_qregularexpression_optimize_after_use_count)TRUE | evaluated 10943 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 154 times by 7 testsEvaluated by:- tst_QItemDelegate
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
|
) | 154-11097 |
362 | return;executed 10943 times by 18 tests: return; Executed by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 10943 |
363 | | - |
364 | static const bool enableJit = isJitEnabled(); | - |
365 | | - |
366 | int studyOptions = 0; | - |
367 | if (enableJitTRUE | never evaluated | FALSE | evaluated 454 times by 11 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) | 0-454 |
368 | studyOptions |= (0x0001 | 0x0002 | 0x0004); never executed: studyOptions |= (0x0001 | 0x0002 | 0x0004); | 0 |
369 | | - |
370 | const char *err; | - |
371 | pcre16_extra * const localStudyData = pcre16_study(compiledPattern, studyOptions, &err); | - |
372 | | - |
373 | if (localStudyDataTRUE | evaluated 309 times by 10 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
| FALSE | evaluated 145 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qdbusxml2cpp
|
&& localStudyData->flags & 0x0040TRUE | never evaluated | FALSE | evaluated 309 times by 10 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
|
) | 0-309 |
374 | pcre16_assign_jit_stack(localStudyData, qtPcreCallback, 0); never executed: pcre16_assign_jit_stack(localStudyData, qtPcreCallback, 0); | 0 |
375 | | - |
376 | if (!localStudyDataTRUE | evaluated 145 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qdbusxml2cpp
| FALSE | evaluated 309 times by 10 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
|
&& errTRUE | never evaluated | FALSE | evaluated 145 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qdbusxml2cpp
|
) | 0-309 |
377 | QMessageLogger(__FILE__, 1182, __PRETTY_FUNCTION__).warning("QRegularExpressionPrivate::optimizePattern(): pcre_study failed: %s", err); never executed: QMessageLogger(__FILE__, 1182, __PRETTY_FUNCTION__).warning("QRegularExpressionPrivate::optimizePattern(): pcre_study failed: %s", err); | 0 |
378 | | - |
379 | studyData.storeRelease(localStudyData); | - |
380 | }executed 454 times by 11 tests: end of block Executed by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 454 |
381 | | - |
382 | | - |
383 | | - |
384 | | - |
385 | | - |
386 | | - |
387 | | - |
388 | int QRegularExpressionPrivate::captureIndexForName(const QString &name) const | - |
389 | { | - |
390 | ((!(!name.isEmpty())) ? qt_assert("!name.isEmpty()",__FILE__,1195) : qt_noop()); | - |
391 | | - |
392 | if (!compiledPatternTRUE | never evaluated | FALSE | evaluated 63 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 0-63 |
393 | return never executed: return -1; -1;never executed: return -1; | 0 |
394 | | - |
395 | int index = pcre16_get_stringnumber(compiledPattern, name.utf16()); | - |
396 | if (index >= 0TRUE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 30 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 30-33 |
397 | returnexecuted 33 times by 3 tests: return index; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
index;executed 33 times by 3 tests: return index; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 33 |
398 | | - |
399 | returnexecuted 30 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
-1;executed 30 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 30 |
400 | } | - |
401 | static int pcre16SafeExec(const pcre16 *code, const pcre16_extra *extra, | - |
402 | const unsigned short *subject, int length, | - |
403 | int startOffset, int options, | - |
404 | int *ovector, int ovecsize) | - |
405 | { | - |
406 | int result = pcre16_exec(code, extra, subject, length, | - |
407 | startOffset, options, ovector, ovecsize); | - |
408 | | - |
409 | if (result == (-27)TRUE | never evaluated | FALSE | evaluated 15086 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
&& !jitStacks()->hasLocalData()TRUE | never evaluated | FALSE | never evaluated |
) { | 0-15086 |
410 | QPcreJitStackPointer *p = new QPcreJitStackPointer; | - |
411 | jitStacks()->setLocalData(p); | - |
412 | | - |
413 | result = pcre16_exec(code, extra, subject, length, | - |
414 | startOffset, options, ovector, ovecsize); | - |
415 | } never executed: end of block | 0 |
416 | | - |
417 | returnexecuted 15086 times by 21 tests: return result; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
result;executed 15086 times by 21 tests: return result; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 15086 |
418 | } | - |
419 | QRegularExpressionMatchPrivate *QRegularExpressionPrivate::doMatch(const QString &subject, | - |
420 | int subjectStart, | - |
421 | int subjectLength, | - |
422 | int offset, | - |
423 | QRegularExpression::MatchType matchType, | - |
424 | QRegularExpression::MatchOptions matchOptions, | - |
425 | CheckSubjectStringOption checkSubjectStringOption, | - |
426 | const QRegularExpressionMatchPrivate *previous) const | - |
427 | { | - |
428 | if (offset < 0TRUE | evaluated 60 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 15145 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 60-15145 |
429 | offset += subjectLength;executed 60 times by 3 tests: offset += subjectLength; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 60 |
430 | | - |
431 | QRegularExpression re(*const_cast<QRegularExpressionPrivate *>(this)); | - |
432 | | - |
433 | if (offset < 0TRUE | never evaluated | FALSE | evaluated 15205 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
|| offset > subjectLengthTRUE | never evaluated | FALSE | evaluated 15205 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 0-15205 |
434 | return never executed: return new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions); new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions);never executed: return new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions); | 0 |
435 | | - |
436 | if (!compiledPatternTRUE | evaluated 24 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 15181 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) { | 24-15181 |
437 | QMessageLogger(__FILE__, 1280, __PRETTY_FUNCTION__).warning("QRegularExpressionPrivate::doMatch(): called on an invalid QRegularExpression object"); | - |
438 | returnexecuted 24 times by 3 tests: return new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions);executed 24 times by 3 tests: return new QRegularExpressionMatchPrivate(re, subject, subjectStart, subjectLength, matchType, matchOptions); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 24 |
439 | } | - |
440 | | - |
441 | | - |
442 | if (matchType == QRegularExpression::NoMatchTRUE | evaluated 474 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 14707 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) { | 474-14707 |
443 | QRegularExpressionMatchPrivate *priv = new QRegularExpressionMatchPrivate(re, subject, | - |
444 | subjectStart, subjectLength, | - |
445 | matchType, matchOptions); | - |
446 | priv->isValid = true; | - |
447 | returnexecuted 474 times by 3 tests: return priv; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
priv;executed 474 times by 3 tests: return priv; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 474 |
448 | } | - |
449 | | - |
450 | | - |
451 | QRegularExpressionMatchPrivate *priv = new QRegularExpressionMatchPrivate(re, subject, | - |
452 | subjectStart, subjectLength, | - |
453 | matchType, matchOptions, | - |
454 | capturingCount + 1); | - |
455 | | - |
456 | if (!(patternOptions & QRegularExpression::DontAutomaticallyOptimizeOption)TRUE | evaluated 14707 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | never evaluated |
) { | 0-14707 |
457 | const OptimizePatternOption optimizePatternOption = | - |
458 | (TRUE | evaluated 254 times by 4 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_qlogging - unknown status
| FALSE | evaluated 14453 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
patternOptions & QRegularExpression::OptimizeOnFirstUsageOption)TRUE | evaluated 254 times by 4 testsEvaluated by:- tst_QGraphicsView
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_qlogging - unknown status
| FALSE | evaluated 14453 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
| 254-14453 |
459 | ? ImmediateOptimizeOption | - |
460 | : LazyOptimizeOption; | - |
461 | | - |
462 | | - |
463 | const_cast<QRegularExpressionPrivate *>(this)->optimizePattern(optimizePatternOption); | - |
464 | }executed 14707 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 14707 |
465 | | - |
466 | | - |
467 | | - |
468 | | - |
469 | const pcre16_extra * const currentStudyData = studyData.loadAcquire(); | - |
470 | | - |
471 | int pcreOptions = convertToPcreOptions(matchOptions); | - |
472 | | - |
473 | if (matchType == QRegularExpression::PartialPreferCompleteMatchTRUE | evaluated 307 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_languageChange
| FALSE | evaluated 14400 times by 17 testsEvaluated by:- tst_QGraphicsView
- tst_QGuiVariant
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 307-14400 |
474 | pcreOptions |= 0x00008000;executed 307 times by 7 tests: pcreOptions |= 0x00008000; Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_languageChange
| 307 |
475 | else if (matchType == QRegularExpression::PartialPreferFirstMatchTRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 14316 times by 17 testsEvaluated by:- tst_QGraphicsView
- tst_QGuiVariant
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
) | 84-14316 |
476 | pcreOptions |= 0x08000000;executed 84 times by 3 tests: pcreOptions |= 0x08000000; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 84 |
477 | | - |
478 | if (checkSubjectStringOption == DontCheckSubjectStringTRUE | evaluated 2996 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| FALSE | evaluated 11711 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
| 2996-11711 |
479 | || matchOptions & QRegularExpression::DontCheckSubjectStringMatchOption) { | - |
480 | pcreOptions |= 0x00002000; | - |
481 | }executed 2996 times by 8 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 2996 |
482 | | - |
483 | bool previousMatchWasEmpty = false; | - |
484 | if (previousTRUE | evaluated 2996 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| FALSE | evaluated 11711 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
|
&& previous->hasMatchTRUE | evaluated 2996 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| FALSE | never evaluated |
&& | 0-11711 |
485 | (TRUE | evaluated 403 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 2593 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
|
previous->capturedOffsets.at(0) == previous->capturedOffsets.at(1))TRUE | evaluated 403 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 2593 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
|
) { | 403-2593 |
486 | previousMatchWasEmpty = true; | - |
487 | }executed 403 times by 4 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 403 |
488 | | - |
489 | int * const captureOffsets = priv->capturedOffsets.data(); | - |
490 | const int captureOffsetsCount = priv->capturedOffsets.size(); | - |
491 | | - |
492 | const unsigned short * const subjectUtf16 = subject.utf16() + subjectStart; | - |
493 | | - |
494 | int result; | - |
495 | | - |
496 | if (!previousMatchWasEmptyTRUE | evaluated 14304 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 403 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
) { | 403-14304 |
497 | result = pcre16SafeExec(compiledPattern, currentStudyData, | - |
498 | subjectUtf16, subjectLength, | - |
499 | offset, pcreOptions, | - |
500 | captureOffsets, captureOffsetsCount); | - |
501 | }executed 14304 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
else { | 14304 |
502 | result = pcre16SafeExec(compiledPattern, currentStudyData, | - |
503 | subjectUtf16, subjectLength, | - |
504 | offset, pcreOptions | 0x10000000 | 0x00000010, | - |
505 | captureOffsets, captureOffsetsCount); | - |
506 | | - |
507 | if (result == (-1)TRUE | evaluated 379 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 24 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) { | 24-379 |
508 | ++offset; | - |
509 | | - |
510 | if (usingCrLfNewlinesTRUE | evaluated 132 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 247 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
| 132-247 |
511 | && offset < subjectLengthTRUE | evaluated 96 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 36 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
| 36-96 |
512 | && subjectUtf16[offset - 1] == QLatin1Char('\r')TRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
| 12-84 |
513 | && subjectUtf16[offset] == QLatin1Char('\n')TRUE | evaluated 72 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) { | 12-72 |
514 | ++offset; | - |
515 | }executed 72 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
else if (offset < subjectLengthTRUE | evaluated 161 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 146 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
| 72-161 |
516 | && QChar::isLowSurrogate(subjectUtf16[offset])TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 125 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
) { | 36-125 |
517 | ++offset; | - |
518 | }executed 36 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 36 |
519 | | - |
520 | result = pcre16SafeExec(compiledPattern, currentStudyData, | - |
521 | subjectUtf16, subjectLength, | - |
522 | offset, pcreOptions, | - |
523 | captureOffsets, captureOffsetsCount); | - |
524 | }executed 379 times by 4 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 379 |
525 | }executed 403 times by 4 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 403 |
526 | ((!(result != 0)) ? qt_assert("result != 0",__FILE__,1379) : qt_noop()); | - |
527 | | - |
528 | if (result > 0TRUE | evaluated 6382 times by 18 testsEvaluated by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 8325 times by 15 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) { | 6382-8325 |
529 | | - |
530 | priv->isValid = true; | - |
531 | priv->hasMatch = true; | - |
532 | priv->capturedCount = result; | - |
533 | priv->capturedOffsets.resize(result * 2); | - |
534 | }executed 6382 times by 18 tests: end of block Executed by:- tst_QColorDialog
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
else { | 6382 |
535 | | - |
536 | priv->hasPartialMatch = (result == (-12)); | - |
537 | priv->isValid = (result == (-1)TRUE | evaluated 7964 times by 15 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| FALSE | evaluated 361 times by 6 testsEvaluated by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
|| result == (-12)TRUE | evaluated 237 times by 5 testsEvaluated by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 124 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
); | 124-7964 |
538 | | - |
539 | if (result == (-12)TRUE | evaluated 237 times by 5 testsEvaluated by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 8088 times by 15 testsEvaluated by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) { | 237-8088 |
540 | | - |
541 | | - |
542 | priv->capturedCount = 1; | - |
543 | priv->capturedOffsets.resize(2); | - |
544 | }executed 237 times by 5 tests: end of block Executed by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
else { | 237 |
545 | | - |
546 | priv->capturedCount = 0; | - |
547 | priv->capturedOffsets.clear(); | - |
548 | }executed 8088 times by 15 tests: end of block Executed by:- tst_QGraphicsView
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 8088 |
549 | } | - |
550 | | - |
551 | returnexecuted 14707 times by 21 tests: return priv; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
priv;executed 14707 times by 21 tests: return priv; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 14707 |
552 | } | - |
553 | | - |
554 | | - |
555 | | - |
556 | | - |
557 | QRegularExpressionMatchPrivate::QRegularExpressionMatchPrivate(const QRegularExpression &re, | - |
558 | const QString &subject, | - |
559 | int subjectStart, | - |
560 | int subjectLength, | - |
561 | QRegularExpression::MatchType matchType, | - |
562 | QRegularExpression::MatchOptions matchOptions, | - |
563 | int capturingCount) | - |
564 | : regularExpression(re), subject(subject), | - |
565 | subjectStart(subjectStart), subjectLength(subjectLength), | - |
566 | matchType(matchType), matchOptions(matchOptions), | - |
567 | capturedCount(0), | - |
568 | hasMatch(false), hasPartialMatch(false), isValid(false) | - |
569 | { | - |
570 | ((!(capturingCount >= 0)) ? qt_assert("capturingCount >= 0",__FILE__,1423) : qt_noop()); | - |
571 | if (capturingCount > 0TRUE | evaluated 14707 times by 21 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 596 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
|
) { | 596-14707 |
572 | const int captureOffsetsCount = capturingCount * 3; | - |
573 | capturedOffsets.resize(captureOffsetsCount); | - |
574 | }executed 14707 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 14707 |
575 | }executed 15303 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 15303 |
576 | | - |
577 | | - |
578 | | - |
579 | | - |
580 | | - |
581 | QRegularExpressionMatch QRegularExpressionMatchPrivate::nextMatch() const | - |
582 | { | - |
583 | ((!(isValid)) ? qt_assert("isValid",__FILE__,1436) : qt_noop()); | - |
584 | ((!(hasMatch || hasPartialMatch)) ? qt_assert("hasMatch || hasPartialMatch",__FILE__,1437) : qt_noop()); | - |
585 | | - |
586 | | - |
587 | | - |
588 | | - |
589 | | - |
590 | QRegularExpressionMatchPrivate *nextPrivate = regularExpression.d->doMatch(subject, | - |
591 | subjectStart, | - |
592 | subjectLength, | - |
593 | capturedOffsets.at(1), | - |
594 | matchType, | - |
595 | matchOptions, | - |
596 | QRegularExpressionPrivate::DontCheckSubjectString, | - |
597 | this); | - |
598 | returnexecuted 2996 times by 8 tests: return QRegularExpressionMatch(*nextPrivate); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
QRegularExpressionMatch(*nextPrivate);executed 2996 times by 8 tests: return QRegularExpressionMatch(*nextPrivate); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 2996 |
599 | } | - |
600 | | - |
601 | | - |
602 | | - |
603 | | - |
604 | QRegularExpressionMatchIteratorPrivate::QRegularExpressionMatchIteratorPrivate(const QRegularExpression &re, | - |
605 | QRegularExpression::MatchType matchType, | - |
606 | QRegularExpression::MatchOptions matchOptions, | - |
607 | const QRegularExpressionMatch &next) | - |
608 | : next(next), | - |
609 | regularExpression(re), | - |
610 | matchType(matchType), matchOptions(matchOptions) | - |
611 | { | - |
612 | }executed 7560 times by 8 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 7560 |
613 | | - |
614 | | - |
615 | | - |
616 | | - |
617 | bool QRegularExpressionMatchIteratorPrivate::hasNext() const | - |
618 | { | - |
619 | returnexecuted 15675 times by 8 tests: return next.isValid() && (next.hasMatch() || next.hasPartialMatch()); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
next.isValid() && (next.hasMatch() || next.hasPartialMatch());executed 15675 times by 8 tests: return next.isValid() && (next.hasMatch() || next.hasPartialMatch()); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 15675 |
620 | } | - |
621 | QRegularExpression::QRegularExpression() | - |
622 | : d(new QRegularExpressionPrivate) | - |
623 | { | - |
624 | }executed 354 times by 11 tests: end of block Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
- tst_QVariant
- tst_languageChange
| 354 |
625 | | - |
626 | | - |
627 | | - |
628 | | - |
629 | | - |
630 | | - |
631 | | - |
632 | QRegularExpression::QRegularExpression(const QString &pattern, PatternOptions options) | - |
633 | : d(new QRegularExpressionPrivate) | - |
634 | { | - |
635 | d->pattern = pattern; | - |
636 | d->patternOptions = options; | - |
637 | }executed 4848 times by 22 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QMetaType
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 4848 |
638 | | - |
639 | | - |
640 | | - |
641 | | - |
642 | | - |
643 | | - |
644 | QRegularExpression::QRegularExpression(const QRegularExpression &re) | - |
645 | : d(re.d) | - |
646 | { | - |
647 | }executed 28300 times by 22 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QMetaType
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 28300 |
648 | | - |
649 | | - |
650 | | - |
651 | | - |
652 | QRegularExpression::~QRegularExpression() | - |
653 | { | - |
654 | } | - |
655 | | - |
656 | | - |
657 | | - |
658 | | - |
659 | | - |
660 | QRegularExpression &QRegularExpression::operator=(const QRegularExpression &re) | - |
661 | { | - |
662 | d = re.d; | - |
663 | returnexecuted 219 times by 7 tests: return *this; Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_languageChange
*this;executed 219 times by 7 tests: return *this; Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_languageChange
| 219 |
664 | } | - |
665 | QString QRegularExpression::pattern() const | - |
666 | { | - |
667 | returnexecuted 681 times by 12 tests: return d->pattern; Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QStringList
- tst_QVariant
- tst_languageChange
- tst_qdbusxml2cpp
- tst_selftests - unknown status
d->pattern;executed 681 times by 12 tests: return d->pattern; Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QStringList
- tst_QVariant
- tst_languageChange
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| 681 |
668 | } | - |
669 | | - |
670 | | - |
671 | | - |
672 | | - |
673 | | - |
674 | | - |
675 | | - |
676 | void QRegularExpression::setPattern(const QString &pattern) | - |
677 | { | - |
678 | d.detach(); | - |
679 | d->isDirty = true; | - |
680 | d->pattern = pattern; | - |
681 | }executed 139 times by 9 tests: end of block Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
- tst_languageChange
| 139 |
682 | | - |
683 | | - |
684 | | - |
685 | | - |
686 | | - |
687 | | - |
688 | QRegularExpression::PatternOptions QRegularExpression::patternOptions() const | - |
689 | { | - |
690 | returnexecuted 259 times by 8 tests: return d->patternOptions; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
d->patternOptions;executed 259 times by 8 tests: return d->patternOptions; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
| 259 |
691 | } | - |
692 | | - |
693 | | - |
694 | | - |
695 | | - |
696 | | - |
697 | | - |
698 | | - |
699 | void QRegularExpression::setPatternOptions(PatternOptions options) | - |
700 | { | - |
701 | d.detach(); | - |
702 | d->isDirty = true; | - |
703 | d->patternOptions = options; | - |
704 | }executed 105 times by 7 tests: end of block Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
- tst_QVariant
| 105 |
705 | int QRegularExpression::captureCount() const | - |
706 | { | - |
707 | if (!isValid()TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 1567 times by 7 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_Selftests
- tst_qdbusxml2cpp
|
) | 30-1567 |
708 | returnexecuted 30 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
-1;executed 30 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 30 |
709 | returnexecuted 1567 times by 7 tests: return d->capturingCount; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_Selftests
- tst_qdbusxml2cpp
d->capturingCount;executed 1567 times by 7 tests: return d->capturingCount; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_Selftests
- tst_qdbusxml2cpp
| 1567 |
710 | } | - |
711 | QStringList QRegularExpression::namedCaptureGroups() const | - |
712 | { | - |
713 | if (!isValid()TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 12-33 |
714 | returnexecuted 12 times by 3 tests: return QStringList(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QStringList();executed 12 times by 3 tests: return QStringList(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 12 |
715 | | - |
716 | | - |
717 | | - |
718 | | - |
719 | | - |
720 | | - |
721 | ushort *namedCapturingTable; | - |
722 | int namedCapturingTableEntryCount; | - |
723 | int namedCapturingTableEntrySize; | - |
724 | | - |
725 | pcre16_fullinfo(d->compiledPattern, 0, 9, &namedCapturingTable); | - |
726 | pcre16_fullinfo(d->compiledPattern, 0, 8, &namedCapturingTableEntryCount); | - |
727 | pcre16_fullinfo(d->compiledPattern, 0, 7, &namedCapturingTableEntrySize); | - |
728 | | - |
729 | QStringList result; | - |
730 | | - |
731 | | - |
732 | result.reserve(d->capturingCount + 1); | - |
733 | for (int i = 0; i < d->capturingCount + 1TRUE | evaluated 90 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
; ++i) | 33-90 |
734 | result.append(QString());executed 90 times by 3 tests: result.append(QString()); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 90 |
735 | | - |
736 | for (int i = 0; i < namedCapturingTableEntryCountTRUE | evaluated 39 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
; ++i) { | 33-39 |
737 | const ushort * const currentNamedCapturingTableRow = namedCapturingTable + | - |
738 | namedCapturingTableEntrySize * i; | - |
739 | | - |
740 | const int index = *currentNamedCapturingTableRow; | - |
741 | result[index] = QString::fromUtf16(currentNamedCapturingTableRow + 1); | - |
742 | }executed 39 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 39 |
743 | | - |
744 | returnexecuted 33 times by 3 tests: return result; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
result;executed 33 times by 3 tests: return result; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 33 |
745 | } | - |
746 | bool QRegularExpression::isValid() const | - |
747 | { | - |
748 | d.data()->compilePattern(); | - |
749 | returnexecuted 11972 times by 12 tests: return d->compiledPattern; Executed by:- tst_QGuiVariant
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_selftests - unknown status
d->compiledPattern;executed 11972 times by 12 tests: return d->compiledPattern; Executed by:- tst_QGuiVariant
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| 11972 |
750 | } | - |
751 | | - |
752 | | - |
753 | | - |
754 | | - |
755 | | - |
756 | | - |
757 | | - |
758 | QString QRegularExpression::errorString() const | - |
759 | { | - |
760 | d.data()->compilePattern(); | - |
761 | if (d->errorStringTRUE | never evaluated | FALSE | evaluated 240 times by 1 test |
) | 0-240 |
762 | return never executed: return QCoreApplication::translate("QRegularExpression", d->errorString); QCoreApplication::translate("QRegularExpression", d->errorString);never executed: return QCoreApplication::translate("QRegularExpression", d->errorString); | 0 |
763 | returnexecuted 240 times by 1 test: return QCoreApplication::translate("QRegularExpression", "no error"); QCoreApplication::translate("QRegularExpression", "no error");executed 240 times by 1 test: return QCoreApplication::translate("QRegularExpression", "no error"); | 240 |
764 | } | - |
765 | int QRegularExpression::patternErrorOffset() const | - |
766 | { | - |
767 | d.data()->compilePattern(); | - |
768 | return never executed: return d->errorOffset; d->errorOffset;never executed: return d->errorOffset; | 0 |
769 | } | - |
770 | QRegularExpressionMatch QRegularExpression::match(const QString &subject, | - |
771 | int offset, | - |
772 | MatchType matchType, | - |
773 | MatchOptions matchOptions) const | - |
774 | { | - |
775 | d.data()->compilePattern(); | - |
776 | | - |
777 | QRegularExpressionMatchPrivate *priv = d->doMatch(subject, 0, subject.length(), offset, matchType, matchOptions); | - |
778 | returnexecuted 11696 times by 21 tests: return QRegularExpressionMatch(*priv); Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
QRegularExpressionMatch(*priv);executed 11696 times by 21 tests: return QRegularExpressionMatch(*priv); Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 11696 |
779 | } | - |
780 | QRegularExpressionMatch QRegularExpression::match(const QStringRef &subjectRef, | - |
781 | int offset, | - |
782 | MatchType matchType, | - |
783 | MatchOptions matchOptions) const | - |
784 | { | - |
785 | d.data()->compilePattern(); | - |
786 | | - |
787 | const QString subject = subjectRef.string()TRUE | evaluated 513 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | never evaluated |
? *subjectRef.string() : QString(); | 0-513 |
788 | | - |
789 | QRegularExpressionMatchPrivate *priv = d->doMatch(subject, subjectRef.position(), subjectRef.length(), offset, matchType, matchOptions); | - |
790 | returnexecuted 513 times by 3 tests: return QRegularExpressionMatch(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QRegularExpressionMatch(*priv);executed 513 times by 3 tests: return QRegularExpressionMatch(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 513 |
791 | } | - |
792 | QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QString &subject, | - |
793 | int offset, | - |
794 | MatchType matchType, | - |
795 | MatchOptions matchOptions) const | - |
796 | { | - |
797 | QRegularExpressionMatchIteratorPrivate *priv = | - |
798 | new QRegularExpressionMatchIteratorPrivate(*this, | - |
799 | matchType, | - |
800 | matchOptions, | - |
801 | match(subject, offset, matchType, matchOptions)); | - |
802 | | - |
803 | returnexecuted 7464 times by 8 tests: return QRegularExpressionMatchIterator(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
QRegularExpressionMatchIterator(*priv);executed 7464 times by 8 tests: return QRegularExpressionMatchIterator(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 7464 |
804 | } | - |
805 | QRegularExpressionMatchIterator QRegularExpression::globalMatch(const QStringRef &subjectRef, | - |
806 | int offset, | - |
807 | MatchType matchType, | - |
808 | MatchOptions matchOptions) const | - |
809 | { | - |
810 | QRegularExpressionMatchIteratorPrivate *priv = | - |
811 | new QRegularExpressionMatchIteratorPrivate(*this, | - |
812 | matchType, | - |
813 | matchOptions, | - |
814 | match(subjectRef, offset, matchType, matchOptions)); | - |
815 | | - |
816 | returnexecuted 93 times by 3 tests: return QRegularExpressionMatchIterator(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QRegularExpressionMatchIterator(*priv);executed 93 times by 3 tests: return QRegularExpressionMatchIterator(*priv); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 93 |
817 | } | - |
818 | void QRegularExpression::optimize() const | - |
819 | { | - |
820 | if (!isValid()TRUE | evaluated 13 times by 1 testEvaluated by:- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 295 times by 1 testEvaluated by:- tst_QRegularExpression_ForceOptimize
|
) | 13-295 |
821 | return;executed 13 times by 1 test: return; Executed by:- tst_QRegularExpression_ForceOptimize
| 13 |
822 | | - |
823 | d->optimizePattern(QRegularExpressionPrivate::ImmediateOptimizeOption); | - |
824 | }executed 295 times by 1 test: end of block Executed by:- tst_QRegularExpression_ForceOptimize
| 295 |
825 | bool QRegularExpression::operator==(const QRegularExpression &re) const | - |
826 | { | - |
827 | returnexecuted 4252 times by 9 tests: return (d == re.d) || (d->pattern == re.d->pattern && d->patternOptions == re.d->patternOptions); Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
- tst_languageChange
(d == re.d) ||executed 4252 times by 9 tests: return (d == re.d) || (d->pattern == re.d->pattern && d->patternOptions == re.d->patternOptions); Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
- tst_languageChange
| 4252 |
828 | (d->pattern == re.d->pattern && d->patternOptions == re.d->patternOptions);executed 4252 times by 9 tests: return (d == re.d) || (d->pattern == re.d->pattern && d->patternOptions == re.d->patternOptions); Executed by:- tst_QColorDialog
- tst_QItemDelegate
- tst_QMetaType
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
- tst_languageChange
| 4252 |
829 | } | - |
830 | uint qHash(const QRegularExpression &key, uint seed) noexcept | - |
831 | { | - |
832 | QtPrivate::QHashCombine hash; | - |
833 | seed = hash(seed, key.d->pattern); | - |
834 | seed = hash(seed, key.d->patternOptions); | - |
835 | returnexecuted 1350 times by 3 tests: return seed; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
seed;executed 1350 times by 3 tests: return seed; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 1350 |
836 | } | - |
837 | QString QRegularExpression::escape(const QString &str) | - |
838 | { | - |
839 | QString result; | - |
840 | const int count = str.size(); | - |
841 | result.reserve(count * 2); | - |
842 | | - |
843 | | - |
844 | | - |
845 | for (int i = 0; i < countTRUE | evaluated 4659 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 146 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
; ++i) { | 146-4659 |
846 | const QChar current = str.at(i); | - |
847 | | - |
848 | if (current == QChar::NullTRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 4641 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
) { | 18-4641 |
849 | | - |
850 | | - |
851 | | - |
852 | result.append(QLatin1Char('\\')); | - |
853 | result.append(QLatin1Char('0')); | - |
854 | }executed 18 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
else if ( (current < QLatin1Char('a')TRUE | evaluated 284 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 4357 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
|| current > QLatin1Char('z')TRUE | evaluated 46 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 4311 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
) && | 18-4357 |
855 | (current < QLatin1Char('A')TRUE | evaluated 117 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 213 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
|| current > QLatin1Char('Z')TRUE | evaluated 70 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 143 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
) && | 70-213 |
856 | (current < QLatin1Char('0')TRUE | evaluated 72 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 115 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
|| current > QLatin1Char('9')TRUE | evaluated 82 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) && | 33-115 |
857 | current != QLatin1Char('_')TRUE | evaluated 151 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| FALSE | evaluated 3 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 3-151 |
858 | { | - |
859 | result.append(QLatin1Char('\\')); | - |
860 | result.append(current); | - |
861 | if (current.isHighSurrogate()TRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 142 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
|
&& i < (count - 1)TRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | never evaluated |
) | 0-142 |
862 | result.append(str.at(++i));executed 9 times by 3 tests: result.append(str.at(++i)); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 9 |
863 | }executed 151 times by 4 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
else { | 151 |
864 | result.append(current); | - |
865 | }executed 4490 times by 4 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 4490 |
866 | } | - |
867 | | - |
868 | result.squeeze(); | - |
869 | returnexecuted 146 times by 4 tests: return result; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
result;executed 146 times by 4 tests: return result; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
| 146 |
870 | } | - |
871 | QRegularExpressionMatch::QRegularExpressionMatch() | - |
872 | : d(new QRegularExpressionMatchPrivate(QRegularExpression(), | - |
873 | QString(), | - |
874 | 0, | - |
875 | 0, | - |
876 | QRegularExpression::NoMatch, | - |
877 | QRegularExpression::NoMatchOption)) | - |
878 | { | - |
879 | d->isValid = true; | - |
880 | }executed 98 times by 5 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QTextDocument
| 98 |
881 | | - |
882 | | - |
883 | | - |
884 | | - |
885 | QRegularExpressionMatch::~QRegularExpressionMatch() | - |
886 | { | - |
887 | } | - |
888 | | - |
889 | | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | QRegularExpressionMatch::QRegularExpressionMatch(const QRegularExpressionMatch &match) | - |
895 | : d(match.d) | - |
896 | { | - |
897 | }executed 14212 times by 8 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 14212 |
898 | | - |
899 | | - |
900 | | - |
901 | | - |
902 | | - |
903 | QRegularExpressionMatch &QRegularExpressionMatch::operator=(const QRegularExpressionMatch &match) | - |
904 | { | - |
905 | d = match.d; | - |
906 | return never executed: return *this; *this;never executed: return *this; | 0 |
907 | } | - |
908 | QRegularExpressionMatch::QRegularExpressionMatch(QRegularExpressionMatchPrivate &dd) | - |
909 | : d(&dd) | - |
910 | { | - |
911 | }executed 15205 times by 21 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 15205 |
912 | | - |
913 | | - |
914 | | - |
915 | | - |
916 | | - |
917 | | - |
918 | | - |
919 | QRegularExpression QRegularExpressionMatch::regularExpression() const | - |
920 | { | - |
921 | returnexecuted 3090 times by 3 tests: return d->regularExpression; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->regularExpression;executed 3090 times by 3 tests: return d->regularExpression; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 3090 |
922 | } | - |
923 | QRegularExpression::MatchType QRegularExpressionMatch::matchType() const | - |
924 | { | - |
925 | returnexecuted 1257 times by 3 tests: return d->matchType; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->matchType;executed 1257 times by 3 tests: return d->matchType; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 1257 |
926 | } | - |
927 | QRegularExpression::MatchOptions QRegularExpressionMatch::matchOptions() const | - |
928 | { | - |
929 | returnexecuted 1257 times by 3 tests: return d->matchOptions; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->matchOptions;executed 1257 times by 3 tests: return d->matchOptions; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 1257 |
930 | } | - |
931 | int QRegularExpressionMatch::lastCapturedIndex() const | - |
932 | { | - |
933 | returnexecuted 44112 times by 9 tests: return d->capturedCount - 1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
d->capturedCount - 1;executed 44112 times by 9 tests: return d->capturedCount - 1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 44112 |
934 | } | - |
935 | QString QRegularExpressionMatch::captured(int nth) const | - |
936 | { | - |
937 | if (nth < 0TRUE | never evaluated | FALSE | evaluated 4000 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qlogging - unknown status
|
|| nth > lastCapturedIndex()TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 3970 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qlogging - unknown status
|
) | 0-4000 |
938 | returnexecuted 30 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QString();executed 30 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 30 |
939 | | - |
940 | int start = capturedStart(nth); | - |
941 | | - |
942 | if (start == -1TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 3958 times by 5 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qlogging - unknown status
|
) | 12-3958 |
943 | returnexecuted 12 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QString();executed 12 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 12 |
944 | | - |
945 | returnexecuted 3958 times by 5 tests: return d->subject.mid(start + d->subjectStart, capturedLength(nth)); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qlogging - unknown status
d->subject.mid(start + d->subjectStart, capturedLength(nth));executed 3958 times by 5 tests: return d->subject.mid(start + d->subjectStart, capturedLength(nth)); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_qlogging - unknown status
| 3958 |
946 | } | - |
947 | QStringRef QRegularExpressionMatch::capturedRef(int nth) const | - |
948 | { | - |
949 | if (nth < 0TRUE | never evaluated | FALSE | evaluated 1591 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
|
|| nth > lastCapturedIndex()TRUE | never evaluated | FALSE | evaluated 1591 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
|
) | 0-1591 |
950 | return never executed: return QStringRef(); QStringRef();never executed: return QStringRef(); | 0 |
951 | | - |
952 | int start = capturedStart(nth); | - |
953 | | - |
954 | if (start == -1TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 1585 times by 4 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
|
) | 6-1585 |
955 | returnexecuted 6 times by 3 tests: return QStringRef(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QStringRef();executed 6 times by 3 tests: return QStringRef(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 6 |
956 | | - |
957 | returnexecuted 1585 times by 4 tests: return d->subject.midRef(start + d->subjectStart, capturedLength(nth)); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
d->subject.midRef(start + d->subjectStart, capturedLength(nth));executed 1585 times by 4 tests: return d->subject.midRef(start + d->subjectStart, capturedLength(nth)); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_qlogging - unknown status
| 1585 |
958 | } | - |
959 | QString QRegularExpressionMatch::captured(const QString &name) const | - |
960 | { | - |
961 | if (name.isEmpty()TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 63 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) { | 12-63 |
962 | QMessageLogger(__FILE__, 2098, __PRETTY_FUNCTION__).warning("QRegularExpressionMatch::captured: empty capturing group name passed"); | - |
963 | returnexecuted 12 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QString();executed 12 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 12 |
964 | } | - |
965 | int nth = d->regularExpression.d->captureIndexForName(name); | - |
966 | if (nth == -1TRUE | evaluated 30 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 30-33 |
967 | returnexecuted 30 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
QString();executed 30 times by 3 tests: return QString(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 30 |
968 | returnexecuted 33 times by 3 tests: return captured(nth); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
captured(nth);executed 33 times by 3 tests: return captured(nth); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 33 |
969 | } | - |
970 | QStringRef QRegularExpressionMatch::capturedRef(const QString &name) const | - |
971 | { | - |
972 | if (name.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
973 | QMessageLogger(__FILE__, 2118, __PRETTY_FUNCTION__).warning("QRegularExpressionMatch::capturedRef: empty capturing group name passed"); | - |
974 | return never executed: return QStringRef(); QStringRef();never executed: return QStringRef(); | 0 |
975 | } | - |
976 | int nth = d->regularExpression.d->captureIndexForName(name); | - |
977 | if (nth == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
978 | return never executed: return QStringRef(); QStringRef();never executed: return QStringRef(); | 0 |
979 | return never executed: return capturedRef(nth); capturedRef(nth);never executed: return capturedRef(nth); | 0 |
980 | } | - |
981 | | - |
982 | | - |
983 | | - |
984 | | - |
985 | | - |
986 | QStringList QRegularExpressionMatch::capturedTexts() const | - |
987 | { | - |
988 | QStringList texts; | - |
989 | texts.reserve(d->capturedCount); | - |
990 | for (int i = 0; i < d->capturedCountTRUE | never evaluated | FALSE | never evaluated |
; ++i) | 0 |
991 | texts << captured(i); never executed: texts << captured(i); | 0 |
992 | return never executed: return texts; texts;never executed: return texts; | 0 |
993 | } | - |
994 | int QRegularExpressionMatch::capturedStart(int nth) const | - |
995 | { | - |
996 | if (nth < 0TRUE | never evaluated | FALSE | evaluated 18135 times by 9 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
|| nth > lastCapturedIndex()TRUE | evaluated 60 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 18075 times by 9 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) | 0-18135 |
997 | returnexecuted 60 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
-1;executed 60 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 60 |
998 | | - |
999 | returnexecuted 18075 times by 9 tests: return d->capturedOffsets.at(nth * 2); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
d->capturedOffsets.at(nth * 2);executed 18075 times by 9 tests: return d->capturedOffsets.at(nth * 2); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 18075 |
1000 | } | - |
1001 | int QRegularExpressionMatch::capturedLength(int nth) const | - |
1002 | { | - |
1003 | | - |
1004 | returnexecuted 7499 times by 7 tests: return capturedEnd(nth) - capturedStart(nth); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_qlogging - unknown status
capturedEnd(nth) - capturedStart(nth);executed 7499 times by 7 tests: return capturedEnd(nth) - capturedStart(nth); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_qlogging - unknown status
| 7499 |
1005 | } | - |
1006 | int QRegularExpressionMatch::capturedEnd(int nth) const | - |
1007 | { | - |
1008 | if (nth < 0TRUE | never evaluated | FALSE | evaluated 11905 times by 9 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
|| nth > lastCapturedIndex()TRUE | evaluated 60 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 11845 times by 9 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
|
) | 0-11905 |
1009 | returnexecuted 60 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
-1;executed 60 times by 3 tests: return -1; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 60 |
1010 | | - |
1011 | returnexecuted 11845 times by 9 tests: return d->capturedOffsets.at(nth * 2 + 1); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
d->capturedOffsets.at(nth * 2 + 1);executed 11845 times by 9 tests: return d->capturedOffsets.at(nth * 2 + 1); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
| 11845 |
1012 | } | - |
1013 | int QRegularExpressionMatch::capturedStart(const QString &name) const | - |
1014 | { | - |
1015 | if (name.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1016 | QMessageLogger(__FILE__, 2196, __PRETTY_FUNCTION__).warning("QRegularExpressionMatch::capturedStart: empty capturing group name passed"); | - |
1017 | return never executed: return -1; -1;never executed: return -1; | 0 |
1018 | } | - |
1019 | int nth = d->regularExpression.d->captureIndexForName(name); | - |
1020 | if (nth == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1021 | return never executed: return -1; -1;never executed: return -1; | 0 |
1022 | return never executed: return capturedStart(nth); capturedStart(nth);never executed: return capturedStart(nth); | 0 |
1023 | } | - |
1024 | int QRegularExpressionMatch::capturedLength(const QString &name) const | - |
1025 | { | - |
1026 | if (name.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1027 | QMessageLogger(__FILE__, 2217, __PRETTY_FUNCTION__).warning("QRegularExpressionMatch::capturedLength: empty capturing group name passed"); | - |
1028 | return never executed: return 0; 0;never executed: return 0; | 0 |
1029 | } | - |
1030 | int nth = d->regularExpression.d->captureIndexForName(name); | - |
1031 | if (nth == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1032 | return never executed: return 0; 0;never executed: return 0; | 0 |
1033 | return never executed: return capturedLength(nth); capturedLength(nth);never executed: return capturedLength(nth); | 0 |
1034 | } | - |
1035 | int QRegularExpressionMatch::capturedEnd(const QString &name) const | - |
1036 | { | - |
1037 | if (name.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1038 | QMessageLogger(__FILE__, 2237, __PRETTY_FUNCTION__).warning("QRegularExpressionMatch::capturedEnd: empty capturing group name passed"); | - |
1039 | return never executed: return -1; -1;never executed: return -1; | 0 |
1040 | } | - |
1041 | int nth = d->regularExpression.d->captureIndexForName(name); | - |
1042 | if (nth == -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1043 | return never executed: return -1; -1;never executed: return -1; | 0 |
1044 | return never executed: return capturedEnd(nth); capturedEnd(nth);never executed: return capturedEnd(nth); | 0 |
1045 | } | - |
1046 | | - |
1047 | | - |
1048 | | - |
1049 | | - |
1050 | | - |
1051 | | - |
1052 | | - |
1053 | bool QRegularExpressionMatch::hasMatch() const | - |
1054 | { | - |
1055 | returnexecuted 27025 times by 21 tests: return d->hasMatch; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
d->hasMatch;executed 27025 times by 21 tests: return d->hasMatch; Executed by:- tst_QColorDialog
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QItemDelegate
- tst_QObject
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_QVariant
- tst_QWidgetsVariant
- tst_Selftests
- tst_languageChange
- tst_qdbusxml2cpp
- tst_qlogging - unknown status
- tst_selftests - unknown status
| 27025 |
1056 | } | - |
1057 | bool QRegularExpressionMatch::hasPartialMatch() const | - |
1058 | { | - |
1059 | returnexecuted 13642 times by 10 tests: return d->hasPartialMatch; Executed by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
d->hasPartialMatch;executed 13642 times by 10 tests: return d->hasPartialMatch; Executed by:- tst_QItemDelegate
- tst_QRegularExpressionValidator
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 13642 |
1060 | } | - |
1061 | bool QRegularExpressionMatch::isValid() const | - |
1062 | { | - |
1063 | returnexecuted 21717 times by 8 tests: return d->isValid; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
d->isValid;executed 21717 times by 8 tests: return d->isValid; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 21717 |
1064 | } | - |
1065 | | - |
1066 | | - |
1067 | | - |
1068 | | - |
1069 | QRegularExpressionMatchIterator::QRegularExpressionMatchIterator(QRegularExpressionMatchIteratorPrivate &dd) | - |
1070 | : d(&dd) | - |
1071 | { | - |
1072 | }executed 7557 times by 8 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 7557 |
1073 | QRegularExpressionMatchIterator::QRegularExpressionMatchIterator() | - |
1074 | : d(new QRegularExpressionMatchIteratorPrivate(QRegularExpression(), | - |
1075 | QRegularExpression::NoMatch, | - |
1076 | QRegularExpression::NoMatchOption, | - |
1077 | QRegularExpressionMatch())) | - |
1078 | { | - |
1079 | }executed 3 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 3 |
1080 | | - |
1081 | | - |
1082 | | - |
1083 | | - |
1084 | QRegularExpressionMatchIterator::~QRegularExpressionMatchIterator() | - |
1085 | { | - |
1086 | } | - |
1087 | | - |
1088 | | - |
1089 | | - |
1090 | | - |
1091 | | - |
1092 | | - |
1093 | | - |
1094 | QRegularExpressionMatchIterator::QRegularExpressionMatchIterator(const QRegularExpressionMatchIterator &iterator) | - |
1095 | : d(iterator.d) | - |
1096 | { | - |
1097 | }executed 348 times by 3 tests: end of block Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 348 |
1098 | | - |
1099 | | - |
1100 | | - |
1101 | | - |
1102 | | - |
1103 | QRegularExpressionMatchIterator &QRegularExpressionMatchIterator::operator=(const QRegularExpressionMatchIterator &iterator) | - |
1104 | { | - |
1105 | d = iterator.d; | - |
1106 | return never executed: return *this; *this;never executed: return *this; | 0 |
1107 | } | - |
1108 | bool QRegularExpressionMatchIterator::isValid() const | - |
1109 | { | - |
1110 | returnexecuted 276 times by 3 tests: return d->next.isValid(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->next.isValid();executed 276 times by 3 tests: return d->next.isValid(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 276 |
1111 | } | - |
1112 | | - |
1113 | | - |
1114 | | - |
1115 | | - |
1116 | | - |
1117 | | - |
1118 | | - |
1119 | bool QRegularExpressionMatchIterator::hasNext() const | - |
1120 | { | - |
1121 | returnexecuted 15675 times by 8 tests: return d->hasNext(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
d->hasNext();executed 15675 times by 8 tests: return d->hasNext(); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 15675 |
1122 | } | - |
1123 | | - |
1124 | | - |
1125 | | - |
1126 | | - |
1127 | | - |
1128 | | - |
1129 | | - |
1130 | QRegularExpressionMatch QRegularExpressionMatchIterator::peekNext() const | - |
1131 | { | - |
1132 | if (!hasNext()TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 450 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
|
) | 6-450 |
1133 | QMessageLogger(__FILE__, 2386, __PRETTY_FUNCTION__).warning("QRegularExpressionMatchIterator::peekNext() called on an iterator already at end");executed 6 times by 3 tests: QMessageLogger(__FILE__, 2386, __PRETTY_FUNCTION__).warning("QRegularExpressionMatchIterator::peekNext() called on an iterator already at end"); Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 6 |
1134 | | - |
1135 | returnexecuted 456 times by 3 tests: return d->next; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->next;executed 456 times by 3 tests: return d->next; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 456 |
1136 | } | - |
1137 | | - |
1138 | | - |
1139 | | - |
1140 | | - |
1141 | | - |
1142 | | - |
1143 | | - |
1144 | QRegularExpressionMatch QRegularExpressionMatchIterator::next() | - |
1145 | { | - |
1146 | if (!hasNext()TRUE | evaluated 6 times by 3 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| FALSE | evaluated 2996 times by 8 testsEvaluated by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
|
) { | 6-2996 |
1147 | QMessageLogger(__FILE__, 2400, __PRETTY_FUNCTION__).warning("QRegularExpressionMatchIterator::next() called on an iterator already at end"); | - |
1148 | returnexecuted 6 times by 3 tests: return d->next; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->next;executed 6 times by 3 tests: return d->next; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 6 |
1149 | } | - |
1150 | | - |
1151 | QRegularExpressionMatch current = d->next; | - |
1152 | d->next = d->next.d.constData()->nextMatch(); | - |
1153 | returnexecuted 2996 times by 8 tests: return current; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
current;executed 2996 times by 8 tests: return current; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QString
- tst_QStringList
- tst_QTextDocument
- tst_Selftests
- tst_qdbusxml2cpp
| 2996 |
1154 | } | - |
1155 | | - |
1156 | | - |
1157 | | - |
1158 | | - |
1159 | | - |
1160 | | - |
1161 | | - |
1162 | QRegularExpression QRegularExpressionMatchIterator::regularExpression() const | - |
1163 | { | - |
1164 | returnexecuted 600 times by 3 tests: return d->regularExpression; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->regularExpression;executed 600 times by 3 tests: return d->regularExpression; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 600 |
1165 | } | - |
1166 | QRegularExpression::MatchType QRegularExpressionMatchIterator::matchType() const | - |
1167 | { | - |
1168 | returnexecuted 597 times by 3 tests: return d->matchType; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->matchType;executed 597 times by 3 tests: return d->matchType; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 597 |
1169 | } | - |
1170 | QRegularExpression::MatchOptions QRegularExpressionMatchIterator::matchOptions() const | - |
1171 | { | - |
1172 | returnexecuted 597 times by 3 tests: return d->matchOptions; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
d->matchOptions;executed 597 times by 3 tests: return d->matchOptions; Executed by:- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
| 597 |
1173 | } | - |
1174 | QDataStream &operator<<(QDataStream &out, const QRegularExpression &re) | - |
1175 | { | - |
1176 | out << re.pattern() << quint32(re.patternOptions()); | - |
1177 | returnexecuted 49 times by 5 tests: return out; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
out;executed 49 times by 5 tests: return out; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
| 49 |
1178 | } | - |
1179 | QDataStream &operator>>(QDataStream &in, QRegularExpression &re) | - |
1180 | { | - |
1181 | QString pattern; | - |
1182 | quint32 patternOptions; | - |
1183 | in >> pattern >> patternOptions; | - |
1184 | re.setPattern(pattern); | - |
1185 | re.setPatternOptions(QRegularExpression::PatternOptions(patternOptions)); | - |
1186 | returnexecuted 52 times by 5 tests: return in; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
in;executed 52 times by 5 tests: return in; Executed by:- tst_QMetaType
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QVariant
| 52 |
1187 | } | - |
1188 | QDebug operator<<(QDebug debug, const QRegularExpression &re) | - |
1189 | { | - |
1190 | QDebugStateSaver saver(debug); | - |
1191 | debug.nospace() << "QRegularExpression(" << re.pattern() << ", " << re.patternOptions() << ')'; | - |
1192 | returnexecuted 1 time by 1 test: return debug; debug;executed 1 time by 1 test: return debug; | 1 |
1193 | } | - |
1194 | QDebug operator<<(QDebug debug, QRegularExpression::PatternOptions patternOptions) | - |
1195 | { | - |
1196 | QDebugStateSaver saver(debug); | - |
1197 | QByteArray flags; | - |
1198 | | - |
1199 | if (patternOptions == QRegularExpression::NoPatternOptionTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-1 |
1200 | flags = "NoPatternOption"; | - |
1201 | }executed 1 time by 1 test: end of block else { | 1 |
1202 | flags.reserve(200); | - |
1203 | if (patternOptions & QRegularExpression::CaseInsensitiveOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1204 | flags.append("CaseInsensitiveOption|"); never executed: flags.append("CaseInsensitiveOption|"); | 0 |
1205 | if (patternOptions & QRegularExpression::DotMatchesEverythingOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1206 | flags.append("DotMatchesEverythingOption|"); never executed: flags.append("DotMatchesEverythingOption|"); | 0 |
1207 | if (patternOptions & QRegularExpression::MultilineOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1208 | flags.append("MultilineOption|"); never executed: flags.append("MultilineOption|"); | 0 |
1209 | if (patternOptions & QRegularExpression::ExtendedPatternSyntaxOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1210 | flags.append("ExtendedPatternSyntaxOption|"); never executed: flags.append("ExtendedPatternSyntaxOption|"); | 0 |
1211 | if (patternOptions & QRegularExpression::InvertedGreedinessOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1212 | flags.append("InvertedGreedinessOption|"); never executed: flags.append("InvertedGreedinessOption|"); | 0 |
1213 | if (patternOptions & QRegularExpression::DontCaptureOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1214 | flags.append("DontCaptureOption|"); never executed: flags.append("DontCaptureOption|"); | 0 |
1215 | if (patternOptions & QRegularExpression::UseUnicodePropertiesOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1216 | flags.append("UseUnicodePropertiesOption|"); never executed: flags.append("UseUnicodePropertiesOption|"); | 0 |
1217 | if (patternOptions & QRegularExpression::OptimizeOnFirstUsageOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1218 | flags.append("OptimizeOnFirstUsageOption|"); never executed: flags.append("OptimizeOnFirstUsageOption|"); | 0 |
1219 | if (patternOptions & QRegularExpression::DontAutomaticallyOptimizeOptionTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1220 | flags.append("DontAutomaticallyOptimizeOption|"); never executed: flags.append("DontAutomaticallyOptimizeOption|"); | 0 |
1221 | flags.chop(1); | - |
1222 | } never executed: end of block | 0 |
1223 | | - |
1224 | debug.nospace() << "QRegularExpression::PatternOptions(" << flags << ')'; | - |
1225 | | - |
1226 | returnexecuted 1 time by 1 test: return debug; debug;executed 1 time by 1 test: return debug; | 1 |
1227 | } | - |
1228 | QDebug operator<<(QDebug debug, const QRegularExpressionMatch &match) | - |
1229 | { | - |
1230 | QDebugStateSaver saver(debug); | - |
1231 | debug.nospace() << "QRegularExpressionMatch("; | - |
1232 | | - |
1233 | if (!match.isValid()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1234 | debug << "Invalid)"; | - |
1235 | return never executed: return debug; debug;never executed: return debug; | 0 |
1236 | } | - |
1237 | | - |
1238 | debug << "Valid"; | - |
1239 | | - |
1240 | if (match.hasMatch()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1241 | debug << ", has match: "; | - |
1242 | for (int i = 0; i <= match.lastCapturedIndex()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
1243 | debug << i | - |
1244 | << ":(" << match.capturedStart(i) << ", " << match.capturedEnd(i) | - |
1245 | << ", " << match.captured(i) << ')'; | - |
1246 | if (i < match.lastCapturedIndex()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1247 | debug << ", "; never executed: debug << ", "; | 0 |
1248 | } never executed: end of block | 0 |
1249 | } never executed: end of block else if (match.hasPartialMatch()TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1250 | debug << ", has partial match: (" | - |
1251 | << match.capturedStart(0) << ", " | - |
1252 | << match.capturedEnd(0) << ", " | - |
1253 | << match.captured(0) << ')'; | - |
1254 | } never executed: end of block else { | 0 |
1255 | debug << ", no match"; | - |
1256 | } never executed: end of block | 0 |
1257 | | - |
1258 | debug << ')'; | - |
1259 | | - |
1260 | return never executed: return debug; debug;never executed: return debug; | 0 |
1261 | } | - |
1262 | | - |
| | |