OpenCoverage

qregexp.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qregexp.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qregexp.h"-
41-
42#include "qalgorithms.h"-
43#include "qbitarray.h"-
44#include "qcache.h"-
45#include "qdatastream.h"-
46#include "qdebug.h"-
47#include "qhashfunctions.h"-
48#include "qlist.h"-
49#include "qmap.h"-
50#include "qmutex.h"-
51#include "qstring.h"-
52#include "qstringlist.h"-
53#include "qstringmatcher.h"-
54#include "qvector.h"-
55-
56#include <limits.h>-
57#include <algorithm>-
58-
59QT_BEGIN_NAMESPACE-
60-
61int qFindString(const QChar *haystack, int haystackLen, int from,-
62 const QChar *needle, int needleLen, Qt::CaseSensitivity cs);-
63-
64// error strings for the regexp parser-
65#define RXERR_OK QT_TRANSLATE_NOOP("QRegExp", "no error occurred")-
66#define RXERR_DISABLED QT_TRANSLATE_NOOP("QRegExp", "disabled feature used")-
67#define RXERR_CHARCLASS QT_TRANSLATE_NOOP("QRegExp", "bad char class syntax")-
68#define RXERR_LOOKAHEAD QT_TRANSLATE_NOOP("QRegExp", "bad lookahead syntax")-
69#define RXERR_LOOKBEHIND QT_TRANSLATE_NOOP("QRegExp", "lookbehinds not supported, see QTBUG-2371")-
70#define RXERR_REPETITION QT_TRANSLATE_NOOP("QRegExp", "bad repetition syntax")-
71#define RXERR_OCTAL QT_TRANSLATE_NOOP("QRegExp", "invalid octal value")-
72#define RXERR_LEFTDELIM QT_TRANSLATE_NOOP("QRegExp", "missing left delim")-
73#define RXERR_END QT_TRANSLATE_NOOP("QRegExp", "unexpected end")-
74#define RXERR_LIMIT QT_TRANSLATE_NOOP("QRegExp", "met internal limit")-
75#define RXERR_INTERVAL QT_TRANSLATE_NOOP("QRegExp", "invalid interval")-
76#define RXERR_CATEGORY QT_TRANSLATE_NOOP("QRegExp", "invalid category")-
77-
78/*!-
79 \class QRegExp-
80 \inmodule QtCore-
81 \reentrant-
82 \brief The QRegExp class provides pattern matching using regular expressions.-
83-
84 \ingroup tools-
85 \ingroup shared-
86-
87 \keyword regular expression-
88-
89 A regular expression, or "regexp", is a pattern for matching-
90 substrings in a text. This is useful in many contexts, e.g.,-
91-
92 \table-
93 \row \li Validation-
94 \li A regexp can test whether a substring meets some criteria,-
95 e.g. is an integer or contains no whitespace.-
96 \row \li Searching-
97 \li A regexp provides more powerful pattern matching than-
98 simple substring matching, e.g., match one of the words-
99 \e{mail}, \e{letter} or \e{correspondence}, but none of the-
100 words \e{email}, \e{mailman}, \e{mailer}, \e{letterbox}, etc.-
101 \row \li Search and Replace-
102 \li A regexp can replace all occurrences of a substring with a-
103 different substring, e.g., replace all occurrences of \e{&}-
104 with \e{\&amp;} except where the \e{&} is already followed by-
105 an \e{amp;}.-
106 \row \li String Splitting-
107 \li A regexp can be used to identify where a string should be-
108 split apart, e.g. splitting tab-delimited strings.-
109 \endtable-
110-
111 A brief introduction to regexps is presented, a description of-
112 Qt's regexp language, some examples, and the function-
113 documentation itself. QRegExp is modeled on Perl's regexp-
114 language. It fully supports Unicode. QRegExp can also be used in a-
115 simpler, \e{wildcard mode} that is similar to the functionality-
116 found in command shells. The syntax rules used by QRegExp can be-
117 changed with setPatternSyntax(). In particular, the pattern syntax-
118 can be set to QRegExp::FixedString, which means the pattern to be-
119 matched is interpreted as a plain string, i.e., special characters-
120 (e.g., backslash) are not escaped.-
121-
122 A good text on regexps is \e {Mastering Regular Expressions}-
123 (Third Edition) by Jeffrey E. F. Friedl, ISBN 0-596-52812-4.-
124-
125 \note In Qt 5, the new QRegularExpression class provides a Perl-
126 compatible implementation of regular expressions and is recommended-
127 in place of QRegExp.-
128-
129 \tableofcontents-
130-
131 \section1 Introduction-
132-
133 Regexps are built up from expressions, quantifiers, and-
134 assertions. The simplest expression is a character, e.g. \b{x}-
135 or \b{5}. An expression can also be a set of characters-
136 enclosed in square brackets. \b{[ABCD]} will match an \b{A}-
137 or a \b{B} or a \b{C} or a \b{D}. We can write this same-
138 expression as \b{[A-D]}, and an expression to match any-
139 capital letter in the English alphabet is written as-
140 \b{[A-Z]}.-
141-
142 A quantifier specifies the number of occurrences of an expression-
143 that must be matched. \b{x{1,1}} means match one and only one-
144 \b{x}. \b{x{1,5}} means match a sequence of \b{x}-
145 characters that contains at least one \b{x} but no more than-
146 five.-
147-
148 Note that in general regexps cannot be used to check for balanced-
149 brackets or tags. For example, a regexp can be written to match an-
150 opening html \c{<b>} and its closing \c{</b>}, if the \c{<b>} tags-
151 are not nested, but if the \c{<b>} tags are nested, that same-
152 regexp will match an opening \c{<b>} tag with the wrong closing-
153 \c{</b>}. For the fragment \c{<b>bold <b>bolder</b></b>}, the-
154 first \c{<b>} would be matched with the first \c{</b>}, which is-
155 not correct. However, it is possible to write a regexp that will-
156 match nested brackets or tags correctly, but only if the number of-
157 nesting levels is fixed and known. If the number of nesting levels-
158 is not fixed and known, it is impossible to write a regexp that-
159 will not fail.-
160-
161 Suppose we want a regexp to match integers in the range 0 to 99.-
162 At least one digit is required, so we start with the expression-
163 \b{[0-9]{1,1}}, which matches a single digit exactly once. This-
164 regexp matches integers in the range 0 to 9. To match integers up-
165 to 99, increase the maximum number of occurrences to 2, so the-
166 regexp becomes \b{[0-9]{1,2}}. This regexp satisfies the-
167 original requirement to match integers from 0 to 99, but it will-
168 also match integers that occur in the middle of strings. If we-
169 want the matched integer to be the whole string, we must use the-
170 anchor assertions, \b{^} (caret) and \b{$} (dollar). When-
171 \b{^} is the first character in a regexp, it means the regexp-
172 must match from the beginning of the string. When \b{$} is the-
173 last character of the regexp, it means the regexp must match to-
174 the end of the string. The regexp becomes \b{^[0-9]{1,2}$}.-
175 Note that assertions, e.g. \b{^} and \b{$}, do not match-
176 characters but locations in the string.-
177-
178 If you have seen regexps described elsewhere, they may have looked-
179 different from the ones shown here. This is because some sets of-
180 characters and some quantifiers are so common that they have been-
181 given special symbols to represent them. \b{[0-9]} can be-
182 replaced with the symbol \b{\\d}. The quantifier to match-
183 exactly one occurrence, \b{{1,1}}, can be replaced with the-
184 expression itself, i.e. \b{x{1,1}} is the same as \b{x}. So-
185 our 0 to 99 matcher could be written as \b{^\\d{1,2}$}. It can-
186 also be written \b{^\\d\\d{0,1}$}, i.e. \e{From the start of-
187 the string, match a digit, followed immediately by 0 or 1 digits}.-
188 In practice, it would be written as \b{^\\d\\d?$}. The \b{?}-
189 is shorthand for the quantifier \b{{0,1}}, i.e. 0 or 1-
190 occurrences. \b{?} makes an expression optional. The regexp-
191 \b{^\\d\\d?$} means \e{From the beginning of the string, match-
192 one digit, followed immediately by 0 or 1 more digit, followed-
193 immediately by end of string}.-
194-
195 To write a regexp that matches one of the words 'mail' \e or-
196 'letter' \e or 'correspondence' but does not match words that-
197 contain these words, e.g., 'email', 'mailman', 'mailer', and-
198 'letterbox', start with a regexp that matches 'mail'. Expressed-
199 fully, the regexp is \b{m{1,1}a{1,1}i{1,1}l{1,1}}, but because-
200 a character expression is automatically quantified by-
201 \b{{1,1}}, we can simplify the regexp to \b{mail}, i.e., an-
202 'm' followed by an 'a' followed by an 'i' followed by an 'l'. Now-
203 we can use the vertical bar \b{|}, which means \b{or}, to-
204 include the other two words, so our regexp for matching any of the-
205 three words becomes \b{mail|letter|correspondence}. Match-
206 'mail' \b{or} 'letter' \b{or} 'correspondence'. While this-
207 regexp will match one of the three words we want to match, it will-
208 also match words we don't want to match, e.g., 'email'. To-
209 prevent the regexp from matching unwanted words, we must tell it-
210 to begin and end the match at word boundaries. First we enclose-
211 our regexp in parentheses, \b{(mail|letter|correspondence)}.-
212 Parentheses group expressions together, and they identify a part-
213 of the regexp that we wish to \l{capturing text}{capture}.-
214 Enclosing the expression in parentheses allows us to use it as a-
215 component in more complex regexps. It also allows us to examine-
216 which of the three words was actually matched. To force the match-
217 to begin and end on word boundaries, we enclose the regexp in-
218 \b{\\b} \e{word boundary} assertions:-
219 \b{\\b(mail|letter|correspondence)\\b}. Now the regexp means:-
220 \e{Match a word boundary, followed by the regexp in parentheses,-
221 followed by a word boundary}. The \b{\\b} assertion matches a-
222 \e position in the regexp, not a \e character. A word boundary is-
223 any non-word character, e.g., a space, newline, or the beginning-
224 or ending of a string.-
225-
226 If we want to replace ampersand characters with the HTML entity-
227 \b{\&amp;}, the regexp to match is simply \b{\&}. But this-
228 regexp will also match ampersands that have already been converted-
229 to HTML entities. We want to replace only ampersands that are not-
230 already followed by \b{amp;}. For this, we need the negative-
231 lookahead assertion, \b{(?!}__\b{)}. The regexp can then be-
232 written as \b{\&(?!amp;)}, i.e. \e{Match an ampersand that is}-
233 \b{not} \e{followed by} \b{amp;}.-
234-
235 If we want to count all the occurrences of 'Eric' and 'Eirik' in a-
236 string, two valid solutions are \b{\\b(Eric|Eirik)\\b} and-
237 \b{\\bEi?ri[ck]\\b}. The word boundary assertion '\\b' is-
238 required to avoid matching words that contain either name,-
239 e.g. 'Ericsson'. Note that the second regexp matches more-
240 spellings than we want: 'Eric', 'Erik', 'Eiric' and 'Eirik'.-
241-
242 Some of the examples discussed above are implemented in the-
243 \l{#code-examples}{code examples} section.-
244-
245 \target characters-and-abbreviations-for-sets-of-characters-
246 \section1 Characters and Abbreviations for Sets of Characters-
247-
248 \table-
249 \header \li Element \li Meaning-
250 \row \li \b{c}-
251 \li A character represents itself unless it has a special-
252 regexp meaning. e.g. \b{c} matches the character \e c.-
253 \row \li \b{\\c}-
254 \li A character that follows a backslash matches the character-
255 itself, except as specified below. e.g., To match a literal-
256 caret at the beginning of a string, write \b{\\^}.-
257 \row \li \b{\\a}-
258 \li Matches the ASCII bell (BEL, 0x07).-
259 \row \li \b{\\f}-
260 \li Matches the ASCII form feed (FF, 0x0C).-
261 \row \li \b{\\n}-
262 \li Matches the ASCII line feed (LF, 0x0A, Unix newline).-
263 \row \li \b{\\r}-
264 \li Matches the ASCII carriage return (CR, 0x0D).-
265 \row \li \b{\\t}-
266 \li Matches the ASCII horizontal tab (HT, 0x09).-
267 \row \li \b{\\v}-
268 \li Matches the ASCII vertical tab (VT, 0x0B).-
269 \row \li \b{\\x\e{hhhh}}-
270 \li Matches the Unicode character corresponding to the-
271 hexadecimal number \e{hhhh} (between 0x0000 and 0xFFFF).-
272 \row \li \b{\\0\e{ooo}} (i.e., \\zero \e{ooo})-
273 \li matches the ASCII/Latin1 character for the octal number-
274 \e{ooo} (between 0 and 0377).-
275 \row \li \b{. (dot)}-
276 \li Matches any character (including newline).-
277 \row \li \b{\\d}-
278 \li Matches a digit (QChar::isDigit()).-
279 \row \li \b{\\D}-
280 \li Matches a non-digit.-
281 \row \li \b{\\s}-
282 \li Matches a whitespace character (QChar::isSpace()).-
283 \row \li \b{\\S}-
284 \li Matches a non-whitespace character.-
285 \row \li \b{\\w}-
286 \li Matches a word character (QChar::isLetterOrNumber(), QChar::isMark(), or '_').-
287 \row \li \b{\\W}-
288 \li Matches a non-word character.-
289 \row \li \b{\\\e{n}}-
290 \li The \e{n}-th backreference, e.g. \\1, \\2, etc.-
291 \endtable-
292-
293 \b{Note:} The C++ compiler transforms backslashes in strings.-
294 To include a \b{\\} in a regexp, enter it twice, i.e. \c{\\}.-
295 To match the backslash character itself, enter it four times, i.e.-
296 \c{\\\\}.-
297-
298 \target sets-of-characters-
299 \section1 Sets of Characters-
300-
301 Square brackets mean match any character contained in the square-
302 brackets. The character set abbreviations described above can-
303 appear in a character set in square brackets. Except for the-
304 character set abbreviations and the following two exceptions,-
305 characters do not have special meanings in square brackets.-
306-
307 \table-
308 \row \li \b{^}-
309-
310 \li The caret negates the character set if it occurs as the-
311 first character (i.e. immediately after the opening square-
312 bracket). \b{[abc]} matches 'a' or 'b' or 'c', but-
313 \b{[^abc]} matches anything \e but 'a' or 'b' or 'c'.-
314-
315 \row \li \b{-}-
316-
317 \li The dash indicates a range of characters. \b{[W-Z]}-
318 matches 'W' or 'X' or 'Y' or 'Z'.-
319-
320 \endtable-
321-
322 Using the predefined character set abbreviations is more portable-
323 than using character ranges across platforms and languages. For-
324 example, \b{[0-9]} matches a digit in Western alphabets but-
325 \b{\\d} matches a digit in \e any alphabet.-
326-
327 Note: In other regexp documentation, sets of characters are often-
328 called "character classes".-
329-
330 \target quantifiers-
331 \section1 Quantifiers-
332-
333 By default, an expression is automatically quantified by-
334 \b{{1,1}}, i.e. it should occur exactly once. In the following-
335 list, \b{\e {E}} stands for expression. An expression is a-
336 character, or an abbreviation for a set of characters, or a set of-
337 characters in square brackets, or an expression in parentheses.-
338-
339 \table-
340 \row \li \b{\e {E}?}-
341-
342 \li Matches zero or one occurrences of \e E. This quantifier-
343 means \e{The previous expression is optional}, because it-
344 will match whether or not the expression is found. \b{\e-
345 {E}?} is the same as \b{\e {E}{0,1}}. e.g., \b{dents?}-
346 matches 'dent' or 'dents'.-
347-
348 \row \li \b{\e {E}+}-
349-
350 \li Matches one or more occurrences of \e E. \b{\e {E}+} is-
351 the same as \b{\e {E}{1,}}. e.g., \b{0+} matches '0',-
352 '00', '000', etc.-
353-
354 \row \li \b{\e {E}*}-
355-
356 \li Matches zero or more occurrences of \e E. It is the same-
357 as \b{\e {E}{0,}}. The \b{*} quantifier is often used-
358 in error where \b{+} should be used. For example, if-
359 \b{\\s*$} is used in an expression to match strings that-
360 end in whitespace, it will match every string because-
361 \b{\\s*$} means \e{Match zero or more whitespaces followed-
362 by end of string}. The correct regexp to match strings that-
363 have at least one trailing whitespace character is-
364 \b{\\s+$}.-
365-
366 \row \li \b{\e {E}{n}}-
367-
368 \li Matches exactly \e n occurrences of \e E. \b{\e {E}{n}}-
369 is the same as repeating \e E \e n times. For example,-
370 \b{x{5}} is the same as \b{xxxxx}. It is also the same-
371 as \b{\e {E}{n,n}}, e.g. \b{x{5,5}}.-
372-
373 \row \li \b{\e {E}{n,}}-
374 \li Matches at least \e n occurrences of \e E.-
375-
376 \row \li \b{\e {E}{,m}}-
377 \li Matches at most \e m occurrences of \e E. \b{\e {E}{,m}}-
378 is the same as \b{\e {E}{0,m}}.-
379-
380 \row \li \b{\e {E}{n,m}}-
381 \li Matches at least \e n and at most \e m occurrences of \e E.-
382 \endtable-
383-
384 To apply a quantifier to more than just the preceding character,-
385 use parentheses to group characters together in an expression. For-
386 example, \b{tag+} matches a 't' followed by an 'a' followed by-
387 at least one 'g', whereas \b{(tag)+} matches at least one-
388 occurrence of 'tag'.-
389-
390 Note: Quantifiers are normally "greedy". They always match as much-
391 text as they can. For example, \b{0+} matches the first zero it-
392 finds and all the consecutive zeros after the first zero. Applied-
393 to '20005', it matches '2\underline{000}5'. Quantifiers can be made-
394 non-greedy, see setMinimal().-
395-
396 \target capturing parentheses-
397 \target backreferences-
398 \section1 Capturing Text-
399-
400 Parentheses allow us to group elements together so that we can-
401 quantify and capture them. For example if we have the expression-
402 \b{mail|letter|correspondence} that matches a string we know-
403 that \e one of the words matched but not which one. Using-
404 parentheses allows us to "capture" whatever is matched within-
405 their bounds, so if we used \b{(mail|letter|correspondence)}-
406 and matched this regexp against the string "I sent you some email"-
407 we can use the cap() or capturedTexts() functions to extract the-
408 matched characters, in this case 'mail'.-
409-
410 We can use captured text within the regexp itself. To refer to the-
411 captured text we use \e backreferences which are indexed from 1,-
412 the same as for cap(). For example we could search for duplicate-
413 words in a string using \b{\\b(\\w+)\\W+\\1\\b} which means match a-
414 word boundary followed by one or more word characters followed by-
415 one or more non-word characters followed by the same text as the-
416 first parenthesized expression followed by a word boundary.-
417-
418 If we want to use parentheses purely for grouping and not for-
419 capturing we can use the non-capturing syntax, e.g.-
420 \b{(?:green|blue)}. Non-capturing parentheses begin '(?:' and-
421 end ')'. In this example we match either 'green' or 'blue' but we-
422 do not capture the match so we only know whether or not we matched-
423 but not which color we actually found. Using non-capturing-
424 parentheses is more efficient than using capturing parentheses-
425 since the regexp engine has to do less book-keeping.-
426-
427 Both capturing and non-capturing parentheses may be nested.-
428-
429 \target greedy quantifiers-
430-
431 For historical reasons, quantifiers (e.g. \b{*}) that apply to-
432 capturing parentheses are more "greedy" than other quantifiers.-
433 For example, \b{a*(a*)} will match "aaa" with cap(1) == "aaa".-
434 This behavior is different from what other regexp engines do-
435 (notably, Perl). To obtain a more intuitive capturing behavior,-
436 specify QRegExp::RegExp2 to the QRegExp constructor or call-
437 setPatternSyntax(QRegExp::RegExp2).-
438-
439 \target cap_in_a_loop-
440-
441 When the number of matches cannot be determined in advance, a-
442 common idiom is to use cap() in a loop. For example:-
443-
444 \snippet code/src_corelib_tools_qregexp.cpp 0-
445-
446 \target assertions-
447 \section1 Assertions-
448-
449 Assertions make some statement about the text at the point where-
450 they occur in the regexp but they do not match any characters. In-
451 the following list \b{\e {E}} stands for any expression.-
452-
453 \table-
454 \row \li \b{^}-
455 \li The caret signifies the beginning of the string. If you-
456 wish to match a literal \c{^} you must escape it by-
457 writing \c{\\^}. For example, \b{^#include} will only-
458 match strings which \e begin with the characters '#include'.-
459 (When the caret is the first character of a character set it-
460 has a special meaning, see \l{#sets-of-characters}{Sets of Characters}.)-
461-
462 \row \li \b{$}-
463 \li The dollar signifies the end of the string. For example-
464 \b{\\d\\s*$} will match strings which end with a digit-
465 optionally followed by whitespace. If you wish to match a-
466 literal \c{$} you must escape it by writing-
467 \c{\\$}.-
468-
469 \row \li \b{\\b}-
470 \li A word boundary. For example the regexp-
471 \b{\\bOK\\b} means match immediately after a word-
472 boundary (e.g. start of string or whitespace) the letter 'O'-
473 then the letter 'K' immediately before another word boundary-
474 (e.g. end of string or whitespace). But note that the-
475 assertion does not actually match any whitespace so if we-
476 write \b{(\\bOK\\b)} and we have a match it will only-
477 contain 'OK' even if the string is "It's \underline{OK} now".-
478-
479 \row \li \b{\\B}-
480 \li A non-word boundary. This assertion is true wherever-
481 \b{\\b} is false. For example if we searched for-
482 \b{\\Bon\\B} in "Left on" the match would fail (space-
483 and end of string aren't non-word boundaries), but it would-
484 match in "t\underline{on}ne".-
485-
486 \row \li \b{(?=\e E)}-
487 \li Positive lookahead. This assertion is true if the-
488 expression matches at this point in the regexp. For example,-
489 \b{const(?=\\s+char)} matches 'const' whenever it is-
490 followed by 'char', as in 'static \underline{const} char *'.-
491 (Compare with \b{const\\s+char}, which matches 'static-
492 \underline{const char} *'.)-
493-
494 \row \li \b{(?!\e E)}-
495 \li Negative lookahead. This assertion is true if the-
496 expression does not match at this point in the regexp. For-
497 example, \b{const(?!\\s+char)} matches 'const' \e except-
498 when it is followed by 'char'.-
499 \endtable-
500-
501 \target QRegExp wildcard matching-
502 \section1 Wildcard Matching-
503-
504 Most command shells such as \e bash or \e cmd.exe support "file-
505 globbing", the ability to identify a group of files by using-
506 wildcards. The setPatternSyntax() function is used to switch-
507 between regexp and wildcard mode. Wildcard matching is much-
508 simpler than full regexps and has only four features:-
509-
510 \table-
511 \row \li \b{c}-
512 \li Any character represents itself apart from those mentioned-
513 below. Thus \b{c} matches the character \e c.-
514 \row \li \b{?}-
515 \li Matches any single character. It is the same as-
516 \b{.} in full regexps.-
517 \row \li \b{*}-
518 \li Matches zero or more of any characters. It is the-
519 same as \b{.*} in full regexps.-
520 \row \li \b{[...]}-
521 \li Sets of characters can be represented in square brackets,-
522 similar to full regexps. Within the character class, like-
523 outside, backslash has no special meaning.-
524 \endtable-
525-
526 In the mode Wildcard, the wildcard characters cannot be-
527 escaped. In the mode WildcardUnix, the character '\\' escapes the-
528 wildcard.-
529-
530 For example if we are in wildcard mode and have strings which-
531 contain filenames we could identify HTML files with \b{*.html}.-
532 This will match zero or more characters followed by a dot followed-
533 by 'h', 't', 'm' and 'l'.-
534-
535 To test a string against a wildcard expression, use exactMatch().-
536 For example:-
537-
538 \snippet code/src_corelib_tools_qregexp.cpp 1-
539-
540 \target perl-users-
541 \section1 Notes for Perl Users-
542-
543 Most of the character class abbreviations supported by Perl are-
544 supported by QRegExp, see \l{#characters-and-abbreviations-for-sets-of-characters}-
545 {characters and abbreviations for sets of characters}.-
546-
547 In QRegExp, apart from within character classes, \c{^} always-
548 signifies the start of the string, so carets must always be-
549 escaped unless used for that purpose. In Perl the meaning of caret-
550 varies automagically depending on where it occurs so escaping it-
551 is rarely necessary. The same applies to \c{$} which in-
552 QRegExp always signifies the end of the string.-
553-
554 QRegExp's quantifiers are the same as Perl's greedy quantifiers-
555 (but see the \l{greedy quantifiers}{note above}). Non-greedy-
556 matching cannot be applied to individual quantifiers, but can be-
557 applied to all the quantifiers in the pattern. For example, to-
558 match the Perl regexp \b{ro+?m} requires:-
559-
560 \snippet code/src_corelib_tools_qregexp.cpp 2-
561-
562 The equivalent of Perl's \c{/i} option is-
563 setCaseSensitivity(Qt::CaseInsensitive).-
564-
565 Perl's \c{/g} option can be emulated using a \l{#cap_in_a_loop}{loop}.-
566-
567 In QRegExp \b{.} matches any character, therefore all QRegExp-
568 regexps have the equivalent of Perl's \c{/s} option. QRegExp-
569 does not have an equivalent to Perl's \c{/m} option, but this-
570 can be emulated in various ways for example by splitting the input-
571 into lines or by looping with a regexp that searches for newlines.-
572-
573 Because QRegExp is string oriented, there are no \\A, \\Z, or \\z-
574 assertions. The \\G assertion is not supported but can be emulated-
575 in a loop.-
576-
577 Perl's $& is cap(0) or capturedTexts()[0]. There are no QRegExp-
578 equivalents for $`, $' or $+. Perl's capturing variables, $1, $2,-
579 ... correspond to cap(1) or capturedTexts()[1], cap(2) or-
580 capturedTexts()[2], etc.-
581-
582 To substitute a pattern use QString::replace().-
583-
584 Perl's extended \c{/x} syntax is not supported, nor are-
585 directives, e.g. (?i), or regexp comments, e.g. (?#comment). On-
586 the other hand, C++'s rules for literal strings can be used to-
587 achieve the same:-
588-
589 \snippet code/src_corelib_tools_qregexp.cpp 3-
590-
591 Both zero-width positive and zero-width negative lookahead-
592 assertions (?=pattern) and (?!pattern) are supported with the same-
593 syntax as Perl. Perl's lookbehind assertions, "independent"-
594 subexpressions and conditional expressions are not supported.-
595-
596 Non-capturing parentheses are also supported, with the same-
597 (?:pattern) syntax.-
598-
599 See QString::split() and QStringList::join() for equivalents-
600 to Perl's split and join functions.-
601-
602 Note: because C++ transforms \\'s they must be written \e twice in-
603 code, e.g. \b{\\b} must be written \b{\\\\b}.-
604-
605 \target code-examples-
606 \section1 Code Examples-
607-
608 \snippet code/src_corelib_tools_qregexp.cpp 4-
609-
610 The third string matches '\underline{6}'. This is a simple validation-
611 regexp for integers in the range 0 to 99.-
612-
613 \snippet code/src_corelib_tools_qregexp.cpp 5-
614-
615 The second string matches '\underline{This_is-OK}'. We've used the-
616 character set abbreviation '\\S' (non-whitespace) and the anchors-
617 to match strings which contain no whitespace.-
618-
619 In the following example we match strings containing 'mail' or-
620 'letter' or 'correspondence' but only match whole words i.e. not-
621 'email'-
622-
623 \snippet code/src_corelib_tools_qregexp.cpp 6-
624-
625 The second string matches "Please write the \underline{letter}". The-
626 word 'letter' is also captured (because of the parentheses). We-
627 can see what text we've captured like this:-
628-
629 \snippet code/src_corelib_tools_qregexp.cpp 7-
630-
631 This will capture the text from the first set of capturing-
632 parentheses (counting capturing left parentheses from left to-
633 right). The parentheses are counted from 1 since cap(0) is the-
634 whole matched regexp (equivalent to '&' in most regexp engines).-
635-
636 \snippet code/src_corelib_tools_qregexp.cpp 8-
637-
638 Here we've passed the QRegExp to QString's replace() function to-
639 replace the matched text with new text.-
640-
641 \snippet code/src_corelib_tools_qregexp.cpp 9-
642-
643 We've used the indexIn() function to repeatedly match the regexp in-
644 the string. Note that instead of moving forward by one character-
645 at a time \c pos++ we could have written \c {pos +=-
646 rx.matchedLength()} to skip over the already matched string. The-
647 count will equal 3, matching 'One \underline{Eric} another-
648 \underline{Eirik}, and an Ericsson. How many Eiriks, \underline{Eric}?'; it-
649 doesn't match 'Ericsson' or 'Eiriks' because they are not bounded-
650 by non-word boundaries.-
651-
652 One common use of regexps is to split lines of delimited data into-
653 their component fields.-
654-
655 \snippet code/src_corelib_tools_qregexp.cpp 10-
656-
657 In this example our input lines have the format company name, web-
658 address and country. Unfortunately the regexp is rather long and-
659 not very versatile -- the code will break if we add any more-
660 fields. A simpler and better solution is to look for the-
661 separator, '\\t' in this case, and take the surrounding text. The-
662 QString::split() function can take a separator string or regexp-
663 as an argument and split a string accordingly.-
664-
665 \snippet code/src_corelib_tools_qregexp.cpp 11-
666-
667 Here field[0] is the company, field[1] the web address and so on.-
668-
669 To imitate the matching of a shell we can use wildcard mode.-
670-
671 \snippet code/src_corelib_tools_qregexp.cpp 12-
672-
673 Wildcard matching can be convenient because of its simplicity, but-
674 any wildcard regexp can be defined using full regexps, e.g.-
675 \b{.*\\.html$}. Notice that we can't match both \c .html and \c-
676 .htm files with a wildcard unless we use \b{*.htm*} which will-
677 also match 'test.html.bak'. A full regexp gives us the precision-
678 we need, \b{.*\\.html?$}.-
679-
680 QRegExp can match case insensitively using setCaseSensitivity(),-
681 and can use non-greedy matching, see setMinimal(). By-
682 default QRegExp uses full regexps but this can be changed with-
683 setPatternSyntax(). Searching can be done forward with indexIn() or backward-
684 with lastIndexIn(). Captured text can be accessed using-
685 capturedTexts() which returns a string list of all captured-
686 strings, or using cap() which returns the captured string for the-
687 given index. The pos() function takes a match index and returns-
688 the position in the string where the match was made (or -1 if-
689 there was no match).-
690-
691 \sa QString, QStringList, QRegExpValidator, QSortFilterProxyModel,-
692 {tools/regexp}{Regular Expression Example}-
693*/-
694-
695#if defined(Q_OS_VXWORKS) && defined(EOS)-
696# undef EOS-
697#endif-
698-
699const int NumBadChars = 64;-
700#define BadChar(ch) ((ch).unicode() % NumBadChars)-
701-
702const int NoOccurrence = INT_MAX;-
703const int EmptyCapture = INT_MAX;-
704const int InftyLen = INT_MAX;-
705const int InftyRep = 1025;-
706const int EOS = -1;-
707-
708static bool isWord(QChar ch)-
709{-
710 return ch.isLetterOrNumber() || ch.isMark() || ch == QLatin1Char('_');
executed 287 times by 2 tests: return ch.isLetterOrNumber() || ch.isMark() || ch == QLatin1Char('_');
Executed by:
  • tst_QString
  • tst_qmakelib
287
711}-
712-
713/*-
714 Merges two vectors of ints and puts the result into the first-
715 one.-
716*/-
717static void mergeInto(QVector<int> *a, const QVector<int> &b)-
718{-
719 int asize = a->size();-
720 int bsize = b.size();-
721 if (asize == 0) {
asize == 0Description
TRUEevaluated 32753 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 11023 times by 107 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
11023-32753
722 *a = b;-
723#ifndef QT_NO_REGEXP_OPTIM-
724 } else if (bsize == 1 && a->at(asize - 1) < b.at(0)) {
executed 32753 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
bsize == 1Description
TRUEevaluated 8124 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 2899 times by 40 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • ...
a->at(asize - 1) < b.at(0)Description
TRUEevaluated 6250 times by 97 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 1874 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
1874-32753
725 a->resize(asize + 1);-
726 (*a)[asize] = b.at(0);-
727#endif-
728 } else if (bsize >= 1) {
executed 6250 times by 97 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
bsize >= 1Description
TRUEevaluated 3798 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
FALSEevaluated 975 times by 40 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • ...
975-6250
729 int csize = asize + bsize;-
730 QVector<int> c(csize);-
731 int i = 0, j = 0, k = 0;-
732 while (i < asize) {
i < asizeDescription
TRUEevaluated 8457 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
FALSEevaluated 1500 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTextDocument
  • tst_QTime
1500-8457
733 if (j < bsize) {
j < bsizeDescription
TRUEevaluated 6159 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
FALSEevaluated 2298 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
2298-6159
734 if (a->at(i) == b.at(j)) {
a->at(i) == b.at(j)Description
TRUEevaluated 172 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 5987 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
172-5987
735 ++i;-
736 --csize;-
737 } else if (a->at(i) < b.at(j)) {
executed 172 times by 1 test: end of block
Executed by:
  • tst_QRegExp
a->at(i) < b.at(j)Description
TRUEevaluated 3005 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTextDocument
  • tst_QTime
FALSEevaluated 2982 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
172-3005
738 c[k++] = a->at(i++);-
739 } else {
executed 3005 times by 11 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTextDocument
  • tst_QTime
3005
740 c[k++] = b.at(j++);-
741 }
executed 2982 times by 69 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
2982
742 } else {-
743 memcpy(c.data() + k, a->constData() + i, (asize - i) * sizeof(int));-
744 break;
executed 2298 times by 69 tests: break;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
2298
745 }-
746 }-
747 c.resize(csize);-
748 if (j < bsize)
j < bsizeDescription
TRUEevaluated 1500 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTextDocument
  • tst_QTime
FALSEevaluated 2298 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
1500-2298
749 memcpy(c.data() + k, b.constData() + j, (bsize - j) * sizeof(int));
executed 1500 times by 11 tests: memcpy(c.data() + k, b.constData() + j, (bsize - j) * sizeof(int));
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTextDocument
  • tst_QTime
1500
750 *a = c;-
751 }
executed 3798 times by 69 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
3798
752}
executed 43776 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
43776
753-
754#ifndef QT_NO_REGEXP_WILDCARD-
755/*-
756 Translates a wildcard pattern to an equivalent regular expression-
757 pattern (e.g., *.cpp to .*\.cpp).-
758-
759 If enableEscaping is true, it is possible to escape the wildcard-
760 characters with \-
761*/-
762static QString wc2rx(const QString &wc_str, const bool enableEscaping)-
763{-
764 const int wclen = wc_str.length();-
765 QString rx;-
766 int i = 0;-
767 bool isEscaping = false; // the previous character is '\'-
768 const QChar *wc = wc_str.unicode();-
769-
770 while (i < wclen) {
i < wclenDescription
TRUEevaluated 1641 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 290 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
290-1641
771 const QChar c = wc[i++];-
772 switch (c.unicode()) {-
773 case '\\':
executed 12 times by 1 test: case '\\':
Executed by:
  • tst_QRegExp
12
774 if (enableEscaping) {
enableEscapingDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-12
775 if (isEscaping) {
isEscapingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QRegExp
2-10
776 rx += QLatin1String("\\\\");-
777 } // we insert the \\ later if necessary
executed 2 times by 1 test: end of block
Executed by:
  • tst_QRegExp
2
778 if (i == wclen) { // the end
i == wclenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QRegExp
1-11
779 rx += QLatin1String("\\\\");-
780 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QRegExp
1
781 } else {
executed 12 times by 1 test: end of block
Executed by:
  • tst_QRegExp
12
782 rx += QLatin1String("\\\\");-
783 }
never executed: end of block
0
784 isEscaping = true;-
785 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QRegExp
12
786 case '*':
executed 194 times by 71 tests: case '*':
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
194
787 if (isEscaping) {
isEscapingDescription
TRUEnever evaluated
FALSEevaluated 194 times by 71 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
0-194
788 rx += QLatin1String("\\*");-
789 isEscaping = false;-
790 } else {
never executed: end of block
0
791 rx += QLatin1String(".*");-
792 }
executed 194 times by 71 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
194
793 break;
executed 194 times by 71 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
194
794 case '?':
executed 8 times by 1 test: case '?':
Executed by:
  • tst_QRegExp
8
795 if (isEscaping) {
isEscapingDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QRegExp
1-7
796 rx += QLatin1String("\\?");-
797 isEscaping = false;-
798 } else {
executed 1 time by 1 test: end of block
Executed by:
  • tst_QRegExp
1
799 rx += QLatin1Char('.');-
800 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QRegExp
7
801-
802 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QRegExp
8
803 case '$':
never executed: case '$':
0
804 case '(':
executed 1 time by 1 test: case '(':
Executed by:
  • tst_QRegExp
1
805 case ')':
executed 1 time by 1 test: case ')':
Executed by:
  • tst_QRegExp
1
806 case '+':
never executed: case '+':
0
807 case '.':
executed 120 times by 47 tests: case '.':
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
120
808 case '^':
never executed: case '^':
0
809 case '{':
never executed: case '{':
0
810 case '|':
never executed: case '|':
0
811 case '}':
never executed: case '}':
0
812 if (isEscaping) {
isEscapingDescription
TRUEnever evaluated
FALSEevaluated 122 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
0-122
813 isEscaping = false;-
814 rx += QLatin1String("\\\\");-
815 }
never executed: end of block
0
816 rx += QLatin1Char('\\');-
817 rx += c;-
818 break;
executed 122 times by 47 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
122
819 case '[':
executed 249 times by 38 tests: case '[':
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
249
820 if (isEscaping) {
isEscapingDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 246 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
3-246
821 isEscaping = false;-
822 rx += QLatin1String("\\[");-
823 } else {
executed 3 times by 1 test: end of block
Executed by:
  • tst_QRegExp
3
824 rx += c;-
825 if (wc[i] == QLatin1Char('^'))
wc[i] == QLatin1Char('^')Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 244 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
2-244
826 rx += wc[i++];
executed 2 times by 1 test: rx += wc[i++];
Executed by:
  • tst_QRegExp
2
827 if (i < wclen) {
i < wclenDescription
TRUEevaluated 242 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRegExp
4-242
828 if (rx[i] == QLatin1Char(']'))
rx[i] == QLatin1Char(']')Description
TRUEnever evaluated
FALSEevaluated 242 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
0-242
829 rx += wc[i++];
never executed: rx += wc[i++];
0
830 while (i < wclen && wc[i] != QLatin1Char(']')) {
i < wclenDescription
TRUEevaluated 1335 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRegExp
wc[i] != QLatin1Char(']')Description
TRUEevaluated 1097 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
FALSEevaluated 238 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
4-1335
831 if (wc[i] == QLatin1Char('\\'))
wc[i] == QLatin1Char('\\')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1096 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
1-1096
832 rx += QLatin1Char('\\');
executed 1 time by 1 test: rx += QLatin1Char('\\');
Executed by:
  • tst_QRegExp
1
833 rx += wc[i++];-
834 }
executed 1097 times by 38 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
1097
835 }
executed 242 times by 38 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
242
836 }
executed 246 times by 38 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
246
837 break;
executed 249 times by 38 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
249
838-
839 case ']':
executed 246 times by 38 tests: case ']':
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
246
840 if(isEscaping){
isEscapingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 244 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
2-244
841 isEscaping = false;-
842 rx += QLatin1String("\\");-
843 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QRegExp
2
844 rx += c;-
845 break;
executed 246 times by 38 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
246
846-
847 default:
executed 810 times by 38 tests: default:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPlugin
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
810
848 if(isEscaping){
isEscapingDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 807 times by 38 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPlugin
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
3-807
849 isEscaping = false;-
850 rx += QLatin1String("\\\\");-
851 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QRegExp
3
852 rx += c;-
853 }
executed 810 times by 38 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPlugin
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • ...
810
854 }-
855 return rx;
executed 290 times by 78 tests: return rx;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
290
856}-
857#endif-
858-
859static int caretIndex(int offset, QRegExp::CaretMode caretMode)-
860{-
861 if (caretMode == QRegExp::CaretAtZero) {
caretMode == Q...p::CaretAtZeroDescription
TRUEevaluated 423766 times by 49 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • ...
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
25-423766
862 return 0;
executed 423766 times by 49 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • ...
423766
863 } else if (caretMode == QRegExp::CaretAtOffset) {
caretMode == Q...:CaretAtOffsetDescription
TRUEnever evaluated
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
0-25
864 return offset;
never executed: return offset;
0
865 } else { // QRegExp::CaretWontMatch-
866 return -1;
executed 25 times by 3 tests: return -1;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
25
867 }-
868}-
869-
870/*-
871 The QRegExpEngineKey struct uniquely identifies an engine.-
872*/-
873struct QRegExpEngineKey-
874{-
875 QString pattern;-
876 QRegExp::PatternSyntax patternSyntax;-
877 Qt::CaseSensitivity cs;-
878-
879 inline QRegExpEngineKey(const QString &pattern, QRegExp::PatternSyntax patternSyntax,-
880 Qt::CaseSensitivity cs)-
881 : pattern(pattern), patternSyntax(patternSyntax), cs(cs) {}
executed 624287 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
624287
882-
883 inline void clear() {-
884 pattern.clear();-
885 patternSyntax = QRegExp::RegExp;-
886 cs = Qt::CaseSensitive;-
887 }
never executed: end of block
0
888};-
889-
890static bool operator==(const QRegExpEngineKey &key1, const QRegExpEngineKey &key2)-
891{-
892 return key1.pattern == key2.pattern && key1.patternSyntax == key2.patternSyntax
executed 315960 times by 135 tests: return key1.pattern == key2.pattern && key1.patternSyntax == key2.patternSyntax && key1.cs == key2.cs;
Executed by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
315960
893 && key1.cs == key2.cs;
executed 315960 times by 135 tests: return key1.pattern == key2.pattern && key1.patternSyntax == key2.patternSyntax && key1.cs == key2.cs;
Executed by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
315960
894}-
895-
896static uint qHash(const QRegExpEngineKey &key, uint seed = 0) Q_DECL_NOTHROW-
897{-
898 QtPrivate::QHashCombine hash;-
899 seed = hash(seed, key.pattern);-
900 seed = hash(seed, key.patternSyntax);-
901 seed = hash(seed, key.cs);-
902 return seed;
executed 630297 times by 167 tests: return seed;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
630297
903}-
904-
905class QRegExpEngine;-
906-
907//Q_DECLARE_TYPEINFO(QVector<int>, Q_MOVABLE_TYPE);-
908-
909/*-
910 This is the engine state during matching.-
911*/-
912struct QRegExpMatchState-
913{-
914 const QChar *in; // a pointer to the input string data-
915 int pos; // the current position in the string-
916 int caretPos;-
917 int len; // the length of the input string-
918 bool minimal; // minimal matching?-
919 int *bigArray; // big array holding the data for the next pointers-
920 int *inNextStack; // is state is nextStack?-
921 int *curStack; // stack of current states-
922 int *nextStack; // stack of next states-
923 int *curCapBegin; // start of current states' captures-
924 int *nextCapBegin; // start of next states' captures-
925 int *curCapEnd; // end of current states' captures-
926 int *nextCapEnd; // end of next states' captures-
927 int *tempCapBegin; // start of temporary captures-
928 int *tempCapEnd; // end of temporary captures-
929 int *capBegin; // start of captures for a next state-
930 int *capEnd; // end of captures for a next state-
931 int *slideTab; // bump-along slide table for bad-character heuristic-
932 int *captured; // what match() returned last-
933 int slideTabSize; // size of slide table-
934 int capturedSize;-
935#ifndef QT_NO_REGEXP_BACKREF-
936 QList<QVector<int> > sleeping; // list of back-reference sleepers-
937#endif-
938 int matchLen; // length of match-
939 int oneTestMatchedLen; // length of partial match-
940-
941 const QRegExpEngine *eng;-
942-
943 inline QRegExpMatchState() : bigArray(0), captured(0) {}
executed 1424895 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
1424895
944 inline ~QRegExpMatchState() { free(bigArray); }
executed 1424892 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
1424892
945-
946 void drain() { free(bigArray); bigArray = 0; captured = 0; } // to save memory
executed 624921 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
624921
947 void prepareForMatch(QRegExpEngine *eng);-
948 void match(const QChar *str, int len, int pos, bool minimal,-
949 bool oneTest, int caretIndex);-
950 bool matchHere();-
951 bool testAnchor(int i, int a, const int *capBegin);-
952};-
953-
954/*-
955 The struct QRegExpAutomatonState represents one state in a modified NFA. The-
956 input characters matched are stored in the state instead of on-
957 the transitions, something possible for an automaton-
958 constructed from a regular expression.-
959*/-
960struct QRegExpAutomatonState-
961{-
962#ifndef QT_NO_REGEXP_CAPTURE-
963 int atom; // which atom does this state belong to?-
964#endif-
965 int match; // what does it match? (see CharClassBit and BackRefBit)-
966 QVector<int> outs; // out-transitions-
967 QMap<int, int> reenter; // atoms reentered when transiting out-
968 QMap<int, int> anchors; // anchors met when transiting out-
969-
970 inline QRegExpAutomatonState() { }-
971#ifndef QT_NO_REGEXP_CAPTURE-
972 inline QRegExpAutomatonState(int a, int m)-
973 : atom(a), match(m) { }
executed 29320 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
29320
974#else-
975 inline QRegExpAutomatonState(int m)-
976 : match(m) { }-
977#endif-
978};-
979-
980Q_DECLARE_TYPEINFO(QRegExpAutomatonState, Q_MOVABLE_TYPE);-
981-
982/*-
983 The struct QRegExpCharClassRange represents a range of characters (e.g.,-
984 [0-9] denotes range 48 to 57).-
985*/-
986struct QRegExpCharClassRange-
987{-
988 ushort from; // 48-
989 ushort len; // 10-
990};-
991-
992Q_DECLARE_TYPEINFO(QRegExpCharClassRange, Q_PRIMITIVE_TYPE);-
993-
994#ifndef QT_NO_REGEXP_CAPTURE-
995/*-
996 The struct QRegExpAtom represents one node in the hierarchy of regular-
997 expression atoms.-
998*/-
999struct QRegExpAtom-
1000{-
1001 enum { NoCapture = -1, OfficialCapture = -2, UnofficialCapture = -3 };-
1002-
1003 int parent; // index of parent in array of atoms-
1004 int capture; // index of capture, from 1 to ncap - 1-
1005};-
1006-
1007Q_DECLARE_TYPEINFO(QRegExpAtom, Q_PRIMITIVE_TYPE);-
1008#endif-
1009-
1010struct QRegExpLookahead;-
1011-
1012#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1013/*-
1014 The struct QRegExpAnchorAlternation represents a pair of anchors with-
1015 OR semantics.-
1016*/-
1017struct QRegExpAnchorAlternation-
1018{-
1019 int a; // this anchor...-
1020 int b; // ...or this one-
1021};-
1022-
1023Q_DECLARE_TYPEINFO(QRegExpAnchorAlternation, Q_PRIMITIVE_TYPE);-
1024#endif-
1025-
1026#ifndef QT_NO_REGEXP_CCLASS-
1027-
1028#define FLAG(x) (1 << (x))-
1029/*-
1030 The class QRegExpCharClass represents a set of characters, such as can-
1031 be found in regular expressions (e.g., [a-z] denotes the set-
1032 {a, b, ..., z}).-
1033*/-
1034class QRegExpCharClass-
1035{-
1036public:-
1037 QRegExpCharClass();-
1038-
1039 void clear();-
1040 bool negative() const { return n; }
executed 1533679 times by 31 tests: return n;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • ...
1533679
1041 void setNegative(bool negative);-
1042 void addCategories(uint cats);-
1043 void addRange(ushort from, ushort to);-
1044 void addSingleton(ushort ch) { addRange(ch, ch); }
executed 6188 times by 47 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • ...
6188
1045-
1046 bool in(QChar ch) const;-
1047#ifndef QT_NO_REGEXP_OPTIM-
1048 const QVector<int> &firstOccurrence() const { return occ1; }
executed 6409 times by 116 tests: return occ1;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6409
1049#endif-
1050-
1051#if defined(QT_DEBUG)-
1052 void dump() const;-
1053#endif-
1054-
1055private:-
1056 QVector<QRegExpCharClassRange> r; // character ranges-
1057#ifndef QT_NO_REGEXP_OPTIM-
1058 QVector<int> occ1; // first-occurrence array-
1059#endif-
1060 uint c; // character classes-
1061 bool n; // negative?-
1062};-
1063#else-
1064struct QRegExpCharClass-
1065{-
1066 int dummy;-
1067-
1068#ifndef QT_NO_REGEXP_OPTIM-
1069 QRegExpCharClass() { occ1.fill(0, NumBadChars); }-
1070-
1071 const QVector<int> &firstOccurrence() const { return occ1; }-
1072 QVector<int> occ1;-
1073#endif-
1074};-
1075#endif-
1076-
1077Q_DECLARE_TYPEINFO(QRegExpCharClass, Q_MOVABLE_TYPE);-
1078-
1079/*-
1080 The QRegExpEngine class encapsulates a modified nondeterministic-
1081 finite automaton (NFA).-
1082*/-
1083class QRegExpEngine-
1084{-
1085public:-
1086 QRegExpEngine(Qt::CaseSensitivity cs, bool greedyQuantifiers)-
1087 : cs(cs), greedyQuantifiers(greedyQuantifiers) { setup(); }
executed 126 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
1088-
1089 QRegExpEngine(const QRegExpEngineKey &key);-
1090 ~QRegExpEngine();-
1091-
1092 bool isValid() const { return valid; }
executed 2263 times by 7 tests: return valid;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_languageChange
  • tst_qstandardpaths
  • tst_uic
2263
1093 const QString &errorString() const { return yyError; }
never executed: return yyError;
0
1094 int captureCount() const { return officialncap; }
executed 2510822 times by 162 tests: return officialncap;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
2510822
1095-
1096 int createState(QChar ch);-
1097 int createState(const QRegExpCharClass &cc);-
1098#ifndef QT_NO_REGEXP_BACKREF-
1099 int createState(int bref);-
1100#endif-
1101-
1102 void addCatTransitions(const QVector<int> &from, const QVector<int> &to);-
1103#ifndef QT_NO_REGEXP_CAPTURE-
1104 void addPlusTransitions(const QVector<int> &from, const QVector<int> &to, int atom);-
1105#endif-
1106-
1107#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1108 int anchorAlternation(int a, int b);-
1109 int anchorConcatenation(int a, int b);-
1110#else-
1111 int anchorAlternation(int a, int b) { return a & b; }-
1112 int anchorConcatenation(int a, int b) { return a | b; }-
1113#endif-
1114 void addAnchors(int from, int to, int a);-
1115-
1116#ifndef QT_NO_REGEXP_OPTIM-
1117 void heuristicallyChooseHeuristic();-
1118#endif-
1119-
1120#if defined(QT_DEBUG)-
1121 void dump() const;-
1122#endif-
1123-
1124 QAtomicInt ref;-
1125-
1126private:-
1127 enum { CharClassBit = 0x10000, BackRefBit = 0x20000 };-
1128 enum { InitialState = 0, FinalState = 1 };-
1129-
1130 void setup();-
1131 int setupState(int match);-
1132-
1133 /*-
1134 Let's hope that 13 lookaheads and 14 back-references are-
1135 enough.-
1136 */-
1137 enum { MaxLookaheads = 13, MaxBackRefs = 14 };-
1138 enum { Anchor_Dollar = 0x00000001, Anchor_Caret = 0x00000002, Anchor_Word = 0x00000004,-
1139 Anchor_NonWord = 0x00000008, Anchor_FirstLookahead = 0x00000010,-
1140 Anchor_BackRef1Empty = Anchor_FirstLookahead << MaxLookaheads,-
1141 Anchor_BackRef0Empty = Anchor_BackRef1Empty >> 1,-
1142 Anchor_Alternation = unsigned(Anchor_BackRef1Empty) << MaxBackRefs,-
1143-
1144 Anchor_LookaheadMask = (Anchor_FirstLookahead - 1) ^-
1145 ((Anchor_FirstLookahead << MaxLookaheads) - 1) };-
1146#ifndef QT_NO_REGEXP_CAPTURE-
1147 int startAtom(bool officialCapture);-
1148 void finishAtom(int atom, bool needCapture);-
1149#endif-
1150-
1151#ifndef QT_NO_REGEXP_LOOKAHEAD-
1152 int addLookahead(QRegExpEngine *eng, bool negative);-
1153#endif-
1154-
1155#ifndef QT_NO_REGEXP_OPTIM-
1156 bool goodStringMatch(QRegExpMatchState &matchState) const;-
1157 bool badCharMatch(QRegExpMatchState &matchState) const;-
1158#else-
1159 bool bruteMatch(QRegExpMatchState &matchState) const;-
1160#endif-
1161-
1162 QVector<QRegExpAutomatonState> s; // array of states-
1163#ifndef QT_NO_REGEXP_CAPTURE-
1164 QVector<QRegExpAtom> f; // atom hierarchy-
1165 int nf; // number of atoms-
1166 int cf; // current atom-
1167 QVector<int> captureForOfficialCapture;-
1168#endif-
1169 int officialncap; // number of captures, seen from the outside-
1170 int ncap; // number of captures, seen from the inside-
1171#ifndef QT_NO_REGEXP_CCLASS-
1172 QVector<QRegExpCharClass> cl; // array of character classes-
1173#endif-
1174#ifndef QT_NO_REGEXP_LOOKAHEAD-
1175 QVector<QRegExpLookahead *> ahead; // array of lookaheads-
1176#endif-
1177#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1178 QVector<QRegExpAnchorAlternation> aa; // array of (a, b) pairs of anchors-
1179#endif-
1180#ifndef QT_NO_REGEXP_OPTIM-
1181 bool caretAnchored; // does the regexp start with ^?-
1182 bool trivial; // is the good-string all that needs to match?-
1183#endif-
1184 bool valid; // is the regular expression valid?-
1185 Qt::CaseSensitivity cs; // case sensitive?-
1186 bool greedyQuantifiers; // RegExp2?-
1187 bool xmlSchemaExtensions;-
1188#ifndef QT_NO_REGEXP_BACKREF-
1189 int nbrefs; // number of back-references-
1190#endif-
1191-
1192#ifndef QT_NO_REGEXP_OPTIM-
1193 bool useGoodStringHeuristic; // use goodStringMatch? otherwise badCharMatch-
1194-
1195 int goodEarlyStart; // the index where goodStr can first occur in a match-
1196 int goodLateStart; // the index where goodStr can last occur in a match-
1197 QString goodStr; // the string that any match has to contain-
1198-
1199 int minl; // the minimum length of a match-
1200 QVector<int> occ1; // first-occurrence array-
1201#endif-
1202-
1203 /*-
1204 The class Box is an abstraction for a regular expression-
1205 fragment. It can also be seen as one node in the syntax tree of-
1206 a regular expression with synthetized attributes.-
1207-
1208 Its interface is ugly for performance reasons.-
1209 */-
1210 class Box-
1211 {-
1212 public:-
1213 Box(QRegExpEngine *engine);-
1214 Box(const Box &b) { operator=(b); }
never executed: end of block
0
1215-
1216 Box &operator=(const Box &b);-
1217-
1218 void clear() { operator=(Box(eng)); }
executed 22 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QRegExp
22
1219 void set(QChar ch);-
1220 void set(const QRegExpCharClass &cc);-
1221#ifndef QT_NO_REGEXP_BACKREF-
1222 void set(int bref);-
1223#endif-
1224-
1225 void cat(const Box &b);-
1226 void orx(const Box &b);-
1227 void plus(int atom);-
1228 void opt();-
1229 void catAnchor(int a);-
1230#ifndef QT_NO_REGEXP_OPTIM-
1231 void setupHeuristics();-
1232#endif-
1233-
1234#if defined(QT_DEBUG)-
1235 void dump() const;-
1236#endif-
1237-
1238 private:-
1239 void addAnchorsToEngine(const Box &to) const;-
1240-
1241 QRegExpEngine *eng; // the automaton under construction-
1242 QVector<int> ls; // the left states (firstpos)-
1243 QVector<int> rs; // the right states (lastpos)-
1244 QMap<int, int> lanchors; // the left anchors-
1245 QMap<int, int> ranchors; // the right anchors-
1246 int skipanchors; // the anchors to match if the box is skipped-
1247-
1248#ifndef QT_NO_REGEXP_OPTIM-
1249 int earlyStart; // the index where str can first occur-
1250 int lateStart; // the index where str can last occur-
1251 QString str; // a string that has to occur in any match-
1252 QString leftStr; // a string occurring at the left of this box-
1253 QString rightStr; // a string occurring at the right of this box-
1254 int maxl; // the maximum length of this box (possibly InftyLen)-
1255#endif-
1256-
1257 int minl; // the minimum length of this box-
1258#ifndef QT_NO_REGEXP_OPTIM-
1259 QVector<int> occ1; // first-occurrence array-
1260#endif-
1261 };-
1262-
1263 friend class Box;-
1264-
1265 /*-
1266 This is the lexical analyzer for regular expressions.-
1267 */-
1268 enum { Tok_Eos, Tok_Dollar, Tok_LeftParen, Tok_MagicLeftParen, Tok_PosLookahead,-
1269 Tok_NegLookahead, Tok_RightParen, Tok_CharClass, Tok_Caret, Tok_Quantifier, Tok_Bar,-
1270 Tok_Word, Tok_NonWord, Tok_Char = 0x10000, Tok_BackRef = 0x20000 };-
1271 int getChar();-
1272 int getEscape();-
1273#ifndef QT_NO_REGEXP_INTERVAL-
1274 int getRep(int def);-
1275#endif-
1276#ifndef QT_NO_REGEXP_LOOKAHEAD-
1277 void skipChars(int n);-
1278#endif-
1279 void error(const char *msg);-
1280 void startTokenizer(const QChar *rx, int len);-
1281 int getToken();-
1282-
1283 const QChar *yyIn; // a pointer to the input regular expression pattern-
1284 int yyPos0; // the position of yyTok in the input pattern-
1285 int yyPos; // the position of the next character to read-
1286 int yyLen; // the length of yyIn-
1287 int yyCh; // the last character read-
1288 QScopedPointer<QRegExpCharClass> yyCharClass; // attribute for Tok_CharClass tokens-
1289 int yyMinRep; // attribute for Tok_Quantifier-
1290 int yyMaxRep; // ditto-
1291 QString yyError; // syntax error or overflow during parsing?-
1292-
1293 /*-
1294 This is the syntactic analyzer for regular expressions.-
1295 */-
1296 int parse(const QChar *rx, int len);-
1297 void parseAtom(Box *box);-
1298 void parseFactor(Box *box);-
1299 void parseTerm(Box *box);-
1300 void parseExpression(Box *box);-
1301-
1302 int yyTok; // the last token read-
1303 bool yyMayCapture; // set this to false to disable capturing-
1304-
1305 friend struct QRegExpMatchState;-
1306};-
1307-
1308#ifndef QT_NO_REGEXP_LOOKAHEAD-
1309/*-
1310 The struct QRegExpLookahead represents a lookahead a la Perl (e.g.,-
1311 (?=foo) and (?!bar)).-
1312*/-
1313struct QRegExpLookahead-
1314{-
1315 QRegExpEngine *eng; // NFA representing the embedded regular expression-
1316 bool neg; // negative lookahead?-
1317-
1318 inline QRegExpLookahead(QRegExpEngine *eng0, bool neg0)-
1319 : eng(eng0), neg(neg0) { }
executed 126 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
1320 inline ~QRegExpLookahead() { delete eng; }
executed 126 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_qtextdocument - unknown status
126
1321};-
1322#endif-
1323-
1324/*!-
1325 \internal-
1326 convert the pattern string to the RegExp syntax.-
1327-
1328 This is also used by QScriptEngine::newRegExp to convert to a pattern that JavaScriptCore can understan-
1329 */-
1330Q_CORE_EXPORT QString qt_regexp_toCanonical(const QString &pattern, QRegExp::PatternSyntax patternSyntax)-
1331{-
1332 switch (patternSyntax) {-
1333#ifndef QT_NO_REGEXP_WILDCARD-
1334 case QRegExp::Wildcard:
executed 214 times by 61 tests: case QRegExp::Wildcard:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • ...
214
1335 return wc2rx(pattern, false);
executed 214 times by 61 tests: return wc2rx(pattern, false);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • ...
214
1336 case QRegExp::WildcardUnix:
executed 76 times by 23 tests: case QRegExp::WildcardUnix:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_languageChange
76
1337 return wc2rx(pattern, true);
executed 76 times by 23 tests: return wc2rx(pattern, true);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSidebar
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_languageChange
76
1338#endif-
1339 case QRegExp::FixedString:
executed 97 times by 9 tests: case QRegExp::FixedString:
Executed by:
  • tst_QDataStream
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
97
1340 return QRegExp::escape(pattern);
executed 97 times by 9 tests: return QRegExp::escape(pattern);
Executed by:
  • tst_QDataStream
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
97
1341 case QRegExp::W3CXmlSchema11:
executed 52 times by 1 test: case QRegExp::W3CXmlSchema11:
Executed by:
  • tst_QRegExp
52
1342 default:
executed 1113 times by 61 tests: default:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMetaType
  • ...
1113
1343 return pattern;
executed 1165 times by 61 tests: return pattern;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMetaType
  • ...
1165
1344 }-
1345}-
1346-
1347QRegExpEngine::QRegExpEngine(const QRegExpEngineKey &key)-
1348 : cs(key.cs), greedyQuantifiers(key.patternSyntax == QRegExp::RegExp2),-
1349 xmlSchemaExtensions(key.patternSyntax == QRegExp::W3CXmlSchema11)-
1350{-
1351 setup();-
1352-
1353 QString rx = qt_regexp_toCanonical(key.pattern, key.patternSyntax);-
1354-
1355 valid = (parse(rx.unicode(), rx.length()) == rx.length());-
1356 if (!valid) {
!validDescription
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 1500 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
52-1500
1357#ifndef QT_NO_REGEXP_OPTIM-
1358 trivial = false;-
1359#endif-
1360 error(RXERR_LEFTDELIM);-
1361 }
executed 52 times by 4 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
52
1362}
executed 1552 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1552
1363-
1364QRegExpEngine::~QRegExpEngine()-
1365{-
1366#ifndef QT_NO_REGEXP_LOOKAHEAD-
1367 qDeleteAll(ahead);-
1368#endif-
1369}
executed 1885 times by 299 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMetaType
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QStateMachine
  • tst_QString
  • tst_QTextDocument
  • tst_QVariant
  • tst_collections - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • ...
1885
1370-
1371void QRegExpMatchState::prepareForMatch(QRegExpEngine *eng)-
1372{-
1373 /*-
1374 We use one QVector<int> for all the big data used a lot in-
1375 matchHere() and friends.-
1376 */-
1377 int ns = eng->s.size(); // number of states-
1378 int ncap = eng->ncap;-
1379#ifndef QT_NO_REGEXP_OPTIM-
1380 int newSlideTabSize = qMax(eng->minl + 1, 16);-
1381#else-
1382 int newSlideTabSize = 0;-
1383#endif-
1384 int numCaptures = eng->captureCount();-
1385 int newCapturedSize = 2 + 2 * numCaptures;-
1386 bigArray = q_check_ptr((int *)realloc(bigArray, ((3 + 4 * ncap) * ns + 4 * ncap + newSlideTabSize + newCapturedSize)*sizeof(int)));-
1387-
1388 // set all internal variables only _after_ bigArray is realloc'ed-
1389 // to prevent a broken regexp in oom case-
1390-
1391 slideTabSize = newSlideTabSize;-
1392 capturedSize = newCapturedSize;-
1393 inNextStack = bigArray;-
1394 memset(inNextStack, -1, ns * sizeof(int));-
1395 curStack = inNextStack + ns;-
1396 nextStack = inNextStack + 2 * ns;-
1397-
1398 curCapBegin = inNextStack + 3 * ns;-
1399 nextCapBegin = curCapBegin + ncap * ns;-
1400 curCapEnd = curCapBegin + 2 * ncap * ns;-
1401 nextCapEnd = curCapBegin + 3 * ncap * ns;-
1402-
1403 tempCapBegin = curCapBegin + 4 * ncap * ns;-
1404 tempCapEnd = tempCapBegin + ncap;-
1405 capBegin = tempCapBegin + 2 * ncap;-
1406 capEnd = tempCapBegin + 3 * ncap;-
1407-
1408 slideTab = tempCapBegin + 4 * ncap;-
1409 captured = slideTab + slideTabSize;-
1410 memset(captured, -1, capturedSize*sizeof(int));-
1411 this->eng = eng;-
1412}
executed 2420084 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
2420084
1413-
1414/*-
1415 Tries to match in str and returns an array of (begin, length) pairs-
1416 for captured text. If there is no match, all pairs are (-1, -1).-
1417*/-
1418void QRegExpMatchState::match(const QChar *str0, int len0, int pos0,-
1419 bool minimal0, bool oneTest, int caretIndex)-
1420{-
1421 bool matched = false;-
1422 QChar char_null;-
1423-
1424#ifndef QT_NO_REGEXP_OPTIM-
1425 if (eng->trivial && !oneTest) {
eng->trivialDescription
TRUEevaluated 121311 times by 14 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QStateMachine
  • tst_QString
  • tst_QTextDocument
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1704783 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
!oneTestDescription
TRUEevaluated 120085 times by 11 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QStateMachine
  • tst_QString
  • tst_QTextDocument
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1226 times by 6 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLibrary
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
1226-1704783
1426 pos = qFindString(str0, len0, pos0, eng->goodStr.unicode(), eng->goodStr.length(), eng->cs);-
1427 matchLen = eng->goodStr.length();-
1428 matched = (pos != -1);-
1429 } else
executed 120085 times by 11 tests: end of block
Executed by:
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QStateMachine
  • tst_QString
  • tst_QTextDocument
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
120085
1430#endif-
1431 {-
1432 in = str0;-
1433 if (in == 0)
in == 0Description
TRUEnever evaluated
FALSEevaluated 1706009 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
0-1706009
1434 in = &char_null;
never executed: in = &char_null;
0
1435 pos = pos0;-
1436 caretPos = caretIndex;-
1437 len = len0;-
1438 minimal = minimal0;-
1439 matchLen = 0;-
1440 oneTestMatchedLen = 0;-
1441-
1442 if (eng->valid && pos >= 0 && pos <= len) {
eng->validDescription
TRUEevaluated 1679055 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 26954 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
pos >= 0Description
TRUEevaluated 1679055 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEnever evaluated
pos <= lenDescription
TRUEevaluated 1679048 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
0-1679055
1443#ifndef QT_NO_REGEXP_OPTIM-
1444 if (oneTest) {
oneTestDescription
TRUEevaluated 1434184 times by 57 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLibrary
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 244864 times by 45 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • ...
244864-1434184
1445 matched = matchHere();-
1446 } else {
executed 1434184 times by 57 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLibrary
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
1434184
1447 if (pos <= len - eng->minl) {
pos <= len - eng->minlDescription
TRUEevaluated 241713 times by 45 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • ...
FALSEevaluated 3151 times by 22 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
3151-241713
1448 if (eng->caretAnchored) {
eng->caretAnchoredDescription
TRUEevaluated 2595 times by 26 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • ...
FALSEevaluated 239118 times by 35 tests
Evaluated by:
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • ...
2595-239118
1449 matched = matchHere();-
1450 } else if (eng->useGoodStringHeuristic) {
executed 2595 times by 26 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • ...
eng->useGoodStringHeuristicDescription
TRUEevaluated 201074 times by 16 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QFontComboBox
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 38044 times by 28 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • ...
2595-201074
1451 matched = eng->goodStringMatch(*this);-
1452 } else {
executed 201074 times by 16 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QFontComboBox
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
201074
1453 matched = eng->badCharMatch(*this);-
1454 }
executed 38044 times by 28 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • ...
38044
1455 }-
1456 }
executed 244864 times by 45 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • ...
244864
1457#else-
1458 matched = oneTest ? matchHere() : eng->bruteMatch(*this);-
1459#endif-
1460 }-
1461 }
executed 1706009 times by 85 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
1706009
1462-
1463 if (matched) {
matchedDescription
TRUEevaluated 461049 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 1365045 times by 78 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
461049-1365045
1464 int *c = captured;-
1465 *c++ = pos;-
1466 *c++ = matchLen;-
1467-
1468 int numCaptures = (capturedSize - 2) >> 1;-
1469#ifndef QT_NO_REGEXP_CAPTURE-
1470 for (int i = 0; i < numCaptures; ++i) {
i < numCapturesDescription
TRUEevaluated 220587 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 461049 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
220587-461049
1471 int j = eng->captureForOfficialCapture.at(i);-
1472 if (capBegin[j] != EmptyCapture) {
capBegin[j] != EmptyCaptureDescription
TRUEevaluated 211908 times by 22 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 8679 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
  • tst_QTime
  • tst_qmakelib
8679-211908
1473 int len = capEnd[j] - capBegin[j];-
1474 *c++ = (len > 0) ? pos + capBegin[j] : 0;
(len > 0)Description
TRUEevaluated 211908 times by 22 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEnever evaluated
0-211908
1475 *c++ = len;-
1476 } else {
executed 211908 times by 22 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
211908
1477 *c++ = -1;-
1478 *c++ = -1;-
1479 }
executed 8679 times by 11 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
  • tst_QTime
  • tst_qmakelib
8679
1480 }-
1481#endif-
1482 } else {
executed 461049 times by 67 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
461049
1483 // we rely on 2's complement here-
1484 memset(captured, -1, capturedSize * sizeof(int));-
1485 }
executed 1365045 times by 78 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
1365045
1486}-
1487-
1488/*-
1489 The three following functions add one state to the automaton and-
1490 return the number of the state.-
1491*/-
1492-
1493int QRegExpEngine::createState(QChar ch)-
1494{-
1495 return setupState(ch.unicode());
executed 22721 times by 82 tests: return setupState(ch.unicode());
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
22721
1496}-
1497-
1498int QRegExpEngine::createState(const QRegExpCharClass &cc)-
1499{-
1500#ifndef QT_NO_REGEXP_CCLASS-
1501 int n = cl.size();-
1502 cl += QRegExpCharClass(cc);-
1503 return setupState(CharClassBit | n);
executed 6409 times by 116 tests: return setupState(CharClassBit | n);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6409
1504#else-
1505 Q_UNUSED(cc);-
1506 return setupState(CharClassBit);-
1507#endif-
1508}-
1509-
1510#ifndef QT_NO_REGEXP_BACKREF-
1511int QRegExpEngine::createState(int bref)-
1512{-
1513 if (bref > nbrefs) {
bref > nbrefsDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_QRegExp
72-118
1514 nbrefs = bref;-
1515 if (nbrefs > MaxBackRefs) {
nbrefs > MaxBackRefsDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_QRegExp
0-72
1516 error(RXERR_LIMIT);-
1517 return 0;
never executed: return 0;
0
1518 }-
1519 }
executed 72 times by 1 test: end of block
Executed by:
  • tst_QRegExp
72
1520 return setupState(BackRefBit | bref);
executed 190 times by 1 test: return setupState(BackRefBit | bref);
Executed by:
  • tst_QRegExp
190
1521}-
1522#endif-
1523-
1524/*-
1525 The two following functions add a transition between all pairs of-
1526 states (i, j) where i is found in from, and j is found in to.-
1527-
1528 Cat-transitions are distinguished from plus-transitions for-
1529 capturing.-
1530*/-
1531-
1532void QRegExpEngine::addCatTransitions(const QVector<int> &from, const QVector<int> &to)-
1533{-
1534 for (int i = 0; i < from.size(); i++)
i < from.size()Description
TRUEevaluated 32083 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 30263 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
30263-32083
1535 mergeInto(&s[from.at(i)].outs, to);
executed 32083 times by 116 tests: mergeInto(&s[from.at(i)].outs, to);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
32083
1536}
executed 30263 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
30263
1537-
1538#ifndef QT_NO_REGEXP_CAPTURE-
1539void QRegExpEngine::addPlusTransitions(const QVector<int> &from, const QVector<int> &to, int atom)-
1540{-
1541 for (int i = 0; i < from.size(); i++) {
i < from.size()Description
TRUEevaluated 3046 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 2194 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
2194-3046
1542 QRegExpAutomatonState &st = s[from.at(i)];-
1543 const QVector<int> oldOuts = st.outs;-
1544 mergeInto(&st.outs, to);-
1545 if (f.at(atom).capture != QRegExpAtom::NoCapture) {
f.at(atom).cap...tom::NoCaptureDescription
TRUEevaluated 626 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2420 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
626-2420
1546 for (int j = 0; j < to.size(); j++) {
j < to.size()Description
TRUEevaluated 1032 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 626 times by 1 test
Evaluated by:
  • tst_QRegExp
626-1032
1547 // ### st.reenter.contains(to.at(j)) check looks suspicious-
1548 if (!st.reenter.contains(to.at(j)) &&
!st.reenter.contains(to.at(j))Description
TRUEevaluated 1024 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QRegExp
8-1024
1549 !std::binary_search(oldOuts.constBegin(), oldOuts.constEnd(), to.at(j)))
!std::binary_s...d(), to.at(j))Description
TRUEevaluated 934 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 90 times by 1 test
Evaluated by:
  • tst_QRegExp
90-934
1550 st.reenter.insert(to.at(j), atom);
executed 934 times by 1 test: st.reenter.insert(to.at(j), atom);
Executed by:
  • tst_QRegExp
934
1551 }
executed 1032 times by 1 test: end of block
Executed by:
  • tst_QRegExp
1032
1552 }
executed 626 times by 1 test: end of block
Executed by:
  • tst_QRegExp
626
1553 }
executed 3046 times by 97 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
3046
1554}
executed 2194 times by 97 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
2194
1555#endif-
1556-
1557#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1558/*-
1559 Returns an anchor that means a OR b.-
1560*/-
1561int QRegExpEngine::anchorAlternation(int a, int b)-
1562{-
1563 if (((a & b) == a || (a & b) == b) && ((a | b) & Anchor_Alternation) == 0)
(a & b) == aDescription
TRUEevaluated 290 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 422 times by 1 test
Evaluated by:
  • tst_QRegExp
(a & b) == bDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 410 times by 1 test
Evaluated by:
  • tst_QRegExp
((a | b) & Anc...ernation) == 0Description
TRUEevaluated 270 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_QRegExp
12-422
1564 return a & b;
executed 270 times by 1 test: return a & b;
Executed by:
  • tst_QRegExp
270
1565-
1566 int n = aa.size();-
1567#ifndef QT_NO_REGEXP_OPTIM-
1568 if (n > 0 && aa.at(n - 1).a == a && aa.at(n - 1).b == b)
n > 0Description
TRUEevaluated 420 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QRegExp
aa.at(n - 1).a == aDescription
TRUEevaluated 84 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 336 times by 1 test
Evaluated by:
  • tst_QRegExp
aa.at(n - 1).b == bDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_QRegExp
22-420
1569 return Anchor_Alternation | (n - 1);
executed 40 times by 1 test: return Anchor_Alternation | (n - 1);
Executed by:
  • tst_QRegExp
40
1570#endif-
1571-
1572 QRegExpAnchorAlternation element = {a, b};-
1573 aa.append(element);-
1574 return Anchor_Alternation | n;
executed 402 times by 1 test: return Anchor_Alternation | n;
Executed by:
  • tst_QRegExp
402
1575}-
1576-
1577/*-
1578 Returns an anchor that means a AND b.-
1579*/-
1580int QRegExpEngine::anchorConcatenation(int a, int b)-
1581{-
1582 if (((a | b) & Anchor_Alternation) == 0)
((a | b) & Anc...ernation) == 0Description
TRUEevaluated 41363 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 500 times by 1 test
Evaluated by:
  • tst_QRegExp
500-41363
1583 return a | b;
executed 41363 times by 116 tests: return a | b;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
41363
1584 if ((b & Anchor_Alternation) != 0)
(b & Anchor_Alternation) != 0Description
TRUEevaluated 170 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 330 times by 1 test
Evaluated by:
  • tst_QRegExp
170-330
1585 qSwap(a, b);
executed 170 times by 1 test: qSwap(a, b);
Executed by:
  • tst_QRegExp
170
1586-
1587 int aprime = anchorConcatenation(aa.at(a ^ Anchor_Alternation).a, b);-
1588 int bprime = anchorConcatenation(aa.at(a ^ Anchor_Alternation).b, b);-
1589 return anchorAlternation(aprime, bprime);
executed 500 times by 1 test: return anchorAlternation(aprime, bprime);
Executed by:
  • tst_QRegExp
500
1590}-
1591#endif-
1592-
1593/*-
1594 Adds anchor a on a transition caracterised by its from state and-
1595 its to state.-
1596*/-
1597void QRegExpEngine::addAnchors(int from, int to, int a)-
1598{-
1599 QRegExpAutomatonState &st = s[from];-
1600 if (st.anchors.contains(to))
st.anchors.contains(to)Description
TRUEevaluated 172 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 36566 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
172-36566
1601 a = anchorAlternation(st.anchors.value(to), a);
executed 172 times by 1 test: a = anchorAlternation(st.anchors.value(to), a);
Executed by:
  • tst_QRegExp
172
1602 st.anchors.insert(to, a);-
1603}
executed 36738 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
36738
1604-
1605#ifndef QT_NO_REGEXP_OPTIM-
1606/*-
1607 This function chooses between the good-string and the bad-character-
1608 heuristics. It computes two scores and chooses the heuristic with-
1609 the highest score.-
1610-
1611 Here are some common-sense constraints on the scores that should be-
1612 respected if the formulas are ever modified: (1) If goodStr is-
1613 empty, the good-string heuristic scores 0. (2) If the regular-
1614 expression is trivial, the good-string heuristic should be used.-
1615 (3) If the search is case insensitive, the good-string heuristic-
1616 should be used, unless it scores 0. (Case insensitivity turns all-
1617 entries of occ1 to 0.) (4) If (goodLateStart - goodEarlyStart) is-
1618 big, the good-string heuristic should score less.-
1619*/-
1620void QRegExpEngine::heuristicallyChooseHeuristic()-
1621{-
1622 if (minl == 0) {
minl == 0Description
TRUEevaluated 421 times by 61 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • ...
FALSEevaluated 1257 times by 88 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
421-1257
1623 useGoodStringHeuristic = false;-
1624 } else if (trivial) {
executed 421 times by 61 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • ...
trivialDescription
TRUEevaluated 482 times by 17 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFileSystemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 775 times by 86 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
421-775
1625 useGoodStringHeuristic = true;-
1626 } else {
executed 482 times by 17 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFileSystemModel
  • tst_QItemSelectionModel
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
482
1627 /*-
1628 Magic formula: The good string has to constitute a good-
1629 proportion of the minimum-length string, and appear at a-
1630 more-or-less known index.-
1631 */-
1632 int goodStringScore = (64 * goodStr.length() / minl) --
1633 (goodLateStart - goodEarlyStart);-
1634 /*-
1635 Less magic formula: We pick some characters at random, and-
1636 check whether they are good or bad.-
1637 */-
1638 int badCharScore = 0;-
1639 int step = qMax(1, NumBadChars / 32);-
1640 for (int i = 1; i < NumBadChars; i += step) {
i < NumBadCharsDescription
TRUEevaluated 24800 times by 86 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 775 times by 86 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
775-24800
1641 if (occ1.at(i) == NoOccurrence)
occ1.at(i) == NoOccurrenceDescription
TRUEevaluated 9241 times by 38 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • ...
FALSEevaluated 15559 times by 86 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
9241-15559
1642 badCharScore += minl;
executed 9241 times by 38 tests: badCharScore += minl;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • ...
9241
1643 else-
1644 badCharScore += occ1.at(i);
executed 15559 times by 86 tests: badCharScore += occ1.at(i);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
15559
1645 }-
1646 badCharScore /= minl;-
1647 useGoodStringHeuristic = (goodStringScore > badCharScore);-
1648 }
executed 775 times by 86 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
775
1649}-
1650#endif-
1651-
1652#if defined(QT_DEBUG)-
1653void QRegExpEngine::dump() const-
1654{-
1655 int i, j;-
1656 qDebug("Case %ssensitive engine", cs ? "" : "in");-
1657 qDebug(" States");-
1658 for (i = 0; i < s.size(); i++) {
i < s.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1659 qDebug(" %d%s", i, i == InitialState ? " (initial)" : i == FinalState ? " (final)" : "");-
1660#ifndef QT_NO_REGEXP_CAPTURE-
1661 if (nf > 0)
nf > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1662 qDebug(" in atom %d", s[i].atom);
never executed: QMessageLogger(__FILE__, 1662, __PRETTY_FUNCTION__).debug(" in atom %d", s[i].atom);
0
1663#endif-
1664 int m = s[i].match;-
1665 if ((m & CharClassBit) != 0) {
(m & CharClassBit) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1666 qDebug(" match character class %d", m ^ CharClassBit);-
1667#ifndef QT_NO_REGEXP_CCLASS-
1668 cl[m ^ CharClassBit].dump();-
1669#else-
1670 qDebug(" negative character class");-
1671#endif-
1672 } else if ((m & BackRefBit) != 0) {
never executed: end of block
(m & BackRefBit) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1673 qDebug(" match back-reference %d", m ^ BackRefBit);-
1674 } else if (m >= 0x20 && m <= 0x7e) {
never executed: end of block
m >= 0x20Description
TRUEnever evaluated
FALSEnever evaluated
m <= 0x7eDescription
TRUEnever evaluated
FALSEnever evaluated
0
1675 qDebug(" match 0x%.4x (%c)", m, m);-
1676 } else {
never executed: end of block
0
1677 qDebug(" match 0x%.4x", m);-
1678 }
never executed: end of block
0
1679 for (j = 0; j < s[i].outs.size(); j++) {
j < s[i].outs.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1680 int next = s[i].outs[j];-
1681 qDebug(" -> %d", next);-
1682 if (s[i].reenter.contains(next))
s[i].reenter.contains(next)Description
TRUEnever evaluated
FALSEnever evaluated
0
1683 qDebug(" [reenter %d]", s[i].reenter[next]);
never executed: QMessageLogger(__FILE__, 1683, __PRETTY_FUNCTION__).debug(" [reenter %d]", s[i].reenter[next]);
0
1684 if (s[i].anchors.value(next) != 0)
s[i].anchors.value(next) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1685 qDebug(" [anchors 0x%.8x]", s[i].anchors[next]);
never executed: QMessageLogger(__FILE__, 1685, __PRETTY_FUNCTION__).debug(" [anchors 0x%.8x]", s[i].anchors[next]);
0
1686 }
never executed: end of block
0
1687 }
never executed: end of block
0
1688#ifndef QT_NO_REGEXP_CAPTURE-
1689 if (nf > 0) {
nf > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1690 qDebug(" Atom Parent Capture");-
1691 for (i = 0; i < nf; i++) {
i < nfDescription
TRUEnever evaluated
FALSEnever evaluated
0
1692 if (f[i].capture == QRegExpAtom::NoCapture) {
f[i].capture =...tom::NoCaptureDescription
TRUEnever evaluated
FALSEnever evaluated
0
1693 qDebug(" %6d %6d nil", i, f[i].parent);-
1694 } else {
never executed: end of block
0
1695 int cap = f[i].capture;-
1696 bool official = captureForOfficialCapture.contains(cap);-
1697 qDebug(" %6d %6d %6d %s", i, f[i].parent, f[i].capture,-
1698 official ? "official" : "");-
1699 }
never executed: end of block
0
1700 }-
1701 }
never executed: end of block
0
1702#endif-
1703#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1704 for (i = 0; i < aa.size(); i++)
i < aa.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
1705 qDebug(" Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a, aa[i].b);
never executed: QMessageLogger(__FILE__, 1705, __PRETTY_FUNCTION__).debug(" Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a, aa[i].b);
0
1706#endif-
1707}
never executed: end of block
0
1708#endif-
1709-
1710void QRegExpEngine::setup()-
1711{-
1712 ref.store(1);-
1713#ifndef QT_NO_REGEXP_CAPTURE-
1714 f.resize(32);-
1715 nf = 0;-
1716 cf = -1;-
1717#endif-
1718 officialncap = 0;-
1719 ncap = 0;-
1720#ifndef QT_NO_REGEXP_OPTIM-
1721 caretAnchored = true;-
1722 trivial = true;-
1723#endif-
1724 valid = false;-
1725#ifndef QT_NO_REGEXP_BACKREF-
1726 nbrefs = 0;-
1727#endif-
1728#ifndef QT_NO_REGEXP_OPTIM-
1729 useGoodStringHeuristic = true;-
1730 minl = 0;-
1731 occ1.fill(0, NumBadChars);-
1732#endif-
1733}
executed 1678 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1678
1734-
1735int QRegExpEngine::setupState(int match)-
1736{-
1737#ifndef QT_NO_REGEXP_CAPTURE-
1738 s += QRegExpAutomatonState(cf, match);-
1739#else-
1740 s += QRegExpAutomatonState(match);-
1741#endif-
1742 return s.size() - 1;
executed 29320 times by 116 tests: return s.size() - 1;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
29320
1743}-
1744-
1745#ifndef QT_NO_REGEXP_CAPTURE-
1746/*-
1747 Functions startAtom() and finishAtom() should be called to delimit-
1748 atoms. When a state is created, it is assigned to the current atom.-
1749 The information is later used for capturing.-
1750*/-
1751int QRegExpEngine::startAtom(bool officialCapture)-
1752{-
1753 if ((nf & (nf + 1)) == 0 && nf + 1 >= f.size())
(nf & (nf + 1)) == 0Description
TRUEevaluated 4715 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 26924 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
nf + 1 >= f.size()Description
TRUEevaluated 245 times by 14 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTime
FALSEevaluated 4470 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
245-26924
1754 f.resize((nf + 1) << 1);
executed 245 times by 14 tests: f.resize((nf + 1) << 1);
Executed by:
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTime
245
1755 f[nf].parent = cf;-
1756 cf = nf++;-
1757 f[cf].capture = officialCapture ? QRegExpAtom::OfficialCapture : QRegExpAtom::NoCapture;
officialCaptureDescription
TRUEevaluated 643 times by 25 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 30996 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
643-30996
1758 return cf;
executed 31639 times by 116 tests: return cf;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
31639
1759}-
1760-
1761void QRegExpEngine::finishAtom(int atom, bool needCapture)-
1762{-
1763 if (greedyQuantifiers && needCapture && f[atom].capture == QRegExpAtom::NoCapture)
greedyQuantifiersDescription
TRUEevaluated 5188 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 26451 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
needCaptureDescription
TRUEevaluated 1136 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 4052 times by 1 test
Evaluated by:
  • tst_QRegExp
f[atom].captur...tom::NoCaptureDescription
TRUEevaluated 1136 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-26451
1764 f[atom].capture = QRegExpAtom::UnofficialCapture;
executed 1136 times by 1 test: f[atom].capture = QRegExpAtom::UnofficialCapture;
Executed by:
  • tst_QRegExp
1136
1765 cf = f.at(atom).parent;-
1766}
executed 31639 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
31639
1767#endif-
1768-
1769#ifndef QT_NO_REGEXP_LOOKAHEAD-
1770/*-
1771 Creates a lookahead anchor.-
1772*/-
1773int QRegExpEngine::addLookahead(QRegExpEngine *eng, bool negative)-
1774{-
1775 int n = ahead.size();-
1776 if (n == MaxLookaheads) {
n == MaxLookaheadsDescription
TRUEnever evaluated
FALSEevaluated 126 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
0-126
1777 error(RXERR_LIMIT);-
1778 return 0;
never executed: return 0;
0
1779 }-
1780 ahead += new QRegExpLookahead(eng, negative);-
1781 return Anchor_FirstLookahead << n;
executed 126 times by 2 tests: return Anchor_FirstLookahead << n;
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
1782}-
1783#endif-
1784-
1785#ifndef QT_NO_REGEXP_CAPTURE-
1786/*-
1787 We want the longest leftmost captures.-
1788*/-
1789static bool isBetterCapture(int ncap, const int *begin1, const int *end1, const int *begin2,-
1790 const int *end2)-
1791{-
1792 for (int i = 0; i < ncap; i++) {
i < ncapDescription
TRUEevaluated 17888 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
FALSEevaluated 2065 times by 2 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
2065-17888
1793 int delta = begin2[i] - begin1[i]; // it has to start early...-
1794 if (delta == 0)
delta == 0Description
TRUEevaluated 17099 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
FALSEevaluated 789 times by 2 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
789-17099
1795 delta = end1[i] - end2[i]; // ...and end late
executed 17099 times by 3 tests: delta = end1[i] - end2[i];
Executed by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
17099
1796-
1797 if (delta != 0)
delta != 0Description
TRUEevaluated 950 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
FALSEevaluated 16938 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
950-16938
1798 return delta > 0;
executed 950 times by 3 tests: return delta > 0;
Executed by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
950
1799 }
executed 16938 times by 3 tests: end of block
Executed by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
16938
1800 return false;
executed 2065 times by 2 tests: return false;
Executed by:
  • tst_QFtp
  • tst_QRegExp
2065
1801}-
1802#endif-
1803-
1804/*-
1805 Returns \c true if anchor a matches at position pos + i in the input-
1806 string, otherwise false.-
1807*/-
1808bool QRegExpMatchState::testAnchor(int i, int a, const int *capBegin)-
1809{-
1810 int j;-
1811-
1812#ifndef QT_NO_REGEXP_ANCHOR_ALT-
1813 if ((a & QRegExpEngine::Anchor_Alternation) != 0)
(a & QRegExpEn...ernation) != 0Description
TRUEevaluated 336 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1545780 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
336-1545780
1814 return testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).a, capBegin)
executed 336 times by 1 test: return testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).a, capBegin) || testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).b, capBegin);
Executed by:
  • tst_QRegExp
336
1815 || testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).b, capBegin);
executed 336 times by 1 test: return testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).a, capBegin) || testAnchor(i, eng->aa.at(a ^ QRegExpEngine::Anchor_Alternation).b, capBegin);
Executed by:
  • tst_QRegExp
336
1816#endif-
1817-
1818 if ((a & QRegExpEngine::Anchor_Caret) != 0) {
(a & QRegExpEn...or_Caret) != 0Description
TRUEevaluated 707353 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
FALSEevaluated 838427 times by 15 tests
Evaluated by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
707353-838427
1819 if (pos + i != caretPos)
pos + i != caretPosDescription
TRUEevaluated 90706 times by 4 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
FALSEevaluated 616647 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
90706-616647
1820 return false;
executed 90706 times by 4 tests: return false;
Executed by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
90706
1821 }
executed 616647 times by 27 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
616647
1822 if ((a & QRegExpEngine::Anchor_Dollar) != 0) {
(a & QRegExpEn...r_Dollar) != 0Description
TRUEevaluated 24202 times by 15 tests
Evaluated by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1430872 times by 26 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • ...
24202-1430872
1823 if (pos + i != len)
pos + i != lenDescription
TRUEevaluated 16175 times by 11 tests
Evaluated by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 8027 times by 15 tests
Evaluated by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
8027-16175
1824 return false;
executed 16175 times by 11 tests: return false;
Executed by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_qmakelib
  • tst_qstandardpaths
16175
1825 }
executed 8027 times by 15 tests: end of block
Executed by:
  • tst_Collections
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
8027
1826#ifndef QT_NO_REGEXP_ESCAPE-
1827 if ((a & (QRegExpEngine::Anchor_Word | QRegExpEngine::Anchor_NonWord)) != 0) {
(a & (QRegExpE...NonWord)) != 0Description
TRUEevaluated 149 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 1438750 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
149-1438750
1828 bool before = false;-
1829 bool after = false;-
1830 if (pos + i != 0)
pos + i != 0Description
TRUEevaluated 143 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
6-143
1831 before = isWord(in[pos + i - 1]);
executed 143 times by 2 tests: before = isWord(in[pos + i - 1]);
Executed by:
  • tst_QString
  • tst_qmakelib
143
1832 if (pos + i != len)
pos + i != lenDescription
TRUEevaluated 144 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
5-144
1833 after = isWord(in[pos + i]);
executed 144 times by 2 tests: after = isWord(in[pos + i]);
Executed by:
  • tst_QString
  • tst_qmakelib
144
1834 if ((a & QRegExpEngine::Anchor_Word) != 0 && (before == after))
(a & QRegExpEn...hor_Word) != 0Description
TRUEevaluated 149 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEnever evaluated
(before == after)Description
TRUEevaluated 101 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
0-149
1835 return false;
executed 101 times by 1 test: return false;
Executed by:
  • tst_QString
101
1836 if ((a & QRegExpEngine::Anchor_NonWord) != 0 && (before != after))
(a & QRegExpEn..._NonWord) != 0Description
TRUEnever evaluated
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
(before != after)Description
TRUEnever evaluated
FALSEnever evaluated
0-48
1837 return false;
never executed: return false;
0
1838 }
executed 48 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
48
1839#endif-
1840#ifndef QT_NO_REGEXP_LOOKAHEAD-
1841 if ((a & QRegExpEngine::Anchor_LookaheadMask) != 0) {
(a & QRegExpEn...headMask) != 0Description
TRUEevaluated 800608 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEevaluated 638190 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
638190-800608
1842 const QVector<QRegExpLookahead *> &ahead = eng->ahead;-
1843 for (j = 0; j < ahead.size(); j++) {
j < ahead.size()Description
TRUEevaluated 10402080 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEevaluated 800113 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
800113-10402080
1844 if ((a & (QRegExpEngine::Anchor_FirstLookahead << j)) != 0) {
(a & (QRegExpE...ad << j)) != 0Description
TRUEevaluated 800608 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEevaluated 9601472 times by 1 test
Evaluated by:
  • tst_QRegExp
800608-9601472
1845 QRegExpMatchState matchState;-
1846 matchState.prepareForMatch(ahead[j]->eng);-
1847 matchState.match(in + pos + i, len - pos - i, 0,-
1848 true, true, caretPos - pos - i);-
1849 if ((matchState.captured[0] == 0) == ahead[j]->neg)
(matchState.ca... ahead[j]->negDescription
TRUEevaluated 495 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEevaluated 800113 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
495-800113
1850 return false;
executed 495 times by 2 tests: return false;
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
495
1851 }
executed 800113 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
800113
1852 }
executed 10401585 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
10401585
1853 }
executed 800113 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
800113
1854#endif-
1855#ifndef QT_NO_REGEXP_CAPTURE-
1856#ifndef QT_NO_REGEXP_BACKREF-
1857 for (j = 0; j < eng->nbrefs; j++) {
j < eng->nbrefsDescription
TRUEevaluated 42778 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1415439 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
42778-1415439
1858 if ((a & (QRegExpEngine::Anchor_BackRef1Empty << j)) != 0) {
(a & (QRegExpE...ty << j)) != 0Description
TRUEevaluated 26367 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 16411 times by 1 test
Evaluated by:
  • tst_QRegExp
16411-26367
1859 int i = eng->captureForOfficialCapture.at(j);-
1860 if (capBegin[i] != EmptyCapture)
capBegin[i] != EmptyCaptureDescription
TRUEevaluated 22864 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 3503 times by 1 test
Evaluated by:
  • tst_QRegExp
3503-22864
1861 return false;
executed 22864 times by 1 test: return false;
Executed by:
  • tst_QRegExp
22864
1862 }
executed 3503 times by 1 test: end of block
Executed by:
  • tst_QRegExp
3503
1863 }
executed 19914 times by 1 test: end of block
Executed by:
  • tst_QRegExp
19914
1864#endif-
1865#endif-
1866 return true;
executed 1415439 times by 27 tests: return true;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
1415439
1867}-
1868-
1869#ifndef QT_NO_REGEXP_OPTIM-
1870/*-
1871 The three following functions are what Jeffrey Friedl would call-
1872 transmissions (or bump-alongs). Using one or the other should make-
1873 no difference except in performance.-
1874*/-
1875-
1876bool QRegExpEngine::goodStringMatch(QRegExpMatchState &matchState) const-
1877{-
1878 int k = matchState.pos + goodEarlyStart;-
1879 QStringMatcher matcher(goodStr.unicode(), goodStr.length(), cs);-
1880 while ((k = matcher.indexIn(matchState.in, matchState.len, k)) != -1) {
(k = matcher.i...len, k)) != -1Description
TRUEevaluated 200568 times by 14 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
FALSEevaluated 528 times by 10 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QNetworkReply
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
528-200568
1881 int from = k - goodLateStart;-
1882 int to = k - goodEarlyStart;-
1883 if (from > matchState.pos)
from > matchState.posDescription
TRUEevaluated 200251 times by 10 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
FALSEevaluated 317 times by 8 tests
Evaluated by:
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_qmakelib
317-200251
1884 matchState.pos = from;
executed 200251 times by 10 tests: matchState.pos = from;
Executed by:
  • tst_QDBusInterface
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
200251
1885-
1886 while (matchState.pos <= to) {
matchState.pos <= toDescription
TRUEevaluated 198808 times by 14 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
FALSEevaluated 22 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
22-198808
1887 if (matchState.matchHere())
matchState.matchHere()Description
TRUEevaluated 200546 times by 14 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
FALSEevaluated 22 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
22-200546
1888 return true;
executed 200546 times by 14 tests: return true;
Executed by:
  • tst_QDBusInterface
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_qmakelib
  • tst_uic
200546
1889 ++matchState.pos;-
1890 }
executed 22 times by 4 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
22
1891 ++k;-
1892 }
executed 22 times by 4 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
22
1893 return false;
executed 528 times by 10 tests: return false;
Executed by:
  • tst_QFontComboBox
  • tst_QNetworkReply
  • tst_QObject
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
528
1894}-
1895-
1896bool QRegExpEngine::badCharMatch(QRegExpMatchState &matchState) const-
1897{-
1898 int slideHead = 0;-
1899 int slideNext = 0;-
1900 int i;-
1901 int lastPos = matchState.len - minl;-
1902 memset(matchState.slideTab, 0, matchState.slideTabSize * sizeof(int));-
1903-
1904 /*-
1905 Set up the slide table, used for the bad-character heuristic,-
1906 using the table of first occurrence of each character.-
1907 */-
1908 for (i = 0; i < minl; i++) {
i < minlDescription
TRUEevaluated 32203 times by 26 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • ...
FALSEevaluated 38044 times by 28 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • ...
32203-38044
1909 int sk = occ1[BadChar(matchState.in[matchState.pos + i])];-
1910 if (sk == NoOccurrence)
sk == NoOccurrenceDescription
TRUEevaluated 14097 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 18106 times by 22 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
14097-18106
1911 sk = i + 1;
executed 14097 times by 14 tests: sk = i + 1;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
14097
1912 if (sk > 0) {
sk > 0Description
TRUEevaluated 14525 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 17678 times by 22 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
14525-17678
1913 int k = i + 1 - sk;-
1914 if (k < 0) {
k < 0Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QSslCertificate
FALSEevaluated 14507 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
18-14507
1915 sk = i + 1;-
1916 k = 0;-
1917 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_QSslCertificate
18
1918 if (sk > matchState.slideTab[k])
sk > matchState.slideTab[k]Description
TRUEevaluated 14525 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
FALSEnever evaluated
0-14525
1919 matchState.slideTab[k] = sk;
executed 14525 times by 14 tests: matchState.slideTab[k] = sk;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
14525
1920 }
executed 14525 times by 14 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
14525
1921 }
executed 32203 times by 26 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • ...
32203
1922-
1923 if (matchState.pos > lastPos)
matchState.pos > lastPosDescription
TRUEnever evaluated
FALSEevaluated 38044 times by 28 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • ...
0-38044
1924 return false;
never executed: return false;
0
1925-
1926 for (;;) {-
1927 if (++slideNext >= matchState.slideTabSize)
++slideNext >=...e.slideTabSizeDescription
TRUEevaluated 10662 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_languageChange
FALSEevaluated 345462 times by 28 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • ...
10662-345462
1928 slideNext = 0;
executed 10662 times by 10 tests: slideNext = 0;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSslCertificate
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_languageChange
10662
1929 if (matchState.slideTab[slideHead] > 0) {
matchState.sli...slideHead] > 0Description
TRUEevaluated 242580 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 113544 times by 26 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • ...
113544-242580
1930 if (matchState.slideTab[slideHead] - 1 > matchState.slideTab[slideNext])
matchState.sli...Tab[slideNext]Description
TRUEevaluated 167 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
FALSEevaluated 242413 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
167-242413
1931 matchState.slideTab[slideNext] = matchState.slideTab[slideHead] - 1;
executed 167 times by 3 tests: matchState.slideTab[slideNext] = matchState.slideTab[slideHead] - 1;
Executed by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
167
1932 matchState.slideTab[slideHead] = 0;-
1933 } else {
executed 242580 times by 14 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
242580
1934 if (matchState.matchHere())
matchState.matchHere()Description
TRUEevaluated 32831 times by 24 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
FALSEevaluated 80713 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
32831-80713
1935 return true;
executed 32831 times by 24 tests: return true;
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
32831
1936 }
executed 80713 times by 17 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
80713
1937-
1938 if (matchState.pos == lastPos)
matchState.pos == lastPosDescription
TRUEevaluated 5213 times by 17 tests
Evaluated by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
FALSEevaluated 318080 times by 21 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
5213-318080
1939 break;
executed 5213 times by 17 tests: break;
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
5213
1940-
1941 /*-
1942 Update the slide table. This code has much in common with-
1943 the initialization code.-
1944 */-
1945 int sk = occ1[BadChar(matchState.in[matchState.pos + minl])];-
1946 if (sk == NoOccurrence) {
sk == NoOccurrenceDescription
TRUEevaluated 228426 times by 13 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 89654 times by 19 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
89654-228426
1947 matchState.slideTab[slideNext] = minl;-
1948 } else if (sk > 0) {
executed 228426 times by 13 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
sk > 0Description
TRUEevaluated 177 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
FALSEevaluated 89477 times by 19 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
177-228426
1949 int k = slideNext + minl - sk;-
1950 if (k >= matchState.slideTabSize)
k >= matchState.slideTabSizeDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QSslCertificate
FALSEevaluated 160 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
17-160
1951 k -= matchState.slideTabSize;
executed 17 times by 1 test: k -= matchState.slideTabSize;
Executed by:
  • tst_QSslCertificate
17
1952 if (sk > matchState.slideTab[k])
sk > matchState.slideTab[k]Description
TRUEevaluated 177 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
FALSEnever evaluated
0-177
1953 matchState.slideTab[k] = sk;
executed 177 times by 3 tests: matchState.slideTab[k] = sk;
Executed by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
177
1954 }
executed 177 times by 3 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
177
1955 slideHead = slideNext;-
1956 ++matchState.pos;-
1957 }
executed 318080 times by 21 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
318080
1958 return false;
executed 5213 times by 17 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
5213
1959}-
1960#else-
1961bool QRegExpEngine::bruteMatch(QRegExpMatchState &matchState) const-
1962{-
1963 while (matchState.pos <= matchState.len) {-
1964 if (matchState.matchHere())-
1965 return true;-
1966 ++matchState.pos;-
1967 }-
1968 return false;-
1969}-
1970#endif-
1971-
1972/*-
1973 Here's the core of the engine. It tries to do a match here and now.-
1974*/-
1975bool QRegExpMatchState::matchHere()-
1976{-
1977 int ncur = 1, nnext = 0;-
1978 int i = 0, j, k, m;-
1979 bool stop = false;-
1980-
1981 matchLen = -1;-
1982 oneTestMatchedLen = -1;-
1983 curStack[0] = QRegExpEngine::InitialState;-
1984-
1985 int ncap = eng->ncap;-
1986#ifndef QT_NO_REGEXP_CAPTURE-
1987 if (ncap > 0) {
ncap > 0Description
TRUEevaluated 252465 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1498426 times by 73 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
252465-1498426
1988 for (j = 0; j < ncap; j++) {
j < ncapDescription
TRUEevaluated 346655 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 252465 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
252465-346655
1989 curCapBegin[j] = EmptyCapture;-
1990 curCapEnd[j] = EmptyCapture;-
1991 }
executed 346655 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
346655
1992 }
executed 252465 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
252465
1993#endif-
1994-
1995#ifndef QT_NO_REGEXP_BACKREF-
1996 while ((ncur > 0 || !sleeping.isEmpty()) && i <= len - pos && !stop)
ncur > 0Description
TRUEevaluated 5921676 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1245393 times by 66 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • ...
!sleeping.isEmpty()Description
TRUEevaluated 30940 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1214453 times by 66 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • ...
i <= len - posDescription
TRUEevaluated 5637527 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 315089 times by 77 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
!stopDescription
TRUEevaluated 5416178 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 221349 times by 28 tests
Evaluated by:
  • tst_ModelTest
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTime
  • tst_languageChange
  • ...
30940-5921676
1997#else-
1998 while (ncur > 0 && i <= len - pos && !stop)-
1999#endif-
2000 {-
2001 int ch = (i < len - pos) ? in[pos + i].unicode() : 0;
(i < len - pos)Description
TRUEevaluated 4199871 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1216307 times by 77 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
1216307-4199871
2002 for (j = 0; j < ncur; j++) {
j < ncurDescription
TRUEevaluated 5822833 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 5416178 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
5416178-5822833
2003 int cur = curStack[j];-
2004 const QRegExpAutomatonState &scur = eng->s.at(cur);-
2005 const QVector<int> &outs = scur.outs;-
2006 for (k = 0; k < outs.size(); k++) {
k < outs.size()Description
TRUEevaluated 11883742 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 5807367 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
5807367-11883742
2007 int next = outs.at(k);-
2008 const QRegExpAutomatonState &snext = eng->s.at(next);-
2009 bool inside = true;-
2010#if !defined(QT_NO_REGEXP_BACKREF) && !defined(QT_NO_REGEXP_CAPTURE)-
2011 int needSomeSleep = 0;-
2012#endif-
2013-
2014 /*-
2015 First, check if the anchors are anchored properly.-
2016 */-
2017 int a = scur.anchors.value(next);-
2018 if (a != 0 && !testAnchor(i, a, curCapBegin + j * ncap))
a != 0Description
TRUEevaluated 1545522 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
FALSEevaluated 10296053 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
!testAnchor(i,...in + j * ncap)Description
TRUEevaluated 130083 times by 13 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1415439 times by 27 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • ...
130083-10296053
2019 inside = false;
executed 130083 times by 13 tests: inside = false;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_qmakelib
  • tst_qstandardpaths
130083
2020-
2021 /*-
2022 If indeed they are, check if the input character is-
2023 correct for this transition.-
2024 */-
2025 if (inside) {
insideDescription
TRUEevaluated 11704903 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 130083 times by 13 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_qmakelib
  • tst_qstandardpaths
130083-11704903
2026 m = snext.match;-
2027 if ((m & (QRegExpEngine::CharClassBit | QRegExpEngine::BackRefBit)) == 0) {
(m & (QRegExpE...kRefBit)) == 0Description
TRUEevaluated 6511470 times by 76 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 5242189 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
5242189-6511470
2028 if (eng->cs)
eng->csDescription
TRUEevaluated 4821998 times by 56 tests
Evaluated by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
FALSEevaluated 1656977 times by 32 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QVariant
  • ...
1656977-4821998
2029 inside = (m == ch);
executed 4854493 times by 56 tests: inside = (m == ch);
Executed by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • ...
4854493
2030 else-
2031 inside = (QChar(m).toLower() == QChar(ch).toLower());
executed 1656977 times by 32 tests: inside = (QChar(m).toLower() == QChar(ch).toLower());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QVariant
  • ...
1656977
2032 } else if (next == QRegExpEngine::FinalState) {
next == QRegEx...ne::FinalStateDescription
TRUEevaluated 590085 times by 64 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • ...
FALSEevaluated 4652104 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
590085-4652104
2033 matchLen = i;-
2034 stop = minimal;-
2035 inside = true;-
2036 } else if ((m & QRegExpEngine::CharClassBit) != 0) {
executed 590085 times by 64 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • ...
(m & QRegExpEn...ClassBit) != 0Description
TRUEevaluated 4633126 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 18978 times by 1 test
Evaluated by:
  • tst_QRegExp
18978-4633126
2037#ifndef QT_NO_REGEXP_CCLASS-
2038 const QRegExpCharClass &cc = eng->cl.at(m ^ QRegExpEngine::CharClassBit);-
2039 if (eng->cs)
eng->csDescription
TRUEevaluated 3099447 times by 64 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
FALSEevaluated 1533679 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • ...
1533679-3099447
2040 inside = cc.in(ch);
executed 3099447 times by 64 tests: inside = cc.in(ch);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
3099447
2041 else if (cc.negative())
cc.negative()Description
TRUEevaluated 1533514 times by 19 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEevaluated 165 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
165-1533514
2042 inside = cc.in(QChar(ch).toLower()) &&
executed 1533514 times by 19 tests: inside = cc.in(QChar(ch).toLower()) && cc.in(QChar(ch).toUpper());
Executed by:
  • tst_QAbstractItemModel
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
  • tst_rcc
  • tst_uic
cc.in(QChar(ch).toLower())Description
TRUEevaluated 1533514 times by 19 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEnever evaluated
0-1533514
2043 cc.in(QChar(ch).toUpper());
executed 1533514 times by 19 tests: inside = cc.in(QChar(ch).toLower()) && cc.in(QChar(ch).toUpper());
Executed by:
  • tst_QAbstractItemModel
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
  • tst_rcc
  • tst_uic
cc.in(QChar(ch).toUpper())Description
TRUEevaluated 1533514 times by 19 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlugin
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
  • tst_rcc
  • tst_uic
FALSEnever evaluated
0-1533514
2044 else-
2045 inside = cc.in(QChar(ch).toLower()) ||
executed 165 times by 15 tests: inside = cc.in(QChar(ch).toLower()) || cc.in(QChar(ch).toUpper());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
cc.in(QChar(ch).toLower())Description
TRUEevaluated 135 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 30 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
30-165
2046 cc.in(QChar(ch).toUpper());
executed 165 times by 15 tests: inside = cc.in(QChar(ch).toLower()) || cc.in(QChar(ch).toUpper());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
cc.in(QChar(ch).toUpper())Description
TRUEnever evaluated
FALSEevaluated 30 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
0-165
2047#endif-
2048#if !defined(QT_NO_REGEXP_BACKREF) && !defined(QT_NO_REGEXP_CAPTURE)-
2049 } else { /* ((m & QRegExpEngine::BackRefBit) != 0) */-
2050 int bref = m ^ QRegExpEngine::BackRefBit;-
2051 int ell = j * ncap + eng->captureForOfficialCapture.at(bref - 1);-
2052-
2053 inside = bref <= ncap && curCapBegin[ell] != EmptyCapture;
bref <= ncapDescription
TRUEevaluated 18978 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
curCapBegin[el...= EmptyCaptureDescription
TRUEevaluated 16330 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2648 times by 1 test
Evaluated by:
  • tst_QRegExp
0-18978
2054 if (inside) {
insideDescription
TRUEevaluated 16330 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2648 times by 1 test
Evaluated by:
  • tst_QRegExp
2648-16330
2055 if (eng->cs)
eng->csDescription
TRUEevaluated 16330 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-16330
2056 inside = (in[pos + curCapBegin[ell]] == QChar(ch));
executed 16330 times by 1 test: inside = (in[pos + curCapBegin[ell]] == QChar(ch));
Executed by:
  • tst_QRegExp
16330
2057 else-
2058 inside = (in[pos + curCapBegin[ell]].toLower()
never executed: inside = (in[pos + curCapBegin[ell]].toLower() == QChar(ch).toLower());
0
2059 == QChar(ch).toLower());
never executed: inside = (in[pos + curCapBegin[ell]].toLower() == QChar(ch).toLower());
0
2060 }-
2061-
2062 if (inside) {
insideDescription
TRUEevaluated 16014 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2964 times by 1 test
Evaluated by:
  • tst_QRegExp
2964-16014
2063 int delta;-
2064 if (curCapEnd[ell] == EmptyCapture)
curCapEnd[ell] == EmptyCaptureDescription
TRUEevaluated 11606 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 4408 times by 1 test
Evaluated by:
  • tst_QRegExp
4408-11606
2065 delta = i - curCapBegin[ell];
executed 11606 times by 1 test: delta = i - curCapBegin[ell];
Executed by:
  • tst_QRegExp
11606
2066 else-
2067 delta = curCapEnd[ell] - curCapBegin[ell];
executed 4408 times by 1 test: delta = curCapEnd[ell] - curCapBegin[ell];
Executed by:
  • tst_QRegExp
4408
2068-
2069 inside = (delta <= len - (pos + i));-
2070 if (inside && delta > 1) {
insideDescription
TRUEevaluated 13894 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2120 times by 1 test
Evaluated by:
  • tst_QRegExp
delta > 1Description
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2132 times by 1 test
Evaluated by:
  • tst_QRegExp
2120-13894
2071 int n = 1;-
2072 if (eng->cs) {
eng->csDescription
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-11762
2073 while (n < delta) {
n < deltaDescription
TRUEevaluated 64066 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
11762-64066
2074 if (in[pos + curCapBegin[ell] + n]
in[pos + curCa...n[pos + i + n]Description
TRUEnever evaluated
FALSEevaluated 64066 times by 1 test
Evaluated by:
  • tst_QRegExp
0-64066
2075 != in[pos + i + n])
in[pos + curCa...n[pos + i + n]Description
TRUEnever evaluated
FALSEevaluated 64066 times by 1 test
Evaluated by:
  • tst_QRegExp
0-64066
2076 break;
never executed: break;
0
2077 ++n;-
2078 }
executed 64066 times by 1 test: end of block
Executed by:
  • tst_QRegExp
64066
2079 } else {
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2080 while (n < delta) {
n < deltaDescription
TRUEnever evaluated
FALSEnever evaluated
0
2081 QChar a = in[pos + curCapBegin[ell] + n];-
2082 QChar b = in[pos + i + n];-
2083 if (a.toLower() != b.toLower())
a.toLower() != b.toLower()Description
TRUEnever evaluated
FALSEnever evaluated
0
2084 break;
never executed: break;
0
2085 ++n;-
2086 }
never executed: end of block
0
2087 }
never executed: end of block
0
2088 inside = (n == delta);-
2089 if (inside)
insideDescription
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-11762
2090 needSomeSleep = delta - 1;
executed 11762 times by 1 test: needSomeSleep = delta - 1;
Executed by:
  • tst_QRegExp
11762
2091 }
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2092 }
executed 16014 times by 1 test: end of block
Executed by:
  • tst_QRegExp
16014
2093#endif-
2094 }
executed 18978 times by 1 test: end of block
Executed by:
  • tst_QRegExp
18978
2095 }-
2096-
2097 /*-
2098 We must now update our data structures.-
2099 */-
2100 if (inside) {
insideDescription
TRUEevaluated 4638032 times by 82 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 7245710 times by 83 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
4638032-7245710
2101#ifndef QT_NO_REGEXP_CAPTURE-
2102 int *capBegin, *capEnd;-
2103#endif-
2104 /*-
2105 If the next state was not encountered yet, all-
2106 is fine.-
2107 */-
2108 if ((m = inNextStack[next]) == -1) {
(m = inNextStack[next]) == -1Description
TRUEevaluated 4635020 times by 82 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 3012 times by 6 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDir
  • tst_QFtp
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
3012-4635020
2109 m = nnext++;-
2110 nextStack[m] = next;-
2111 inNextStack[next] = m;-
2112#ifndef QT_NO_REGEXP_CAPTURE-
2113 capBegin = nextCapBegin + m * ncap;-
2114 capEnd = nextCapEnd + m * ncap;-
2115-
2116 /*-
2117 Otherwise, we'll first maintain captures in-
2118 temporary arrays, and decide at the end whether-
2119 it's best to keep the previous capture zones or-
2120 the new ones.-
2121 */-
2122 } else {
executed 4635020 times by 82 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
4635020
2123 capBegin = tempCapBegin;-
2124 capEnd = tempCapEnd;-
2125#endif-
2126 }
executed 3012 times by 6 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QDir
  • tst_QFtp
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
3012
2127-
2128#ifndef QT_NO_REGEXP_CAPTURE-
2129 /*-
2130 Updating the capture zones is much of a task.-
2131 */-
2132 if (ncap > 0) {
ncap > 0Description
TRUEevaluated 2162295 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 2475737 times by 71 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
2162295-2475737
2133 memcpy(capBegin, curCapBegin + j * ncap, ncap * sizeof(int));-
2134 memcpy(capEnd, curCapEnd + j * ncap, ncap * sizeof(int));-
2135 int c = scur.atom, n = snext.atom;-
2136 int p = -1, q = -1;-
2137 int cap;-
2138-
2139 /*-
2140 Lemma 1. For any x in the range [0..nf), we-
2141 have f[x].parent < x.-
2142-
2143 Proof. By looking at startAtom(), it is-
2144 clear that cf < nf holds all the time, and-
2145 thus that f[nf].parent < nf.-
2146 */-
2147-
2148 /*-
2149 If we are reentering an atom, we empty all-
2150 capture zones inside it.-
2151 */-
2152 if ((q = scur.reenter.value(next)) != 0) {
(q = scur.reen...ue(next)) != 0Description
TRUEevaluated 6244 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2140260 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
6244-2140260
2153 QBitArray b(eng->nf, false);-
2154 b.setBit(q, true);-
2155 for (int ell = q + 1; ell < eng->nf; ell++) {
ell < eng->nfDescription
TRUEevaluated 55417 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 6244 times by 1 test
Evaluated by:
  • tst_QRegExp
6244-55417
2156 if (b.testBit(eng->f.at(ell).parent)) {
b.testBit(eng-...t(ell).parent)Description
TRUEevaluated 31969 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 23448 times by 1 test
Evaluated by:
  • tst_QRegExp
23448-31969
2157 b.setBit(ell, true);-
2158 cap = eng->f.at(ell).capture;-
2159 if (cap >= 0) {
cap >= 0Description
TRUEevaluated 3250 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 28719 times by 1 test
Evaluated by:
  • tst_QRegExp
3250-28719
2160 capBegin[cap] = EmptyCapture;-
2161 capEnd[cap] = EmptyCapture;-
2162 }
executed 3250 times by 1 test: end of block
Executed by:
  • tst_QRegExp
3250
2163 }
executed 31969 times by 1 test: end of block
Executed by:
  • tst_QRegExp
31969
2164 }
executed 55417 times by 1 test: end of block
Executed by:
  • tst_QRegExp
55417
2165 p = eng->f.at(q).parent;-
2166-
2167 /*-
2168 Otherwise, close the capture zones we are-
2169 leaving. We are leaving f[c].capture,-
2170 f[f[c].parent].capture,-
2171 f[f[f[c].parent].parent].capture, ...,-
2172 until f[x].capture, with x such that-
2173 f[x].parent is the youngest common ancestor-
2174 for c and n.-
2175-
2176 We go up along c's and n's ancestry until-
2177 we find x.-
2178 */-
2179 } else {
executed 6244 times by 1 test: end of block
Executed by:
  • tst_QRegExp
6244
2180 p = c;-
2181 q = n;-
2182 while (p != q) {
p != qDescription
TRUEevaluated 3153123 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 2156051 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
2156051-3153123
2183 if (p > q) {
p > qDescription
TRUEevaluated 1721957 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1493376 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1493376-1721957
2184 cap = eng->f.at(p).capture;-
2185 if (cap >= 0) {
cap >= 0Description
TRUEevaluated 336440 times by 22 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1385517 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
336440-1385517
2186 if (capBegin[cap] == i) {
capBegin[cap] == iDescription
TRUEnever evaluated
FALSEevaluated 336440 times by 22 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
0-336440
2187 capBegin[cap] = EmptyCapture;-
2188 capEnd[cap] = EmptyCapture;-
2189 } else {
never executed: end of block
0
2190 capEnd[cap] = i;-
2191 }
executed 336440 times by 22 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
336440
2192 }-
2193 p = eng->f.at(p).parent;-
2194 } else {
executed 1721957 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1721957
2195 q = eng->f.at(q).parent;-
2196 }
executed 1493376 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1493376
2197 }-
2198 }
executed 2156051 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
2156051
2199-
2200 /*-
2201 In any case, we now open the capture zones-
2202 we are entering. We work upwards from n-
2203 until we reach p (the parent of the atom we-
2204 reenter or the youngest common ancestor).-
2205 */-
2206 while (n > p) {
n > pDescription
TRUEevaluated 1505617 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 2132432 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1505617-2132432
2207 cap = eng->f.at(n).capture;-
2208 if (cap >= 0) {
cap >= 0Description
TRUEevaluated 227699 times by 22 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1283560 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
227699-1283560
2209 capBegin[cap] = i;-
2210 capEnd[cap] = EmptyCapture;-
2211 }
executed 227699 times by 22 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
227699
2212 n = eng->f.at(n).parent;-
2213 }
executed 1511259 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1511259
2214 /*-
2215 If the next state was already in-
2216 nextStack, we must choose carefully which-
2217 capture zones we want to keep.-
2218 */-
2219 if (capBegin == tempCapBegin &&
capBegin == tempCapBeginDescription
TRUEevaluated 2995 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
FALSEevaluated 2159300 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
2995-2159300
2220 isBetterCapture(ncap, capBegin, capEnd, nextCapBegin + m * ncap,
isBetterCaptur...nd + m * ncap)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2983 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
12-2983
2221 nextCapEnd + m * ncap)) {
isBetterCaptur...nd + m * ncap)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2983 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QRegExp
  • tst_QSslKey
12-2983
2222 memcpy(nextCapBegin + m * ncap, capBegin, ncap * sizeof(int));-
2223 memcpy(nextCapEnd + m * ncap, capEnd, ncap * sizeof(int));-
2224 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QRegExp
12
2225 }
executed 2162295 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
2162295
2226#ifndef QT_NO_REGEXP_BACKREF-
2227 /*-
2228 We are done with updating the capture zones.-
2229 It's now time to put the next state to sleep,-
2230 if it needs to, and to remove it from-
2231 nextStack.-
2232 */-
2233 if (needSomeSleep > 0) {
needSomeSleep > 0Description
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 4626270 times by 82 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
11762-4626270
2234 QVector<int> zzZ(2 + 2 * ncap);-
2235 zzZ[0] = i + needSomeSleep;-
2236 zzZ[1] = next;-
2237 if (ncap > 0) {
ncap > 0Description
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-11762
2238 memcpy(zzZ.data() + 2, capBegin, ncap * sizeof(int));-
2239 memcpy(zzZ.data() + 2 + ncap, capEnd, ncap * sizeof(int));-
2240 }
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2241 inNextStack[nextStack[--nnext]] = -1;-
2242 sleeping.append(zzZ);-
2243 }
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2244#endif-
2245#endif-
2246 }
executed 4638032 times by 82 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
4638032
2247 }
executed 11834235 times by 84 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
11834235
2248 }
executed 5822833 times by 84 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
5822833
2249#ifndef QT_NO_REGEXP_CAPTURE-
2250 /*-
2251 If we reached the final state, hurray! Copy the captured-
2252 zone.-
2253 */-
2254 if (ncap > 0 && (m = inNextStack[QRegExpEngine::FinalState]) != -1) {
ncap > 0Description
TRUEevaluated 2081397 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 3334781 times by 73 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
(m = inNextSta...lState]) != -1Description
TRUEevaluated 327029 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1740314 times by 23 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
327029-3334781
2255 memcpy(capBegin, nextCapBegin + m * ncap, ncap * sizeof(int));-
2256 memcpy(capEnd, nextCapEnd + m * ncap, ncap * sizeof(int));-
2257 }
executed 327029 times by 23 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
327029
2258#ifndef QT_NO_REGEXP_BACKREF-
2259 /*-
2260 It's time to wake up the sleepers.-
2261 */-
2262 j = 0;-
2263 while (j < sleeping.count()) {
j < sleeping.count()Description
TRUEevaluated 75828 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 5399443 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
75828-5399443
2264 if (sleeping.at(j)[0] == i) {
sleeping.at(j)[0] == iDescription
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 64066 times by 1 test
Evaluated by:
  • tst_QRegExp
11762-64066
2265 const QVector<int> &zzZ = sleeping.at(j);-
2266 int next = zzZ[1];-
2267 const int *capBegin = zzZ.data() + 2;-
2268 const int *capEnd = zzZ.data() + 2 + ncap;-
2269 bool copyOver = true;-
2270-
2271 if ((m = inNextStack[next]) == -1) {
(m = inNextStack[next]) == -1Description
TRUEevaluated 11742 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QRegExp
20-11742
2272 m = nnext++;-
2273 nextStack[m] = next;-
2274 inNextStack[next] = m;-
2275 } else {
executed 11742 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11742
2276 copyOver = isBetterCapture(ncap, nextCapBegin + m * ncap, nextCapEnd + m * ncap,-
2277 capBegin, capEnd);-
2278 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_QRegExp
20
2279 if (copyOver) {
copyOverDescription
TRUEevaluated 11762 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-11762
2280 memcpy(nextCapBegin + m * ncap, capBegin, ncap * sizeof(int));-
2281 memcpy(nextCapEnd + m * ncap, capEnd, ncap * sizeof(int));-
2282 }
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2283-
2284 sleeping.removeAt(j);-
2285 } else {
executed 11762 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11762
2286 ++j;-
2287 }
executed 64066 times by 1 test: end of block
Executed by:
  • tst_QRegExp
64066
2288 }-
2289#endif-
2290#endif-
2291 for (j = 0; j < nnext; j++)
j < nnextDescription
TRUEevaluated 4635000 times by 82 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 5416178 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
4635000-5416178
2292 inNextStack[nextStack[j]] = -1;
executed 4635000 times by 82 tests: inNextStack[nextStack[j]] = -1;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
4635000
2293-
2294 // avoid needless iteration that confuses oneTestMatchedLen-
2295 if (nnext == 1 && nextStack[0] == QRegExpEngine::FinalState
nnext == 1Description
TRUEevaluated 3714822 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1701356 times by 83 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
nextStack[0] =...ne::FinalStateDescription
TRUEevaluated 428667 times by 49 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • ...
FALSEevaluated 3286155 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
428667-3714822
2296#ifndef QT_NO_REGEXP_BACKREF-
2297 && sleeping.isEmpty()
sleeping.isEmpty()Description
TRUEevaluated 428667 times by 49 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • ...
FALSEnever evaluated
0-428667
2298#endif-
2299 )-
2300 stop = true;
executed 428667 times by 49 tests: stop = true;
Executed by:
  • tst_Collections
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • ...
428667
2301-
2302 qSwap(curStack, nextStack);-
2303#ifndef QT_NO_REGEXP_CAPTURE-
2304 qSwap(curCapBegin, nextCapBegin);-
2305 qSwap(curCapEnd, nextCapEnd);-
2306#endif-
2307 ncur = nnext;-
2308 nnext = 0;-
2309 ++i;-
2310 }
executed 5407535 times by 84 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
5407535
2311-
2312#ifndef QT_NO_REGEXP_BACKREF-
2313 /*-
2314 If minimal matching is enabled, we might have some sleepers-
2315 left.-
2316 */-
2317 if (!sleeping.isEmpty())
!sleeping.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1750891 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
0-1750891
2318 sleeping.clear();
never executed: sleeping.clear();
0
2319#endif-
2320-
2321 oneTestMatchedLen = i - 1;-
2322 return (matchLen >= 0);
executed 1750891 times by 84 tests: return (matchLen >= 0);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
1750891
2323}-
2324-
2325#ifndef QT_NO_REGEXP_CCLASS-
2326-
2327QRegExpCharClass::QRegExpCharClass()-
2328 : c(0), n(false)-
2329{-
2330#ifndef QT_NO_REGEXP_OPTIM-
2331 occ1.fill(NoOccurrence, NumBadChars);-
2332#endif-
2333}
executed 30858 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
30858
2334-
2335void QRegExpCharClass::clear()-
2336{-
2337 c = 0;-
2338 r.clear();-
2339 n = false;-
2340}
executed 34392 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
34392
2341-
2342void QRegExpCharClass::setNegative(bool negative)-
2343{-
2344 n = negative;-
2345#ifndef QT_NO_REGEXP_OPTIM-
2346 occ1.fill(0, NumBadChars);-
2347#endif-
2348}
executed 1553 times by 92 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
1553
2349-
2350void QRegExpCharClass::addCategories(uint cats)-
2351{-
2352 static const int all_cats = FLAG(QChar::Mark_NonSpacing) |-
2353 FLAG(QChar::Mark_SpacingCombining) |-
2354 FLAG(QChar::Mark_Enclosing) |-
2355 FLAG(QChar::Number_DecimalDigit) |-
2356 FLAG(QChar::Number_Letter) |-
2357 FLAG(QChar::Number_Other) |-
2358 FLAG(QChar::Separator_Space) |-
2359 FLAG(QChar::Separator_Line) |-
2360 FLAG(QChar::Separator_Paragraph) |-
2361 FLAG(QChar::Other_Control) |-
2362 FLAG(QChar::Other_Format) |-
2363 FLAG(QChar::Other_Surrogate) |-
2364 FLAG(QChar::Other_PrivateUse) |-
2365 FLAG(QChar::Other_NotAssigned) |-
2366 FLAG(QChar::Letter_Uppercase) |-
2367 FLAG(QChar::Letter_Lowercase) |-
2368 FLAG(QChar::Letter_Titlecase) |-
2369 FLAG(QChar::Letter_Modifier) |-
2370 FLAG(QChar::Letter_Other) |-
2371 FLAG(QChar::Punctuation_Connector) |-
2372 FLAG(QChar::Punctuation_Dash) |-
2373 FLAG(QChar::Punctuation_Open) |-
2374 FLAG(QChar::Punctuation_Close) |-
2375 FLAG(QChar::Punctuation_InitialQuote) |-
2376 FLAG(QChar::Punctuation_FinalQuote) |-
2377 FLAG(QChar::Punctuation_Other) |-
2378 FLAG(QChar::Symbol_Math) |-
2379 FLAG(QChar::Symbol_Currency) |-
2380 FLAG(QChar::Symbol_Modifier) |-
2381 FLAG(QChar::Symbol_Other);-
2382 c |= (all_cats & cats);-
2383#ifndef QT_NO_REGEXP_OPTIM-
2384 occ1.fill(0, NumBadChars);-
2385#endif-
2386}
executed 308 times by 19 tests: end of block
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSqlDatabase
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
308
2387-
2388void QRegExpCharClass::addRange(ushort from, ushort to)-
2389{-
2390 if (from > to)
from > toDescription
TRUEnever evaluated
FALSEevaluated 8272 times by 68 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
0-8272
2391 qSwap(from, to);
never executed: qSwap(from, to);
0
2392 int m = r.size();-
2393 r.resize(m + 1);-
2394 r[m].from = from;-
2395 r[m].len = to - from + 1;-
2396-
2397#ifndef QT_NO_REGEXP_OPTIM-
2398 int i;-
2399-
2400 if (to - from < NumBadChars) {
to - from < NumBadCharsDescription
TRUEevaluated 7152 times by 68 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 1120 times by 1 test
Evaluated by:
  • tst_QRegExp
1120-7152
2401 if (from % NumBadChars <= to % NumBadChars) {
from % NumBadC... % NumBadCharsDescription
TRUEevaluated 7131 times by 68 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
21-7131
2402 for (i = from % NumBadChars; i <= to % NumBadChars; i++)
i <= to % NumBadCharsDescription
TRUEevaluated 21587 times by 68 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 7131 times by 68 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
7131-21587
2403 occ1[i] = 0;
executed 21587 times by 68 tests: occ1[i] = 0;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
21587
2404 } else {
executed 7131 times by 68 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
7131
2405 for (i = 0; i <= to % NumBadChars; i++)
i <= to % NumBadCharsDescription
TRUEevaluated 97 times by 5 tests
Evaluated by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
FALSEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
21-97
2406 occ1[i] = 0;
executed 97 times by 5 tests: occ1[i] = 0;
Executed by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
97
2407 for (i = from % NumBadChars; i < NumBadChars; i++)
i < NumBadCharsDescription
TRUEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
FALSEevaluated 21 times by 5 tests
Evaluated by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
21
2408 occ1[i] = 0;
executed 21 times by 5 tests: occ1[i] = 0;
Executed by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
21
2409 }
executed 21 times by 5 tests: end of block
Executed by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QString
21
2410 } else {-
2411 occ1.fill(0, NumBadChars);-
2412 }
executed 1120 times by 1 test: end of block
Executed by:
  • tst_QRegExp
1120
2413#endif-
2414}-
2415-
2416bool QRegExpCharClass::in(QChar ch) const-
2417{-
2418#ifndef QT_NO_REGEXP_OPTIM-
2419 if (occ1.at(BadChar(ch)) == NoOccurrence)
occ1.at(((ch)....= NoOccurrenceDescription
TRUEevaluated 702101 times by 48 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 5464569 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
702101-5464569
2420 return n;
executed 702101 times by 48 tests: return n;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
702101
2421#endif-
2422-
2423 if (c != 0 && (c & FLAG(ch.category())) != 0)
c != 0Description
TRUEevaluated 478079 times by 20 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSqlDatabase
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_uic
FALSEevaluated 4986490 times by 78 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
(c & (1 << (ch...gory()))) != 0Description
TRUEevaluated 238590 times by 19 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_uic
FALSEevaluated 239489 times by 19 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSqlDatabase
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_uic
238590-4986490
2424 return !n;
executed 238590 times by 19 tests: return !n;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_uic
238590
2425-
2426 const int uc = ch.unicode();-
2427 int size = r.size();-
2428-
2429 for (int i = 0; i < size; ++i) {
i < sizeDescription
TRUEevaluated 20946500 times by 60 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
FALSEevaluated 3833050 times by 72 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
3833050-20946500
2430 const QRegExpCharClassRange &range = r.at(i);-
2431 if (uint(uc - range.from) < uint(r.at(i).len))
uint(uc - rang...t(r.at(i).len)Description
TRUEevaluated 1392929 times by 41 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • ...
FALSEevaluated 19553571 times by 58 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
1392929-19553571
2432 return !n;
executed 1392929 times by 41 tests: return !n;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSharedMemory
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • ...
1392929
2433 }
executed 19553571 times by 58 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
19553571
2434 return n;
executed 3833050 times by 72 tests: return n;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
3833050
2435}-
2436-
2437#if defined(QT_DEBUG)-
2438void QRegExpCharClass::dump() const-
2439{-
2440 int i;-
2441 qDebug(" %stive character class", n ? "nega" : "posi");-
2442#ifndef QT_NO_REGEXP_CCLASS-
2443 if (c != 0)
c != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2444 qDebug(" categories 0x%.8x", c);
never executed: QMessageLogger(__FILE__, 2444, __PRETTY_FUNCTION__).debug(" categories 0x%.8x", c);
0
2445#endif-
2446 for (i = 0; i < r.size(); i++)
i < r.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
2447 qDebug(" 0x%.4x through 0x%.4x", r[i].from, r[i].from + r[i].len - 1);
never executed: QMessageLogger(__FILE__, 2447, __PRETTY_FUNCTION__).debug(" 0x%.4x through 0x%.4x", r[i].from, r[i].from + r[i].len - 1);
0
2448}
never executed: end of block
0
2449#endif-
2450#endif-
2451-
2452QRegExpEngine::Box::Box(QRegExpEngine *engine)-
2453 : eng(engine), skipanchors(0)-
2454#ifndef QT_NO_REGEXP_OPTIM-
2455 , earlyStart(0), lateStart(0), maxl(0)-
2456#endif-
2457{-
2458#ifndef QT_NO_REGEXP_OPTIM-
2459 occ1.fill(NoOccurrence, NumBadChars);-
2460#endif-
2461 minl = 0;-
2462}
executed 32429 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
32429
2463-
2464QRegExpEngine::Box &QRegExpEngine::Box::operator=(const Box &b)-
2465{-
2466 eng = b.eng;-
2467 ls = b.ls;-
2468 rs = b.rs;-
2469 lanchors = b.lanchors;-
2470 ranchors = b.ranchors;-
2471 skipanchors = b.skipanchors;-
2472#ifndef QT_NO_REGEXP_OPTIM-
2473 earlyStart = b.earlyStart;-
2474 lateStart = b.lateStart;-
2475 str = b.str;-
2476 leftStr = b.leftStr;-
2477 rightStr = b.rightStr;-
2478 maxl = b.maxl;-
2479 occ1 = b.occ1;-
2480#endif-
2481 minl = b.minl;-
2482 return *this;
executed 2978 times by 98 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2978
2483}-
2484-
2485void QRegExpEngine::Box::set(QChar ch)-
2486{-
2487 ls.resize(1);-
2488 ls[0] = eng->createState(ch);-
2489 rs = ls;-
2490#ifndef QT_NO_REGEXP_OPTIM-
2491 str = ch;-
2492 leftStr = ch;-
2493 rightStr = ch;-
2494 maxl = 1;-
2495 occ1[BadChar(ch)] = 0;-
2496#endif-
2497 minl = 1;-
2498}
executed 22721 times by 82 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
22721
2499-
2500void QRegExpEngine::Box::set(const QRegExpCharClass &cc)-
2501{-
2502 ls.resize(1);-
2503 ls[0] = eng->createState(cc);-
2504 rs = ls;-
2505#ifndef QT_NO_REGEXP_OPTIM-
2506 maxl = 1;-
2507 occ1 = cc.firstOccurrence();-
2508#endif-
2509 minl = 1;-
2510}
executed 6409 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6409
2511-
2512#ifndef QT_NO_REGEXP_BACKREF-
2513void QRegExpEngine::Box::set(int bref)-
2514{-
2515 ls.resize(1);-
2516 ls[0] = eng->createState(bref);-
2517 rs = ls;-
2518 if (bref >= 1 && bref <= MaxBackRefs)
bref >= 1Description
TRUEevaluated 190 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
bref <= MaxBackRefsDescription
TRUEevaluated 190 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-190
2519 skipanchors = Anchor_BackRef0Empty << bref;
executed 190 times by 1 test: skipanchors = Anchor_BackRef0Empty << bref;
Executed by:
  • tst_QRegExp
190
2520#ifndef QT_NO_REGEXP_OPTIM-
2521 maxl = InftyLen;-
2522#endif-
2523 minl = 0;-
2524}
executed 190 times by 1 test: end of block
Executed by:
  • tst_QRegExp
190
2525#endif-
2526-
2527void QRegExpEngine::Box::cat(const Box &b)-
2528{-
2529 eng->addCatTransitions(rs, b.ls);-
2530 addAnchorsToEngine(b);-
2531 if (minl == 0) {
minl == 0Description
TRUEevaluated 2861 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 27402 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
2861-27402
2532 lanchors.unite(b.lanchors);-
2533 if (skipanchors != 0) {
skipanchors != 0Description
TRUEevaluated 266 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
FALSEevaluated 2595 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
266-2595
2534 for (int i = 0; i < b.ls.size(); i++) {
i < b.ls.size()Description
TRUEevaluated 409 times by 28 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • ...
FALSEevaluated 266 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
266-409
2535 int a = eng->anchorConcatenation(lanchors.value(b.ls.at(i), 0), skipanchors);-
2536 lanchors.insert(b.ls.at(i), a);-
2537 }
executed 409 times by 28 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • ...
409
2538 }
executed 266 times by 29 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
266
2539 mergeInto(&ls, b.ls);-
2540 }
executed 2861 times by 98 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2861
2541 if (b.minl == 0) {
b.minl == 0Description
TRUEevaluated 4854 times by 102 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 25409 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
4854-25409
2542 ranchors.unite(b.ranchors);-
2543 if (b.skipanchors != 0) {
b.skipanchors != 0Description
TRUEevaluated 405 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 4449 times by 102 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
405-4449
2544 for (int i = 0; i < rs.size(); i++) {
i < rs.size()Description
TRUEevaluated 1028 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 405 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
405-1028
2545 int a = eng->anchorConcatenation(ranchors.value(rs.at(i), 0), b.skipanchors);-
2546 ranchors.insert(rs.at(i), a);-
2547 }
executed 1028 times by 18 tests: end of block
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1028
2548 }
executed 405 times by 18 tests: end of block
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
405
2549 mergeInto(&rs, b.rs);-
2550 } else {
executed 4854 times by 102 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
4854
2551 ranchors = b.ranchors;-
2552 rs = b.rs;-
2553 }
executed 25409 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
25409
2554-
2555#ifndef QT_NO_REGEXP_OPTIM-
2556 if (maxl != InftyLen) {
maxl != InftyLenDescription
TRUEevaluated 26998 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 3265 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
3265-26998
2557 if (rightStr.length() + b.leftStr.length() >
rightStr.lengt....str.length())Description
TRUEevaluated 19410 times by 56 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMimeDatabase
  • ...
FALSEevaluated 7588 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
7588-19410
2558 qMax(str.length(), b.str.length())) {
rightStr.lengt....str.length())Description
TRUEevaluated 19410 times by 56 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMimeDatabase
  • ...
FALSEevaluated 7588 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
7588-19410
2559 earlyStart = minl - rightStr.length();-
2560 lateStart = maxl - rightStr.length();-
2561 str = rightStr + b.leftStr;-
2562 } else if (b.str.length() > str.length()) {
executed 19410 times by 56 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMimeDatabase
  • ...
b.str.length() > str.length()Description
TRUEevaluated 946 times by 69 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 6642 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
946-19410
2563 earlyStart = minl + b.earlyStart;-
2564 lateStart = maxl + b.lateStart;-
2565 str = b.str;-
2566 }
executed 946 times by 69 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
946
2567 }
executed 26998 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
26998
2568-
2569 if (leftStr.length() == maxl)
leftStr.length() == maxlDescription
TRUEevaluated 22890 times by 99 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 7373 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
7373-22890
2570 leftStr += b.leftStr;
executed 22890 times by 99 tests: leftStr += b.leftStr;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
22890
2571-
2572 if (b.rightStr.length() == b.maxl) {
b.rightStr.length() == b.maxlDescription
TRUEevaluated 21808 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • ...
FALSEevaluated 8455 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
8455-21808
2573 rightStr += b.rightStr;-
2574 } else {
executed 21808 times by 90 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • ...
21808
2575 rightStr = b.rightStr;-
2576 }
executed 8455 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
8455
2577-
2578 if (maxl == InftyLen || b.maxl == InftyLen) {
maxl == InftyLenDescription
TRUEevaluated 3265 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 26998 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
b.maxl == InftyLenDescription
TRUEevaluated 3533 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 23465 times by 89 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
3265-26998
2579 maxl = InftyLen;-
2580 } else {
executed 6798 times by 97 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
6798
2581 maxl += b.maxl;-
2582 }
executed 23465 times by 89 tests: end of block
Executed by:
  • tst_Collections
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
23465
2583-
2584 for (int i = 0; i < NumBadChars; i++) {
i < NumBadCharsDescription
TRUEevaluated 1936832 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 30263 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
30263-1936832
2585 if (b.occ1.at(i) != NoOccurrence && minl + b.occ1.at(i) < occ1.at(i))
b.occ1.at(i) != NoOccurrenceDescription
TRUEevaluated 363402 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 1573430 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
minl + b.occ1....) < occ1.at(i)Description
TRUEevaluated 227116 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 136286 times by 80 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
136286-1573430
2586 occ1[i] = minl + b.occ1.at(i);
executed 227116 times by 110 tests: occ1[i] = minl + b.occ1.at(i);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
227116
2587 }
executed 1936832 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1936832
2588#endif-
2589-
2590 minl += b.minl;-
2591 if (minl == 0)
minl == 0Description
TRUEevaluated 2323 times by 93 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 27940 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
2323-27940
2592 skipanchors = eng->anchorConcatenation(skipanchors, b.skipanchors);
executed 2323 times by 93 tests: skipanchors = eng->anchorConcatenation(skipanchors, b.skipanchors);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2323
2593 else-
2594 skipanchors = 0;
executed 27940 times by 116 tests: skipanchors = 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
27940
2595}-
2596-
2597void QRegExpEngine::Box::orx(const Box &b)-
2598{-
2599 mergeInto(&ls, b.ls);-
2600 lanchors.unite(b.lanchors);-
2601 mergeInto(&rs, b.rs);-
2602 ranchors.unite(b.ranchors);-
2603-
2604 if (b.minl == 0) {
b.minl == 0Description
TRUEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
FALSEevaluated 403 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
63-403
2605 if (minl == 0)
minl == 0Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
23-40
2606 skipanchors = eng->anchorAlternation(skipanchors, b.skipanchors);
executed 40 times by 1 test: skipanchors = eng->anchorAlternation(skipanchors, b.skipanchors);
Executed by:
  • tst_QRegExp
40
2607 else-
2608 skipanchors = b.skipanchors;
executed 23 times by 4 tests: skipanchors = b.skipanchors;
Executed by:
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
23
2609 }-
2610-
2611#ifndef QT_NO_REGEXP_OPTIM-
2612 for (int i = 0; i < NumBadChars; i++) {
i < NumBadCharsDescription
TRUEevaluated 29824 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 466 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466-29824
2613 if (occ1.at(i) > b.occ1.at(i))
occ1.at(i) > b.occ1.at(i)Description
TRUEevaluated 1132 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 28692 times by 10 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
1132-28692
2614 occ1[i] = b.occ1.at(i);
executed 1132 times by 11 tests: occ1[i] = b.occ1.at(i);
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
1132
2615 }
executed 29824 times by 11 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
29824
2616 earlyStart = 0;-
2617 lateStart = 0;-
2618 str = QString();-
2619 leftStr = QString();-
2620 rightStr = QString();-
2621 if (b.maxl > maxl)
b.maxl > maxlDescription
TRUEevaluated 210 times by 4 tests
Evaluated by:
  • tst_QFtp
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
FALSEevaluated 256 times by 9 tests
Evaluated by:
  • tst_QDataStream
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
210-256
2622 maxl = b.maxl;
executed 210 times by 4 tests: maxl = b.maxl;
Executed by:
  • tst_QFtp
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
210
2623#endif-
2624 if (b.minl < minl)
b.minl < minlDescription
TRUEevaluated 43 times by 8 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 423 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
43-423
2625 minl = b.minl;
executed 43 times by 8 tests: minl = b.minl;
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
43
2626}
executed 466 times by 11 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466
2627-
2628void QRegExpEngine::Box::plus(int atom)-
2629{-
2630#ifndef QT_NO_REGEXP_CAPTURE-
2631 eng->addPlusTransitions(rs, ls, atom);-
2632#else-
2633 Q_UNUSED(atom);-
2634 eng->addCatTransitions(rs, ls);-
2635#endif-
2636 addAnchorsToEngine(*this);-
2637#ifndef QT_NO_REGEXP_OPTIM-
2638 maxl = InftyLen;-
2639#endif-
2640}
executed 2194 times by 97 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
2194
2641-
2642void QRegExpEngine::Box::opt()-
2643{-
2644#ifndef QT_NO_REGEXP_OPTIM-
2645 earlyStart = 0;-
2646 lateStart = 0;-
2647 str = QString();-
2648 leftStr = QString();-
2649 rightStr = QString();-
2650#endif-
2651 skipanchors = 0;-
2652 minl = 0;-
2653}
executed 2196 times by 93 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2196
2654-
2655void QRegExpEngine::Box::catAnchor(int a)-
2656{-
2657 if (a != 0) {
a != 0Description
TRUEevaluated 365 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
FALSEnever evaluated
0-365
2658 for (int i = 0; i < rs.size(); i++) {
i < rs.size()Description
TRUEnever evaluated
FALSEevaluated 365 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
0-365
2659 a = eng->anchorConcatenation(ranchors.value(rs.at(i), 0), a);-
2660 ranchors.insert(rs.at(i), a);-
2661 }
never executed: end of block
0
2662 if (minl == 0)
minl == 0Description
TRUEevaluated 365 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
FALSEnever evaluated
0-365
2663 skipanchors = eng->anchorConcatenation(skipanchors, a);
executed 365 times by 30 tests: skipanchors = eng->anchorConcatenation(skipanchors, a);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
365
2664 }
executed 365 times by 30 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
365
2665}
executed 365 times by 30 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
365
2666-
2667#ifndef QT_NO_REGEXP_OPTIM-
2668void QRegExpEngine::Box::setupHeuristics()-
2669{-
2670 eng->goodEarlyStart = earlyStart;-
2671 eng->goodLateStart = lateStart;-
2672 eng->goodStr = eng->cs ? str : str.toLower();
eng->csDescription
TRUEevaluated 1411 times by 80 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 267 times by 64 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • ...
267-1411
2673-
2674 eng->minl = minl;-
2675 if (eng->cs) {
eng->csDescription
TRUEevaluated 1411 times by 80 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 267 times by 64 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • ...
267-1411
2676 /*-
2677 A regular expression such as 112|1 has occ1['2'] = 2 and minl =-
2678 1 at this point. An entry of occ1 has to be at most minl or-
2679 infinity for the rest of the algorithm to go well.-
2680-
2681 We waited until here before normalizing these cases (instead of-
2682 doing it in Box::orx()) because sometimes things improve by-
2683 themselves. Consider for example (112|1)34.-
2684 */-
2685 for (int i = 0; i < NumBadChars; i++) {
i < NumBadCharsDescription
TRUEevaluated 90304 times by 80 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 1411 times by 80 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1411-90304
2686 if (occ1.at(i) != NoOccurrence && occ1.at(i) >= minl)
occ1.at(i) != NoOccurrenceDescription
TRUEevaluated 27941 times by 74 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
FALSEevaluated 62363 times by 58 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • ...
occ1.at(i) >= minlDescription
TRUEevaluated 1832 times by 12 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QItemModel
  • tst_QLibrary
  • tst_QMetaType
  • tst_QObject
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_qmakelib
FALSEevaluated 26109 times by 71 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • ...
1832-62363
2687 occ1[i] = minl;
executed 1832 times by 12 tests: occ1[i] = minl;
Executed by:
  • tst_QDirIterator
  • tst_QItemModel
  • tst_QLibrary
  • tst_QMetaType
  • tst_QObject
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_qmakelib
1832
2688 }
executed 90304 times by 80 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
90304
2689 eng->occ1 = occ1;-
2690 } else {
executed 1411 times by 80 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
1411
2691 eng->occ1.fill(0, NumBadChars);-
2692 }
executed 267 times by 64 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • ...
267
2693-
2694 eng->heuristicallyChooseHeuristic();-
2695}
executed 1678 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1678
2696#endif-
2697-
2698#if defined(QT_DEBUG)-
2699void QRegExpEngine::Box::dump() const-
2700{-
2701 int i;-
2702 qDebug("Box of at least %d character%s", minl, minl == 1 ? "" : "s");-
2703 qDebug(" Left states:");-
2704 for (i = 0; i < ls.size(); i++) {
i < ls.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
2705 if (lanchors.value(ls[i], 0) == 0)
lanchors.value(ls[i], 0) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2706 qDebug(" %d", ls[i]);
never executed: QMessageLogger(__FILE__, 2706, __PRETTY_FUNCTION__).debug(" %d", ls[i]);
0
2707 else-
2708 qDebug(" %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]]);
never executed: QMessageLogger(__FILE__, 2708, __PRETTY_FUNCTION__).debug(" %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]]);
0
2709 }-
2710 qDebug(" Right states:");-
2711 for (i = 0; i < rs.size(); i++) {
i < rs.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
2712 if (ranchors.value(rs[i], 0) == 0)
ranchors.value(rs[i], 0) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2713 qDebug(" %d", rs[i]);
never executed: QMessageLogger(__FILE__, 2713, __PRETTY_FUNCTION__).debug(" %d", rs[i]);
0
2714 else-
2715 qDebug(" %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]]);
never executed: QMessageLogger(__FILE__, 2715, __PRETTY_FUNCTION__).debug(" %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]]);
0
2716 }-
2717 qDebug(" Skip anchors: 0x%.8x", skipanchors);-
2718}
never executed: end of block
0
2719#endif-
2720-
2721void QRegExpEngine::Box::addAnchorsToEngine(const Box &to) const-
2722{-
2723 for (int i = 0; i < to.ls.size(); i++) {
i < to.ls.size()Description
TRUEevaluated 33388 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 32457 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
32457-33388
2724 for (int j = 0; j < rs.size(); j++) {
j < rs.size()Description
TRUEevaluated 36738 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 33388 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
33388-36738
2725 int a = eng->anchorConcatenation(ranchors.value(rs.at(j), 0),-
2726 to.lanchors.value(to.ls.at(i), 0));-
2727 eng->addAnchors(rs[j], to.ls[i], a);-
2728 }
executed 36738 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
36738
2729 }
executed 33388 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
33388
2730}
executed 32457 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
32457
2731-
2732#ifndef QT_NO_REGEXP_CCLASS-
2733// fast lookup hash for xml schema extensions-
2734// sorted by name for b-search-
2735static const struct CategoriesRangeMapEntry {-
2736 const char name[40];-
2737 uint first, second;-
2738} categoriesRangeMap[] = {-
2739 { "AegeanNumbers", 0x10100, 0x1013F },-
2740 { "AlphabeticPresentationForms", 0xFB00, 0xFB4F },-
2741 { "AncientGreekMusicalNotation", 0x1D200, 0x1D24F },-
2742 { "AncientGreekNumbers", 0x10140, 0x1018F },-
2743 { "Arabic", 0x0600, 0x06FF },-
2744 { "ArabicPresentationForms-A", 0xFB50, 0xFDFF },-
2745 { "ArabicPresentationForms-B", 0xFE70, 0xFEFF },-
2746 { "ArabicSupplement", 0x0750, 0x077F },-
2747 { "Armenian", 0x0530, 0x058F },-
2748 { "Arrows", 0x2190, 0x21FF },-
2749 { "BasicLatin", 0x0000, 0x007F },-
2750 { "Bengali", 0x0980, 0x09FF },-
2751 { "BlockElements", 0x2580, 0x259F },-
2752 { "Bopomofo", 0x3100, 0x312F },-
2753 { "BopomofoExtended", 0x31A0, 0x31BF },-
2754 { "BoxDrawing", 0x2500, 0x257F },-
2755 { "BraillePatterns", 0x2800, 0x28FF },-
2756 { "Buginese", 0x1A00, 0x1A1F },-
2757 { "Buhid", 0x1740, 0x175F },-
2758 { "ByzantineMusicalSymbols", 0x1D000, 0x1D0FF },-
2759 { "CJKCompatibility", 0x3300, 0x33FF },-
2760 { "CJKCompatibilityForms", 0xFE30, 0xFE4F },-
2761 { "CJKCompatibilityIdeographs", 0xF900, 0xFAFF },-
2762 { "CJKCompatibilityIdeographsSupplement", 0x2F800, 0x2FA1F },-
2763 { "CJKRadicalsSupplement", 0x2E80, 0x2EFF },-
2764 { "CJKStrokes", 0x31C0, 0x31EF },-
2765 { "CJKSymbolsandPunctuation", 0x3000, 0x303F },-
2766 { "CJKUnifiedIdeographs", 0x4E00, 0x9FFF },-
2767 { "CJKUnifiedIdeographsExtensionA", 0x3400, 0x4DB5 },-
2768 { "CJKUnifiedIdeographsExtensionB", 0x20000, 0x2A6DF },-
2769 { "Cherokee", 0x13A0, 0x13FF },-
2770 { "CombiningDiacriticalMarks", 0x0300, 0x036F },-
2771 { "CombiningDiacriticalMarksSupplement", 0x1DC0, 0x1DFF },-
2772 { "CombiningHalfMarks", 0xFE20, 0xFE2F },-
2773 { "CombiningMarksforSymbols", 0x20D0, 0x20FF },-
2774 { "ControlPictures", 0x2400, 0x243F },-
2775 { "Coptic", 0x2C80, 0x2CFF },-
2776 { "CurrencySymbols", 0x20A0, 0x20CF },-
2777 { "CypriotSyllabary", 0x10800, 0x1083F },-
2778 { "Cyrillic", 0x0400, 0x04FF },-
2779 { "CyrillicSupplement", 0x0500, 0x052F },-
2780 { "Deseret", 0x10400, 0x1044F },-
2781 { "Devanagari", 0x0900, 0x097F },-
2782 { "Dingbats", 0x2700, 0x27BF },-
2783 { "EnclosedAlphanumerics", 0x2460, 0x24FF },-
2784 { "EnclosedCJKLettersandMonths", 0x3200, 0x32FF },-
2785 { "Ethiopic", 0x1200, 0x137F },-
2786 { "EthiopicExtended", 0x2D80, 0x2DDF },-
2787 { "EthiopicSupplement", 0x1380, 0x139F },-
2788 { "GeneralPunctuation", 0x2000, 0x206F },-
2789 { "GeometricShapes", 0x25A0, 0x25FF },-
2790 { "Georgian", 0x10A0, 0x10FF },-
2791 { "GeorgianSupplement", 0x2D00, 0x2D2F },-
2792 { "Glagolitic", 0x2C00, 0x2C5F },-
2793 { "Gothic", 0x10330, 0x1034F },-
2794 { "Greek", 0x0370, 0x03FF },-
2795 { "GreekExtended", 0x1F00, 0x1FFF },-
2796 { "Gujarati", 0x0A80, 0x0AFF },-
2797 { "Gurmukhi", 0x0A00, 0x0A7F },-
2798 { "HalfwidthandFullwidthForms", 0xFF00, 0xFFEF },-
2799 { "HangulCompatibilityJamo", 0x3130, 0x318F },-
2800 { "HangulJamo", 0x1100, 0x11FF },-
2801 { "HangulSyllables", 0xAC00, 0xD7A3 },-
2802 { "Hanunoo", 0x1720, 0x173F },-
2803 { "Hebrew", 0x0590, 0x05FF },-
2804 { "Hiragana", 0x3040, 0x309F },-
2805 { "IPAExtensions", 0x0250, 0x02AF },-
2806 { "IdeographicDescriptionCharacters", 0x2FF0, 0x2FFF },-
2807 { "Kanbun", 0x3190, 0x319F },-
2808 { "KangxiRadicals", 0x2F00, 0x2FDF },-
2809 { "Kannada", 0x0C80, 0x0CFF },-
2810 { "Katakana", 0x30A0, 0x30FF },-
2811 { "KatakanaPhoneticExtensions", 0x31F0, 0x31FF },-
2812 { "Kharoshthi", 0x10A00, 0x10A5F },-
2813 { "Khmer", 0x1780, 0x17FF },-
2814 { "KhmerSymbols", 0x19E0, 0x19FF },-
2815 { "Lao", 0x0E80, 0x0EFF },-
2816 { "Latin-1Supplement", 0x0080, 0x00FF },-
2817 { "LatinExtended-A", 0x0100, 0x017F },-
2818 { "LatinExtended-B", 0x0180, 0x024F },-
2819 { "LatinExtendedAdditional", 0x1E00, 0x1EFF },-
2820 { "LetterlikeSymbols", 0x2100, 0x214F },-
2821 { "Limbu", 0x1900, 0x194F },-
2822 { "LinearBIdeograms", 0x10080, 0x100FF },-
2823 { "LinearBSyllabary", 0x10000, 0x1007F },-
2824 { "Malayalam", 0x0D00, 0x0D7F },-
2825 { "MathematicalAlphanumericSymbols", 0x1D400, 0x1D7FF },-
2826 { "MathematicalOperators", 0x2200, 0x22FF },-
2827 { "MiscellaneousMathematicalSymbols-A", 0x27C0, 0x27EF },-
2828 { "MiscellaneousMathematicalSymbols-B", 0x2980, 0x29FF },-
2829 { "MiscellaneousSymbols", 0x2600, 0x26FF },-
2830 { "MiscellaneousSymbolsandArrows", 0x2B00, 0x2BFF },-
2831 { "MiscellaneousTechnical", 0x2300, 0x23FF },-
2832 { "ModifierToneLetters", 0xA700, 0xA71F },-
2833 { "Mongolian", 0x1800, 0x18AF },-
2834 { "MusicalSymbols", 0x1D100, 0x1D1FF },-
2835 { "Myanmar", 0x1000, 0x109F },-
2836 { "NewTaiLue", 0x1980, 0x19DF },-
2837 { "NumberForms", 0x2150, 0x218F },-
2838 { "Ogham", 0x1680, 0x169F },-
2839 { "OldItalic", 0x10300, 0x1032F },-
2840 { "OldPersian", 0x103A0, 0x103DF },-
2841 { "OpticalCharacterRecognition", 0x2440, 0x245F },-
2842 { "Oriya", 0x0B00, 0x0B7F },-
2843 { "Osmanya", 0x10480, 0x104AF },-
2844 { "PhoneticExtensions", 0x1D00, 0x1D7F },-
2845 { "PhoneticExtensionsSupplement", 0x1D80, 0x1DBF },-
2846 { "PrivateUse", 0xE000, 0xF8FF },-
2847 { "Runic", 0x16A0, 0x16FF },-
2848 { "Shavian", 0x10450, 0x1047F },-
2849 { "Sinhala", 0x0D80, 0x0DFF },-
2850 { "SmallFormVariants", 0xFE50, 0xFE6F },-
2851 { "SpacingModifierLetters", 0x02B0, 0x02FF },-
2852 { "Specials", 0xFFF0, 0xFFFF },-
2853 { "SuperscriptsandSubscripts", 0x2070, 0x209F },-
2854 { "SupplementalArrows-A", 0x27F0, 0x27FF },-
2855 { "SupplementalArrows-B", 0x2900, 0x297F },-
2856 { "SupplementalMathematicalOperators", 0x2A00, 0x2AFF },-
2857 { "SupplementalPunctuation", 0x2E00, 0x2E7F },-
2858 { "SupplementaryPrivateUseArea-A", 0xF0000, 0xFFFFF },-
2859 { "SupplementaryPrivateUseArea-B", 0x100000, 0x10FFFF },-
2860 { "SylotiNagri", 0xA800, 0xA82F },-
2861 { "Syriac", 0x0700, 0x074F },-
2862 { "Tagalog", 0x1700, 0x171F },-
2863 { "Tagbanwa", 0x1760, 0x177F },-
2864 { "Tags", 0xE0000, 0xE007F },-
2865 { "TaiLe", 0x1950, 0x197F },-
2866 { "TaiXuanJingSymbols", 0x1D300, 0x1D35F },-
2867 { "Tamil", 0x0B80, 0x0BFF },-
2868 { "Telugu", 0x0C00, 0x0C7F },-
2869 { "Thaana", 0x0780, 0x07BF },-
2870 { "Thai", 0x0E00, 0x0E7F },-
2871 { "Tibetan", 0x0F00, 0x0FFF },-
2872 { "Tifinagh", 0x2D30, 0x2D7F },-
2873 { "Ugaritic", 0x10380, 0x1039F },-
2874 { "UnifiedCanadianAboriginalSyllabics", 0x1400, 0x167F },-
2875 { "VariationSelectors", 0xFE00, 0xFE0F },-
2876 { "VariationSelectorsSupplement", 0xE0100, 0xE01EF },-
2877 { "VerticalForms", 0xFE10, 0xFE1F },-
2878 { "YiRadicals", 0xA490, 0xA4CF },-
2879 { "YiSyllables", 0xA000, 0xA48F },-
2880 { "YijingHexagramSymbols", 0x4DC0, 0x4DFF }-
2881};-
2882-
2883inline bool operator<(const CategoriesRangeMapEntry &entry1, const CategoriesRangeMapEntry &entry2)-
2884{
never executed: return qstrcmp(entry1.name, entry2.name) < 0;
return qstrcmp(entry1.name, entry2.name) < 0; }
never executed: return qstrcmp(entry1.name, entry2.name) < 0;
0
2885inline bool operator<(const char *name, const CategoriesRangeMapEntry &entry)-
2886{
never executed: return qstrcmp(name, entry.name) < 0;
return qstrcmp(name, entry.name) < 0; }
never executed: return qstrcmp(name, entry.name) < 0;
0
2887inline bool operator<(const CategoriesRangeMapEntry &entry, const char *name)-
2888{
never executed: return qstrcmp(entry.name, name) < 0;
return qstrcmp(entry.name, name) < 0; }
never executed: return qstrcmp(entry.name, name) < 0;
0
2889#endif // QT_NO_REGEXP_CCLASS-
2890-
2891int QRegExpEngine::getChar()-
2892{-
2893 return (yyPos == yyLen) ? EOS : yyIn[yyPos++].unicode();
executed 70631 times by 116 tests: return (yyPos == yyLen) ? EOS : yyIn[yyPos++].unicode();
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
70631
2894}-
2895-
2896int QRegExpEngine::getEscape()-
2897{-
2898#ifndef QT_NO_REGEXP_ESCAPE-
2899 const char tab[] = "afnrtv"; // no b, as \b means word boundary-
2900 const char backTab[] = "\a\f\n\r\t\v";-
2901 ushort low;-
2902 int i;-
2903#endif-
2904 ushort val;-
2905 int prevCh = yyCh;-
2906-
2907 if (prevCh == EOS) {
prevCh == EOSDescription
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 7706 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
4-7706
2908 error(RXERR_END);-
2909 return Tok_Char | '\\';
executed 4 times by 3 tests: return Tok_Char | '\\';
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
4
2910 }-
2911 yyCh = getChar();-
2912#ifndef QT_NO_REGEXP_ESCAPE-
2913 if ((prevCh & ~0xff) == 0) {
(prevCh & ~0xff) == 0Description
TRUEevaluated 7706 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
FALSEnever evaluated
0-7706
2914 const char *p = strchr(tab, prevCh);-
2915 if (p != 0)
p != 0Description
TRUEevaluated 940 times by 10 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
FALSEevaluated 6766 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
940-6766
2916 return Tok_Char | backTab[p - tab];
executed 940 times by 10 tests: return Tok_Char | backTab[p - tab];
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
940
2917 }
executed 6766 times by 67 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
6766
2918#endif-
2919-
2920 switch (prevCh) {-
2921#ifndef QT_NO_REGEXP_ESCAPE-
2922 case '0':
executed 1330 times by 1 test: case '0':
Executed by:
  • tst_QRegExp
1330
2923 val = 0;-
2924 for (i = 0; i < 3; i++) {
i < 3Description
TRUEevaluated 3990 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-3990
2925 if (yyCh >= '0' && yyCh <= '7')
yyCh >= '0'Description
TRUEevaluated 3110 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 880 times by 1 test
Evaluated by:
  • tst_QRegExp
yyCh <= '7'Description
TRUEevaluated 2660 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 450 times by 1 test
Evaluated by:
  • tst_QRegExp
450-3110
2926 val = (val << 3) | (yyCh - '0');
executed 2660 times by 1 test: val = (val << 3) | (yyCh - '0');
Executed by:
  • tst_QRegExp
2660
2927 else-
2928 break;
executed 1330 times by 1 test: break;
Executed by:
  • tst_QRegExp
1330
2929 yyCh = getChar();-
2930 }
executed 2660 times by 1 test: end of block
Executed by:
  • tst_QRegExp
2660
2931 if ((val & ~0377) != 0)
(val & ~0377) != 0Description
TRUEnever evaluated
FALSEevaluated 1330 times by 1 test
Evaluated by:
  • tst_QRegExp
0-1330
2932 error(RXERR_OCTAL);
never executed: error("invalid octal value");
0
2933 return Tok_Char | val;
executed 1330 times by 1 test: return Tok_Char | val;
Executed by:
  • tst_QRegExp
1330
2934#endif-
2935#ifndef QT_NO_REGEXP_ESCAPE-
2936 case 'B':
never executed: case 'B':
0
2937 return Tok_NonWord;
never executed: return Tok_NonWord;
0
2938#endif-
2939#ifndef QT_NO_REGEXP_CCLASS-
2940 case 'D':
executed 1 time by 1 test: case 'D':
Executed by:
  • tst_QRegExp
1
2941 // see QChar::isDigit()-
2942 yyCharClass->addCategories(uint(-1) ^ FLAG(QChar::Number_DecimalDigit));-
2943 return Tok_CharClass;
executed 1 time by 1 test: return Tok_CharClass;
Executed by:
  • tst_QRegExp
1
2944 case 'S':
executed 19 times by 4 tests: case 'S':
Executed by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
19
2945 // see QChar::isSpace()-
2946 yyCharClass->addCategories(uint(-1) ^ (FLAG(QChar::Separator_Space) |-
2947 FLAG(QChar::Separator_Line) |-
2948 FLAG(QChar::Separator_Paragraph) |-
2949 FLAG(QChar::Other_Control)));-
2950 yyCharClass->addRange(0x0000, 0x0008);-
2951 yyCharClass->addRange(0x000e, 0x001f);-
2952 yyCharClass->addRange(0x007f, 0x0084);-
2953 yyCharClass->addRange(0x0086, 0x009f);-
2954 return Tok_CharClass;
executed 19 times by 4 tests: return Tok_CharClass;
Executed by:
  • tst_QFtp
  • tst_QLibrary
  • tst_QRegExp
  • tst_QRegExpValidator
19
2955 case 'W':
executed 2 times by 2 tests: case 'W':
Executed by:
  • tst_QRegExp
  • tst_QString
2
2956 // see QChar::isLetterOrNumber() and QChar::isMark()-
2957 yyCharClass->addCategories(uint(-1) ^ (FLAG(QChar::Mark_NonSpacing) |-
2958 FLAG(QChar::Mark_SpacingCombining) |-
2959 FLAG(QChar::Mark_Enclosing) |-
2960 FLAG(QChar::Number_DecimalDigit) |-
2961 FLAG(QChar::Number_Letter) |-
2962 FLAG(QChar::Number_Other) |-
2963 FLAG(QChar::Letter_Uppercase) |-
2964 FLAG(QChar::Letter_Lowercase) |-
2965 FLAG(QChar::Letter_Titlecase) |-
2966 FLAG(QChar::Letter_Modifier) |-
2967 FLAG(QChar::Letter_Other) |-
2968 FLAG(QChar::Punctuation_Connector)));-
2969 yyCharClass->addRange(0x203f, 0x2040);-
2970 yyCharClass->addSingleton(0x2040);-
2971 yyCharClass->addSingleton(0x2054);-
2972 yyCharClass->addSingleton(0x30fb);-
2973 yyCharClass->addRange(0xfe33, 0xfe34);-
2974 yyCharClass->addRange(0xfe4d, 0xfe4f);-
2975 yyCharClass->addSingleton(0xff3f);-
2976 yyCharClass->addSingleton(0xff65);-
2977 return Tok_CharClass;
executed 2 times by 2 tests: return Tok_CharClass;
Executed by:
  • tst_QRegExp
  • tst_QString
2
2978#endif-
2979#ifndef QT_NO_REGEXP_ESCAPE-
2980 case 'b':
executed 2 times by 2 tests: case 'b':
Executed by:
  • tst_QString
  • tst_qmakelib
2
2981 return Tok_Word;
executed 2 times by 2 tests: return Tok_Word;
Executed by:
  • tst_QString
  • tst_qmakelib
2
2982#endif-
2983#ifndef QT_NO_REGEXP_CCLASS-
2984 case 'd':
executed 229 times by 13 tests: case 'd':
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTime
229
2985 // see QChar::isDigit()-
2986 yyCharClass->addCategories(FLAG(QChar::Number_DecimalDigit));-
2987 return Tok_CharClass;
executed 229 times by 13 tests: return Tok_CharClass;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTime
229
2988 case 's':
executed 43 times by 8 tests: case 's':
Executed by:
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QString
  • tst_QTextDocumentFragment
43
2989 // see QChar::isSpace()-
2990 yyCharClass->addCategories(FLAG(QChar::Separator_Space) |-
2991 FLAG(QChar::Separator_Line) |-
2992 FLAG(QChar::Separator_Paragraph));-
2993 yyCharClass->addRange(0x0009, 0x000d);-
2994 yyCharClass->addSingleton(0x0085);-
2995 return Tok_CharClass;
executed 43 times by 8 tests: return Tok_CharClass;
Executed by:
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QString
  • tst_QTextDocumentFragment
43
2996 case 'w':
executed 14 times by 4 tests: case 'w':
Executed by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslKey
  • tst_QTextEdit
14
2997 // see QChar::isLetterOrNumber() and QChar::isMark()-
2998 yyCharClass->addCategories(FLAG(QChar::Mark_NonSpacing) |-
2999 FLAG(QChar::Mark_SpacingCombining) |-
3000 FLAG(QChar::Mark_Enclosing) |-
3001 FLAG(QChar::Number_DecimalDigit) |-
3002 FLAG(QChar::Number_Letter) |-
3003 FLAG(QChar::Number_Other) |-
3004 FLAG(QChar::Letter_Uppercase) |-
3005 FLAG(QChar::Letter_Lowercase) |-
3006 FLAG(QChar::Letter_Titlecase) |-
3007 FLAG(QChar::Letter_Modifier) |-
3008 FLAG(QChar::Letter_Other));-
3009 yyCharClass->addSingleton(0x005f); // '_'-
3010 return Tok_CharClass;
executed 14 times by 4 tests: return Tok_CharClass;
Executed by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslKey
  • tst_QTextEdit
14
3011 case 'I':
executed 2 times by 1 test: case 'I':
Executed by:
  • tst_QRegExp
2
3012 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3013 yyCharClass->setNegative(!yyCharClass->negative());-
3014 // fall through-
3015 } else {
never executed: end of block
0
3016 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3017 }-
3018 case 'i':
code before this statement never executed: case 'i':
executed 2 times by 1 test: case 'i':
Executed by:
  • tst_QRegExp
0-2
3019 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3020 yyCharClass->addCategories(FLAG(QChar::Mark_NonSpacing) |-
3021 FLAG(QChar::Mark_SpacingCombining) |-
3022 FLAG(QChar::Mark_Enclosing) |-
3023 FLAG(QChar::Number_DecimalDigit) |-
3024 FLAG(QChar::Number_Letter) |-
3025 FLAG(QChar::Number_Other) |-
3026 FLAG(QChar::Letter_Uppercase) |-
3027 FLAG(QChar::Letter_Lowercase) |-
3028 FLAG(QChar::Letter_Titlecase) |-
3029 FLAG(QChar::Letter_Modifier) |-
3030 FLAG(QChar::Letter_Other));-
3031 yyCharClass->addSingleton(0x003a); // ':'-
3032 yyCharClass->addSingleton(0x005f); // '_'-
3033 yyCharClass->addRange(0x0041, 0x005a); // [A-Z]-
3034 yyCharClass->addRange(0x0061, 0x007a); // [a-z]-
3035 yyCharClass->addRange(0xc0, 0xd6);-
3036 yyCharClass->addRange(0xd8, 0xf6);-
3037 yyCharClass->addRange(0xf8, 0x2ff);-
3038 yyCharClass->addRange(0x370, 0x37d);-
3039 yyCharClass->addRange(0x37f, 0x1fff);-
3040 yyCharClass->addRange(0x200c, 0x200d);-
3041 yyCharClass->addRange(0x2070, 0x218f);-
3042 yyCharClass->addRange(0x2c00, 0x2fef);-
3043 yyCharClass->addRange(0x3001, 0xd7ff);-
3044 yyCharClass->addRange(0xf900, 0xfdcf);-
3045 yyCharClass->addRange(0xfdf0, 0xfffd);-
3046 yyCharClass->addRange((ushort)0x10000, (ushort)0xeffff);-
3047 return Tok_CharClass;
never executed: return Tok_CharClass;
0
3048 } else {-
3049 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3050 }-
3051 case 'C':
executed 2 times by 1 test: case 'C':
Executed by:
  • tst_QRegExp
2
3052 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3053 yyCharClass->setNegative(!yyCharClass->negative());-
3054 // fall through-
3055 } else {
never executed: end of block
0
3056 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3057 }-
3058 case 'c':
code before this statement never executed: case 'c':
executed 2 times by 1 test: case 'c':
Executed by:
  • tst_QRegExp
0-2
3059 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3060 yyCharClass->addCategories(FLAG(QChar::Mark_NonSpacing) |-
3061 FLAG(QChar::Mark_SpacingCombining) |-
3062 FLAG(QChar::Mark_Enclosing) |-
3063 FLAG(QChar::Number_DecimalDigit) |-
3064 FLAG(QChar::Number_Letter) |-
3065 FLAG(QChar::Number_Other) |-
3066 FLAG(QChar::Letter_Uppercase) |-
3067 FLAG(QChar::Letter_Lowercase) |-
3068 FLAG(QChar::Letter_Titlecase) |-
3069 FLAG(QChar::Letter_Modifier) |-
3070 FLAG(QChar::Letter_Other));-
3071 yyCharClass->addSingleton(0x002d); // '-'-
3072 yyCharClass->addSingleton(0x002e); // '.'-
3073 yyCharClass->addSingleton(0x003a); // ':'-
3074 yyCharClass->addSingleton(0x005f); // '_'-
3075 yyCharClass->addSingleton(0xb7);-
3076 yyCharClass->addRange(0x0030, 0x0039); // [0-9]-
3077 yyCharClass->addRange(0x0041, 0x005a); // [A-Z]-
3078 yyCharClass->addRange(0x0061, 0x007a); // [a-z]-
3079 yyCharClass->addRange(0xc0, 0xd6);-
3080 yyCharClass->addRange(0xd8, 0xf6);-
3081 yyCharClass->addRange(0xf8, 0x2ff);-
3082 yyCharClass->addRange(0x370, 0x37d);-
3083 yyCharClass->addRange(0x37f, 0x1fff);-
3084 yyCharClass->addRange(0x200c, 0x200d);-
3085 yyCharClass->addRange(0x2070, 0x218f);-
3086 yyCharClass->addRange(0x2c00, 0x2fef);-
3087 yyCharClass->addRange(0x3001, 0xd7ff);-
3088 yyCharClass->addRange(0xf900, 0xfdcf);-
3089 yyCharClass->addRange(0xfdf0, 0xfffd);-
3090 yyCharClass->addRange((ushort)0x10000, (ushort)0xeffff);-
3091 yyCharClass->addRange(0x0300, 0x036f);-
3092 yyCharClass->addRange(0x203f, 0x2040);-
3093 return Tok_CharClass;
never executed: return Tok_CharClass;
0
3094 } else {-
3095 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3096 }-
3097 case 'P':
executed 2 times by 1 test: case 'P':
Executed by:
  • tst_QRegExp
2
3098 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3099 yyCharClass->setNegative(!yyCharClass->negative());-
3100 // fall through-
3101 } else {
never executed: end of block
0
3102 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3103 }-
3104 case 'p':
code before this statement never executed: case 'p':
executed 2 times by 1 test: case 'p':
Executed by:
  • tst_QRegExp
0-2
3105 if (xmlSchemaExtensions) {
xmlSchemaExtensionsDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QRegExp
0-2
3106 if (yyCh != '{') {
yyCh != '{'Description
TRUEnever evaluated
FALSEnever evaluated
0
3107 error(RXERR_CHARCLASS);-
3108 return Tok_CharClass;
never executed: return Tok_CharClass;
0
3109 }-
3110-
3111 QByteArray category;-
3112 yyCh = getChar();-
3113 while (yyCh != '}') {
yyCh != '}'Description
TRUEnever evaluated
FALSEnever evaluated
0
3114 if (yyCh == EOS) {
yyCh == EOSDescription
TRUEnever evaluated
FALSEnever evaluated
0
3115 error(RXERR_END);-
3116 return Tok_CharClass;
never executed: return Tok_CharClass;
0
3117 }-
3118 category.append(yyCh);-
3119 yyCh = getChar();-
3120 }
never executed: end of block
0
3121 yyCh = getChar(); // skip closing '}'-
3122-
3123 int catlen = category.length();-
3124 if (catlen == 1 || catlen == 2) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
catlen == 2Description
TRUEnever evaluated
FALSEnever evaluated
0
3125 switch (category.at(0)) {-
3126 case 'M':
never executed: case 'M':
0
3127 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3128 yyCharClass->addCategories(FLAG(QChar::Mark_NonSpacing) |-
3129 FLAG(QChar::Mark_SpacingCombining) |-
3130 FLAG(QChar::Mark_Enclosing));-
3131 } else {
never executed: end of block
0
3132 switch (category.at(1)) {-
3133 case 'n': yyCharClass->addCategories(FLAG(QChar::Mark_NonSpacing)); break; // Mn
never executed: break;
never executed: case 'n':
0
3134 case 'c': yyCharClass->addCategories(FLAG(QChar::Mark_SpacingCombining)); break; // Mc
never executed: break;
never executed: case 'c':
0
3135 case 'e': yyCharClass->addCategories(FLAG(QChar::Mark_Enclosing)); break; // Me
never executed: break;
never executed: case 'e':
0
3136 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3137 }-
3138 }-
3139 break;
never executed: break;
0
3140 case 'N':
never executed: case 'N':
0
3141 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3142 yyCharClass->addCategories(FLAG(QChar::Number_DecimalDigit) |-
3143 FLAG(QChar::Number_Letter) |-
3144 FLAG(QChar::Number_Other));-
3145 } else {
never executed: end of block
0
3146 switch (category.at(1)) {-
3147 case 'd': yyCharClass->addCategories(FLAG(QChar::Number_DecimalDigit)); break; // Nd
never executed: break;
never executed: case 'd':
0
3148 case 'l': yyCharClass->addCategories(FLAG(QChar::Number_Letter)); break; // Hl
never executed: break;
never executed: case 'l':
0
3149 case 'o': yyCharClass->addCategories(FLAG(QChar::Number_Other)); break; // No
never executed: break;
never executed: case 'o':
0
3150 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3151 }-
3152 }-
3153 break;
never executed: break;
0
3154 case 'Z':
never executed: case 'Z':
0
3155 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3156 yyCharClass->addCategories(FLAG(QChar::Separator_Space) |-
3157 FLAG(QChar::Separator_Line) |-
3158 FLAG(QChar::Separator_Paragraph));-
3159 } else {
never executed: end of block
0
3160 switch (category.at(1)) {-
3161 case 's': yyCharClass->addCategories(FLAG(QChar::Separator_Space)); break; // Zs
never executed: break;
never executed: case 's':
0
3162 case 'l': yyCharClass->addCategories(FLAG(QChar::Separator_Line)); break; // Zl
never executed: break;
never executed: case 'l':
0
3163 case 'p': yyCharClass->addCategories(FLAG(QChar::Separator_Paragraph)); break; // Zp
never executed: break;
never executed: case 'p':
0
3164 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3165 }-
3166 }-
3167 break;
never executed: break;
0
3168 case 'C':
never executed: case 'C':
0
3169 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3170 yyCharClass->addCategories(FLAG(QChar::Other_Control) |-
3171 FLAG(QChar::Other_Format) |-
3172 FLAG(QChar::Other_Surrogate) |-
3173 FLAG(QChar::Other_PrivateUse) |-
3174 FLAG(QChar::Other_NotAssigned));-
3175 } else {
never executed: end of block
0
3176 switch (category.at(1)) {-
3177 case 'c': yyCharClass->addCategories(FLAG(QChar::Other_Control)); break; // Cc
never executed: break;
never executed: case 'c':
0
3178 case 'f': yyCharClass->addCategories(FLAG(QChar::Other_Format)); break; // Cf
never executed: break;
never executed: case 'f':
0
3179 case 's': yyCharClass->addCategories(FLAG(QChar::Other_Surrogate)); break; // Cs
never executed: break;
never executed: case 's':
0
3180 case 'o': yyCharClass->addCategories(FLAG(QChar::Other_PrivateUse)); break; // Co
never executed: break;
never executed: case 'o':
0
3181 case 'n': yyCharClass->addCategories(FLAG(QChar::Other_NotAssigned)); break; // Cn
never executed: break;
never executed: case 'n':
0
3182 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3183 }-
3184 }-
3185 break;
never executed: break;
0
3186 case 'L':
never executed: case 'L':
0
3187 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3188 yyCharClass->addCategories(FLAG(QChar::Letter_Uppercase) |-
3189 FLAG(QChar::Letter_Lowercase) |-
3190 FLAG(QChar::Letter_Titlecase) |-
3191 FLAG(QChar::Letter_Modifier) |-
3192 FLAG(QChar::Letter_Other));-
3193 } else {
never executed: end of block
0
3194 switch (category.at(1)) {-
3195 case 'u': yyCharClass->addCategories(FLAG(QChar::Letter_Uppercase)); break; // Lu
never executed: break;
never executed: case 'u':
0
3196 case 'l': yyCharClass->addCategories(FLAG(QChar::Letter_Lowercase)); break; // Ll
never executed: break;
never executed: case 'l':
0
3197 case 't': yyCharClass->addCategories(FLAG(QChar::Letter_Titlecase)); break; // Lt
never executed: break;
never executed: case 't':
0
3198 case 'm': yyCharClass->addCategories(FLAG(QChar::Letter_Modifier)); break; // Lm
never executed: break;
never executed: case 'm':
0
3199 case 'o': yyCharClass->addCategories(FLAG(QChar::Letter_Other)); break; // Lo
never executed: break;
never executed: case 'o':
0
3200 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3201 }-
3202 }-
3203 break;
never executed: break;
0
3204 case 'P':
never executed: case 'P':
0
3205 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3206 yyCharClass->addCategories(FLAG(QChar::Punctuation_Connector) |-
3207 FLAG(QChar::Punctuation_Dash) |-
3208 FLAG(QChar::Punctuation_Open) |-
3209 FLAG(QChar::Punctuation_Close) |-
3210 FLAG(QChar::Punctuation_InitialQuote) |-
3211 FLAG(QChar::Punctuation_FinalQuote) |-
3212 FLAG(QChar::Punctuation_Other));-
3213 } else {
never executed: end of block
0
3214 switch (category.at(1)) {-
3215 case 'c': yyCharClass->addCategories(FLAG(QChar::Punctuation_Connector)); break; // Pc
never executed: break;
never executed: case 'c':
0
3216 case 'd': yyCharClass->addCategories(FLAG(QChar::Punctuation_Dash)); break; // Pd
never executed: break;
never executed: case 'd':
0
3217 case 's': yyCharClass->addCategories(FLAG(QChar::Punctuation_Open)); break; // Ps
never executed: break;
never executed: case 's':
0
3218 case 'e': yyCharClass->addCategories(FLAG(QChar::Punctuation_Close)); break; // Pe
never executed: break;
never executed: case 'e':
0
3219 case 'i': yyCharClass->addCategories(FLAG(QChar::Punctuation_InitialQuote)); break; // Pi
never executed: break;
never executed: case 'i':
0
3220 case 'f': yyCharClass->addCategories(FLAG(QChar::Punctuation_FinalQuote)); break; // Pf
never executed: break;
never executed: case 'f':
0
3221 case 'o': yyCharClass->addCategories(FLAG(QChar::Punctuation_Other)); break; // Po
never executed: break;
never executed: case 'o':
0
3222 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3223 }-
3224 }-
3225 break;
never executed: break;
0
3226 case 'S':
never executed: case 'S':
0
3227 if (catlen == 1) {
catlen == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
3228 yyCharClass->addCategories(FLAG(QChar::Symbol_Math) |-
3229 FLAG(QChar::Symbol_Currency) |-
3230 FLAG(QChar::Symbol_Modifier) |-
3231 FLAG(QChar::Symbol_Other));-
3232 } else {
never executed: end of block
0
3233 switch (category.at(1)) {-
3234 case 'm': yyCharClass->addCategories(FLAG(QChar::Symbol_Math)); break; // Sm
never executed: break;
never executed: case 'm':
0
3235 case 'c': yyCharClass->addCategories(FLAG(QChar::Symbol_Currency)); break; // Sc
never executed: break;
never executed: case 'c':
0
3236 case 'k': yyCharClass->addCategories(FLAG(QChar::Symbol_Modifier)); break; // Sk
never executed: break;
never executed: case 'k':
0
3237 case 'o': yyCharClass->addCategories(FLAG(QChar::Symbol_Other)); break; // So
never executed: break;
never executed: case 'o':
0
3238 default: error(RXERR_CATEGORY); break;
never executed: break;
never executed: default:
0
3239 }-
3240 }-
3241 break;
never executed: break;
0
3242 default:
never executed: default:
0
3243 error(RXERR_CATEGORY);-
3244 break;
never executed: break;
0
3245 }-
3246 } else if (catlen > 2 && category.at(0) == 'I' && category.at(1) == 's') {
catlen > 2Description
TRUEnever evaluated
FALSEnever evaluated
category.at(0) == 'I'Description
TRUEnever evaluated
FALSEnever evaluated
category.at(1) == 's'Description
TRUEnever evaluated
FALSEnever evaluated
0
3247 static const int N = sizeof(categoriesRangeMap) / sizeof(categoriesRangeMap[0]);-
3248 const char * const categoryFamily = category.constData() + 2;-
3249 const CategoriesRangeMapEntry *r = std::lower_bound(categoriesRangeMap, categoriesRangeMap + N, categoryFamily);-
3250 if (r != categoriesRangeMap + N && qstrcmp(r->name, categoryFamily) == 0)
r != categoriesRangeMap + NDescription
TRUEnever evaluated
FALSEnever evaluated
qstrcmp(r->nam...ryFamily) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
3251 yyCharClass->addRange(r->first, r->second);
never executed: yyCharClass->addRange(r->first, r->second);
0
3252 else-
3253 error(RXERR_CATEGORY);
never executed: error("invalid category");
0
3254 } else {-
3255 error(RXERR_CATEGORY);-
3256 }
never executed: end of block
0
3257 return Tok_CharClass;
never executed: return Tok_CharClass;
0
3258 } else {-
3259 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QRegExp
2
3260 }-
3261#endif-
3262#ifndef QT_NO_REGEXP_ESCAPE-
3263 case 'x':
executed 2240 times by 1 test: case 'x':
Executed by:
  • tst_QRegExp
2240
3264 val = 0;-
3265 for (i = 0; i < 4; i++) {
i < 4Description
TRUEevaluated 6720 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-6720
3266 low = QChar(yyCh).toLower().unicode();-
3267 if (low >= '0' && low <= '9')
low >= '0'Description
TRUEevaluated 5600 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1120 times by 1 test
Evaluated by:
  • tst_QRegExp
low <= '9'Description
TRUEevaluated 2240 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 3360 times by 1 test
Evaluated by:
  • tst_QRegExp
1120-5600
3268 val = (val << 4) | (low - '0');
executed 2240 times by 1 test: val = (val << 4) | (low - '0');
Executed by:
  • tst_QRegExp
2240
3269 else if (low >= 'a' && low <= 'f')
low >= 'a'Description
TRUEevaluated 2240 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2240 times by 1 test
Evaluated by:
  • tst_QRegExp
low <= 'f'Description
TRUEevaluated 2240 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-2240
3270 val = (val << 4) | (low - 'a' + 10);
executed 2240 times by 1 test: val = (val << 4) | (low - 'a' + 10);
Executed by:
  • tst_QRegExp
2240
3271 else-
3272 break;
executed 2240 times by 1 test: break;
Executed by:
  • tst_QRegExp
2240
3273 yyCh = getChar();-
3274 }
executed 4480 times by 1 test: end of block
Executed by:
  • tst_QRegExp
4480
3275 return Tok_Char | val;
executed 2240 times by 1 test: return Tok_Char | val;
Executed by:
  • tst_QRegExp
2240
3276#endif-
3277 default:
executed 2874 times by 58 tests: default:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
2874
3278 break;
executed 2874 times by 58 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
2874
3279 }-
3280 if (prevCh >= '1' && prevCh <= '9') {
prevCh >= '1'Description
TRUEevaluated 1975 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 911 times by 56 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • ...
prevCh <= '9'Description
TRUEevaluated 190 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1785 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
190-1975
3281#ifndef QT_NO_REGEXP_BACKREF-
3282 val = prevCh - '0';-
3283 while (yyCh >= '0' && yyCh <= '9') {
yyCh >= '0'Description
TRUEevaluated 145 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 65 times by 1 test
Evaluated by:
  • tst_QRegExp
yyCh <= '9'Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 125 times by 1 test
Evaluated by:
  • tst_QRegExp
20-145
3284 val = (val * 10) + (yyCh - '0');-
3285 yyCh = getChar();-
3286 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_QRegExp
20
3287 return Tok_BackRef | val;
executed 190 times by 1 test: return Tok_BackRef | val;
Executed by:
  • tst_QRegExp
190
3288#else-
3289 error(RXERR_DISABLED);-
3290#endif-
3291 }-
3292 return Tok_Char | prevCh;
executed 2696 times by 58 tests: return Tok_Char | prevCh;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
2696
3293}-
3294-
3295#ifndef QT_NO_REGEXP_INTERVAL-
3296int QRegExpEngine::getRep(int def)-
3297{-
3298 if (yyCh >= '0' && yyCh <= '9') {
yyCh >= '0'Description
TRUEevaluated 1222 times by 13 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QRegExp
yyCh <= '9'Description
TRUEevaluated 860 times by 12 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
FALSEevaluated 362 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
4-1222
3299 int rep = 0;-
3300 do {-
3301 rep = 10 * rep + yyCh - '0';-
3302 if (rep >= InftyRep) {
rep >= InftyRepDescription
TRUEnever evaluated
FALSEevaluated 1180 times by 12 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
0-1180
3303 error(RXERR_REPETITION);-
3304 rep = def;-
3305 }
never executed: end of block
0
3306 yyCh = getChar();-
3307 } while (yyCh >= '0' && yyCh <= '9');
executed 1180 times by 12 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
yyCh >= '0'Description
TRUEevaluated 587 times by 12 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
FALSEevaluated 593 times by 9 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTime
yyCh <= '9'Description
TRUEevaluated 320 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 267 times by 12 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
267-1180
3308 return rep;
executed 860 times by 12 tests: return rep;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
860
3309 } else {-
3310 return def;
executed 366 times by 5 tests: return def;
Executed by:
  • tst_QDataStream
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
366
3311 }-
3312}-
3313#endif-
3314-
3315#ifndef QT_NO_REGEXP_LOOKAHEAD-
3316void QRegExpEngine::skipChars(int n)-
3317{-
3318 if (n > 0) {
n > 0Description
TRUEevaluated 78 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QRegExp
48-78
3319 yyPos += n - 1;-
3320 yyCh = getChar();-
3321 }
executed 78 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
78
3322}
executed 126 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
3323#endif-
3324-
3325void QRegExpEngine::error(const char *msg)-
3326{-
3327 if (yyError.isEmpty())
yyError.isEmpty()Description
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 84 times by 4 tests
Evaluated by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
52-84
3328 yyError = QLatin1String(msg);
executed 52 times by 4 tests: yyError = QLatin1String(msg);
Executed by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
52
3329}
executed 136 times by 4 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
136
3330-
3331void QRegExpEngine::startTokenizer(const QChar *rx, int len)-
3332{-
3333 yyIn = rx;-
3334 yyPos0 = 0;-
3335 yyPos = 0;-
3336 yyLen = len;-
3337 yyCh = getChar();-
3338 yyCharClass.reset(new QRegExpCharClass);-
3339 yyMinRep = 0;-
3340 yyMaxRep = 0;-
3341 yyError = QString();-
3342}
executed 1678 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1678
3343-
3344int QRegExpEngine::getToken()-
3345{-
3346#ifndef QT_NO_REGEXP_CCLASS-
3347 ushort pendingCh = 0;-
3348 bool charPending;-
3349 bool rangePending;-
3350 int tok;-
3351#endif-
3352 int prevCh = yyCh;-
3353-
3354 yyPos0 = yyPos - 1;-
3355#ifndef QT_NO_REGEXP_CCLASS-
3356 yyCharClass->clear();-
3357#endif-
3358 yyMinRep = 0;-
3359 yyMaxRep = 0;-
3360 yyCh = getChar();-
3361-
3362 switch (prevCh) {-
3363 case EOS:
executed 1553 times by 116 tests: case EOS:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1553
3364 yyPos0 = yyPos;-
3365 return Tok_Eos;
executed 1553 times by 116 tests: return Tok_Eos;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1553
3366 case '$':
executed 105 times by 17 tests: case '$':
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
105
3367 return Tok_Dollar;
executed 105 times by 17 tests: return Tok_Dollar;
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
105
3368 case '(':
executed 1678 times by 25 tests: case '(':
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1678
3369 if (yyCh == '?') {
yyCh == '?'Description
TRUEevaluated 991 times by 6 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_QTime
FALSEevaluated 687 times by 25 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
687-991
3370 prevCh = getChar();-
3371 yyCh = getChar();-
3372 switch (prevCh) {-
3373#ifndef QT_NO_REGEXP_LOOKAHEAD-
3374 case '!':
executed 90 times by 2 tests: case '!':
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
90
3375 return Tok_NegLookahead;
executed 90 times by 2 tests: return Tok_NegLookahead;
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
90
3376 case '=':
executed 36 times by 1 test: case '=':
Executed by:
  • tst_QRegExp
36
3377 return Tok_PosLookahead;
executed 36 times by 1 test: return Tok_PosLookahead;
Executed by:
  • tst_QRegExp
36
3378#endif-
3379 case ':':
executed 865 times by 5 tests: case ':':
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTime
865
3380 return Tok_MagicLeftParen;
executed 865 times by 5 tests: return Tok_MagicLeftParen;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTime
865
3381 case '<':
never executed: case '<':
0
3382 error(RXERR_LOOKBEHIND);-
3383 return Tok_MagicLeftParen;
never executed: return Tok_MagicLeftParen;
0
3384 default:
never executed: default:
0
3385 error(RXERR_LOOKAHEAD);-
3386 return Tok_MagicLeftParen;
never executed: return Tok_MagicLeftParen;
0
3387 }-
3388 } else {-
3389 return Tok_LeftParen;
executed 687 times by 25 tests: return Tok_LeftParen;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
687
3390 }-
3391 case ')':
executed 1915 times by 25 tests: case ')':
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1915
3392 return Tok_RightParen;
executed 1915 times by 25 tests: return Tok_RightParen;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1915
3393 case '*':
executed 1902 times by 90 tests: case '*':
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
1902
3394 yyMinRep = 0;-
3395 yyMaxRep = InftyRep;-
3396 return Tok_Quantifier;
executed 1902 times by 90 tests: return Tok_Quantifier;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
1902
3397 case '+':
executed 274 times by 22 tests: case '+':
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTime
  • tst_qmakelib
274
3398 yyMinRep = 1;-
3399 yyMaxRep = InftyRep;-
3400 return Tok_Quantifier;
executed 274 times by 22 tests: return Tok_Quantifier;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTime
  • tst_qmakelib
274
3401 case '.':
executed 346 times by 86 tests: case '.':
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • ...
346
3402#ifndef QT_NO_REGEXP_CCLASS-
3403 yyCharClass->setNegative(true);-
3404#endif-
3405 return Tok_CharClass;
executed 346 times by 86 tests: return Tok_CharClass;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • ...
346
3406 case '?':
executed 161 times by 9 tests: case '?':
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QTextDocument
  • tst_QTime
161
3407 yyMinRep = 0;-
3408 yyMaxRep = 1;-
3409 return Tok_Quantifier;
executed 161 times by 9 tests: return Tok_Quantifier;
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslKey
  • tst_QTextDocument
  • tst_QTime
161
3410 case '[':
executed 2044 times by 63 tests: case '[':
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
2044
3411#ifndef QT_NO_REGEXP_CCLASS-
3412 if (yyCh == '^') {
yyCh == '^'Description
TRUEevaluated 1207 times by 10 tests
Evaluated by:
  • tst_ModelTest
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
FALSEevaluated 837 times by 57 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
837-1207
3413 yyCharClass->setNegative(true);-
3414 yyCh = getChar();-
3415 }
executed 1207 times by 10 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSslCertificate
  • tst_QString
  • tst_QSystemSemaphore
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
1207
3416 charPending = false;-
3417 rangePending = false;-
3418 do {-
3419 if (yyCh == '-' && charPending && !rangePending) {
yyCh == '-'Description
TRUEevaluated 1966 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 10032 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
charPendingDescription
TRUEevaluated 1965 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPrinterInfo
!rangePendingDescription
TRUEevaluated 1965 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEnever evaluated
0-10032
3420 rangePending = true;-
3421 yyCh = getChar();-
3422 } else {
executed 1965 times by 54 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
1965
3423 if (charPending && !rangePending) {
charPendingDescription
TRUEevaluated 6932 times by 62 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 3101 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
!rangePendingDescription
TRUEevaluated 4973 times by 25 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 1959 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
1959-6932
3424 yyCharClass->addSingleton(pendingCh);-
3425 charPending = false;-
3426 }
executed 4973 times by 25 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
4973
3427 if (yyCh == '\\') {
yyCh == '\\'Description
TRUEevaluated 5692 times by 15 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 4341 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
4341-5692
3428 yyCh = getChar();-
3429 tok = getEscape();-
3430 if (tok == Tok_Word)
tok == Tok_WordDescription
TRUEnever evaluated
FALSEevaluated 5692 times by 15 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
0-5692
3431 tok = '\b';
never executed: tok = '\b';
0
3432 } else {
executed 5692 times by 15 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
5692
3433 tok = Tok_Char | yyCh;-
3434 yyCh = getChar();-
3435 }
executed 4341 times by 63 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
4341
3436 if (tok == Tok_CharClass) {
tok == Tok_CharClassDescription
TRUEnever evaluated
FALSEevaluated 10033 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
0-10033
3437 if (rangePending) {
rangePendingDescription
TRUEnever evaluated
FALSEnever evaluated
0
3438 yyCharClass->addSingleton('-');-
3439 yyCharClass->addSingleton(pendingCh);-
3440 charPending = false;-
3441 rangePending = false;-
3442 }
never executed: end of block
0
3443 } else if ((tok & Tok_Char) != 0) {
never executed: end of block
(tok & Tok_Char) != 0Description
TRUEevaluated 10033 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEnever evaluated
0-10033
3444 if (rangePending) {
rangePendingDescription
TRUEevaluated 1959 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 8074 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
1959-8074
3445 yyCharClass->addRange(pendingCh, tok ^ Tok_Char);-
3446 charPending = false;-
3447 rangePending = false;-
3448 } else {
executed 1959 times by 54 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
1959
3449 pendingCh = tok ^ Tok_Char;-
3450 charPending = true;-
3451 }
executed 8074 times by 63 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
8074
3452 } else {-
3453 error(RXERR_CHARCLASS);-
3454 }
never executed: end of block
0
3455 }-
3456 } while (yyCh != ']' && yyCh != EOS);
yyCh != ']'Description
TRUEevaluated 9974 times by 62 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 2024 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
yyCh != EOSDescription
TRUEevaluated 9954 times by 62 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • ...
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QRegExp
20-9974
3457 if (rangePending)
rangePendingDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 2038 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
6-2038
3458 yyCharClass->addSingleton('-');
executed 6 times by 3 tests: yyCharClass->addSingleton('-');
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
6
3459 if (charPending)
charPendingDescription
TRUEevaluated 1142 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
FALSEevaluated 902 times by 52 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
902-1142
3460 yyCharClass->addSingleton(pendingCh);
executed 1142 times by 43 tests: yyCharClass->addSingleton(pendingCh);
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
1142
3461 if (yyCh == EOS)
yyCh == EOSDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 2024 times by 63 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
20-2024
3462 error(RXERR_END);
executed 20 times by 1 test: error("unexpected end");
Executed by:
  • tst_QRegExp
20
3463 else-
3464 yyCh = getChar();
executed 2024 times by 63 tests: yyCh = getChar();
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
2024
3465 return Tok_CharClass;
executed 2044 times by 63 tests: return Tok_CharClass;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
2044
3466#else-
3467 error(RXERR_END);-
3468 return Tok_Char | '[';-
3469#endif-
3470 case '\\':
executed 2018 times by 67 tests: case '\\':
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
2018
3471 return getEscape();
executed 2018 times by 67 tests: return getEscape();
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
2018
3472 case ']':
executed 22 times by 2 tests: case ']':
Executed by:
  • tst_QDataStream
  • tst_QRegExp
22
3473 error(RXERR_LEFTDELIM);-
3474 return Tok_Char | ']';
executed 22 times by 2 tests: return Tok_Char | ']';
Executed by:
  • tst_QDataStream
  • tst_QRegExp
22
3475 case '^':
executed 132 times by 30 tests: case '^':
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
132
3476 return Tok_Caret;
executed 132 times by 30 tests: return Tok_Caret;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
132
3477 case '{':
executed 629 times by 13 tests: case '{':
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
629
3478#ifndef QT_NO_REGEXP_INTERVAL-
3479 yyMinRep = getRep(0);-
3480 yyMaxRep = yyMinRep;-
3481 if (yyCh == ',') {
yyCh == ','Description
TRUEevaluated 597 times by 9 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTime
FALSEevaluated 32 times by 6 tests
Evaluated by:
  • tst_QDataStream
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
32-597
3482 yyCh = getChar();-
3483 yyMaxRep = getRep(InftyRep);-
3484 }
executed 597 times by 9 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTime
597
3485 if (yyMaxRep < yyMinRep)
yyMaxRep < yyMinRepDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 628 times by 13 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
1-628
3486 error(RXERR_INTERVAL);
executed 1 time by 1 test: error("invalid interval");
Executed by:
  • tst_QRegExp
1
3487 if (yyCh != '}')
yyCh != '}'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 616 times by 12 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
13-616
3488 error(RXERR_REPETITION);
executed 13 times by 1 test: error("bad repetition syntax");
Executed by:
  • tst_QDataStream
13
3489 yyCh = getChar();-
3490 return Tok_Quantifier;
executed 629 times by 13 tests: return Tok_Quantifier;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
  • tst_QTime
629
3491#else-
3492 error(RXERR_DISABLED);-
3493 return Tok_Char | '{';-
3494#endif-
3495 case '|':
executed 466 times by 11 tests: case '|':
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466
3496 return Tok_Bar;
executed 466 times by 11 tests: return Tok_Bar;
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466
3497 case '}':
executed 13 times by 1 test: case '}':
Executed by:
  • tst_QDataStream
13
3498 error(RXERR_LEFTDELIM);-
3499 return Tok_Char | '}';
executed 13 times by 1 test: return Tok_Char | '}';
Executed by:
  • tst_QDataStream
13
3500 default:
executed 21134 times by 70 tests: default:
Executed by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
21134
3501 return Tok_Char | prevCh;
executed 21134 times by 70 tests: return Tok_Char | prevCh;
Executed by:
  • tst_Lancelot
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • ...
21134
3502 }-
3503}-
3504-
3505int QRegExpEngine::parse(const QChar *pattern, int len)-
3506{-
3507 valid = true;-
3508 startTokenizer(pattern, len);-
3509 yyTok = getToken();-
3510#ifndef QT_NO_REGEXP_CAPTURE-
3511 yyMayCapture = true;-
3512#else-
3513 yyMayCapture = false;-
3514#endif-
3515-
3516#ifndef QT_NO_REGEXP_CAPTURE-
3517 int atom = startAtom(false);-
3518#endif-
3519 QRegExpCharClass anything;-
3520 Box box(this); // create InitialState-
3521 box.set(anything);-
3522 Box rightBox(this); // create FinalState-
3523 rightBox.set(anything);-
3524-
3525 Box middleBox(this);-
3526 parseExpression(&middleBox);-
3527#ifndef QT_NO_REGEXP_CAPTURE-
3528 finishAtom(atom, false);-
3529#endif-
3530#ifndef QT_NO_REGEXP_OPTIM-
3531 middleBox.setupHeuristics();-
3532#endif-
3533 box.cat(middleBox);-
3534 box.cat(rightBox);-
3535 yyCharClass.reset(0);-
3536-
3537#ifndef QT_NO_REGEXP_CAPTURE-
3538 for (int i = 0; i < nf; ++i) {
i < nfDescription
TRUEevaluated 31639 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 1678 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1678-31639
3539 switch (f[i].capture) {-
3540 case QRegExpAtom::NoCapture:
executed 29860 times by 116 tests: case QRegExpAtom::NoCapture:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
29860
3541 break;
executed 29860 times by 116 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
29860
3542 case QRegExpAtom::OfficialCapture:
executed 643 times by 25 tests: case QRegExpAtom::OfficialCapture:
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
643
3543 f[i].capture = ncap;-
3544 captureForOfficialCapture.append(ncap);-
3545 ++ncap;-
3546 ++officialncap;-
3547 break;
executed 643 times by 25 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
643
3548 case QRegExpAtom::UnofficialCapture:
executed 1136 times by 1 test: case QRegExpAtom::UnofficialCapture:
Executed by:
  • tst_QRegExp
1136
3549 f[i].capture = greedyQuantifiers ? ncap++ : QRegExpAtom::NoCapture;
greedyQuantifiersDescription
TRUEevaluated 1136 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-1136
3550 }
executed 1136 times by 1 test: end of block
Executed by:
  • tst_QRegExp
1136
3551 }
executed 31639 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
31639
3552-
3553#ifndef QT_NO_REGEXP_BACKREF-
3554#ifndef QT_NO_REGEXP_OPTIM-
3555 if (officialncap == 0 && nbrefs == 0) {
officialncap == 0Description
TRUEevaluated 1443 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 235 times by 25 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
nbrefs == 0Description
TRUEevaluated 1440 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QRegExp
3-1443
3556 ncap = nf = 0;-
3557 f.clear();-
3558 }
executed 1440 times by 110 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
1440
3559#endif-
3560 // handle the case where there's a \5 with no corresponding capture-
3561 // (captureForOfficialCapture.size() != officialncap)-
3562 for (int i = 0; i < nbrefs - officialncap; ++i) {
i < nbrefs - officialncapDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1678 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
11-1678
3563 captureForOfficialCapture.append(ncap);-
3564 ++ncap;-
3565 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QRegExp
11
3566#endif-
3567#endif-
3568-
3569 if (!yyError.isEmpty())
!yyError.isEmpty()Description
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 1626 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
52-1626
3570 return -1;
executed 52 times by 4 tests: return -1;
Executed by:
  • tst_QDataStream
  • tst_QRegExp
  • tst_QString
  • tst_QXmlSimpleReader
52
3571-
3572#ifndef QT_NO_REGEXP_OPTIM-
3573 const QRegExpAutomatonState &sinit = s.at(InitialState);-
3574 caretAnchored = !sinit.anchors.isEmpty();-
3575 if (caretAnchored) {
caretAnchoredDescription
TRUEevaluated 1626 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEnever evaluated
0-1626
3576 const QMap<int, int> &anchors = sinit.anchors;-
3577 QMap<int, int>::const_iterator a;-
3578 for (a = anchors.constBegin(); a != anchors.constEnd(); ++a) {
a != anchors.constEnd()Description
TRUEevaluated 1821 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 102 times by 28 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • ...
102-1821
3579 if (-
3580#ifndef QT_NO_REGEXP_ANCHOR_ALT-
3581 (*a & Anchor_Alternation) != 0 ||
(*a & Anchor_Alternation) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1815 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6-1815
3582#endif-
3583 (*a & Anchor_Caret) == 0)
(*a & Anchor_Caret) == 0Description
TRUEevaluated 1518 times by 111 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
FALSEevaluated 297 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
297-1518
3584 {-
3585 caretAnchored = false;-
3586 break;
executed 1524 times by 111 tests: break;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
1524
3587 }-
3588 }
executed 297 times by 29 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
297
3589 }
executed 1626 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1626
3590#endif-
3591-
3592 // cleanup anchors-
3593 int numStates = s.count();-
3594 for (int i = 0; i < numStates; ++i) {
i < numStatesDescription
TRUEevaluated 27968 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 1626 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1626-27968
3595 QRegExpAutomatonState &state = s[i];-
3596 if (!state.anchors.isEmpty()) {
!state.anchors.isEmpty()Description
TRUEevaluated 26334 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 1634 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1634-26334
3597 QMap<int, int>::iterator a = state.anchors.begin();-
3598 while (a != state.anchors.end()) {
a != state.anchors.end()Description
TRUEevaluated 35214 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 26334 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
26334-35214
3599 if (a.value() == 0)
a.value() == 0Description
TRUEevaluated 33366 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 1848 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
1848-33366
3600 a = state.anchors.erase(a);
executed 33366 times by 116 tests: a = state.anchors.erase(a);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
33366
3601 else-
3602 ++a;
executed 1848 times by 29 tests: ++a;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • ...
1848
3603 }-
3604 }
executed 26334 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
26334
3605 }
executed 27968 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
27968
3606-
3607 return yyPos0;
executed 1626 times by 116 tests: return yyPos0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1626
3608}-
3609-
3610void QRegExpEngine::parseAtom(Box *box)-
3611{-
3612#ifndef QT_NO_REGEXP_LOOKAHEAD-
3613 QRegExpEngine *eng = 0;-
3614 bool neg;-
3615 int len;-
3616#endif-
3617-
3618 if ((yyTok & Tok_Char) != 0) {
(yyTok & Tok_Char) != 0Description
TRUEevaluated 22721 times by 82 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
FALSEevaluated 5282 times by 107 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
5282-22721
3619 box->set(QChar(yyTok ^ Tok_Char));-
3620 } else {
executed 22721 times by 82 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
22721
3621#ifndef QT_NO_REGEXP_OPTIM-
3622 trivial = false;-
3623#endif-
3624 switch (yyTok) {-
3625 case Tok_Dollar:
executed 105 times by 17 tests: case Tok_Dollar:
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
105
3626 box->catAnchor(Anchor_Dollar);-
3627 break;
executed 105 times by 17 tests: break;
Executed by:
  • tst_Collections
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
105
3628 case Tok_Caret:
executed 132 times by 30 tests: case Tok_Caret:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
132
3629 box->catAnchor(Anchor_Caret);-
3630 break;
executed 132 times by 30 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QPixmap
  • tst_QPrinterInfo
  • tst_QProcess
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • ...
132
3631#ifndef QT_NO_REGEXP_LOOKAHEAD-
3632 case Tok_PosLookahead:
executed 36 times by 1 test: case Tok_PosLookahead:
Executed by:
  • tst_QRegExp
36
3633 case Tok_NegLookahead:
executed 90 times by 2 tests: case Tok_NegLookahead:
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
90
3634 neg = (yyTok == Tok_NegLookahead);-
3635 eng = new QRegExpEngine(cs, greedyQuantifiers);-
3636 len = eng->parse(yyIn + yyPos - 1, yyLen - yyPos + 1);-
3637 if (len >= 0)
len >= 0Description
TRUEevaluated 126 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
FALSEnever evaluated
0-126
3638 skipChars(len);
executed 126 times by 2 tests: skipChars(len);
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
3639 else-
3640 error(RXERR_LOOKAHEAD);
never executed: error("bad lookahead syntax");
0
3641 box->catAnchor(addLookahead(eng, neg));-
3642 yyTok = getToken();-
3643 if (yyTok != Tok_RightParen)
yyTok != Tok_RightParenDescription
TRUEnever evaluated
FALSEevaluated 126 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QTextDocument
0-126
3644 error(RXERR_LOOKAHEAD);
never executed: error("bad lookahead syntax");
0
3645 break;
executed 126 times by 2 tests: break;
Executed by:
  • tst_QRegExp
  • tst_QTextDocument
126
3646#endif-
3647#ifndef QT_NO_REGEXP_ESCAPE-
3648 case Tok_Word:
executed 2 times by 2 tests: case Tok_Word:
Executed by:
  • tst_QString
  • tst_qmakelib
2
3649 box->catAnchor(Anchor_Word);-
3650 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_qmakelib
2
3651 case Tok_NonWord:
never executed: case Tok_NonWord:
0
3652 box->catAnchor(Anchor_NonWord);-
3653 break;
never executed: break;
0
3654#endif-
3655 case Tok_LeftParen:
executed 799 times by 25 tests: case Tok_LeftParen:
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
799
3656 case Tok_MagicLeftParen:
executed 865 times by 5 tests: case Tok_MagicLeftParen:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QTime
865
3657 yyTok = getToken();-
3658 parseExpression(box);-
3659 if (yyTok != Tok_RightParen)
yyTok != Tok_RightParenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 1663 times by 25 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1-1663
3660 error(RXERR_END);
executed 1 time by 1 test: error("unexpected end");
Executed by:
  • tst_QRegExp
1
3661 break;
executed 1664 times by 25 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
1664
3662 case Tok_CharClass:
executed 3053 times by 107 tests: case Tok_CharClass:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
3053
3663 box->set(*yyCharClass);-
3664 break;
executed 3053 times by 107 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
3053
3665 case Tok_Quantifier:
executed 10 times by 1 test: case Tok_Quantifier:
Executed by:
  • tst_QRegExp
10
3666 error(RXERR_REPETITION);-
3667 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_QRegExp
10
3668 default:
executed 190 times by 1 test: default:
Executed by:
  • tst_QRegExp
190
3669#ifndef QT_NO_REGEXP_BACKREF-
3670 if ((yyTok & Tok_BackRef) != 0)
(yyTok & Tok_BackRef) != 0Description
TRUEevaluated 190 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEnever evaluated
0-190
3671 box->set(yyTok ^ Tok_BackRef);
executed 190 times by 1 test: box->set(yyTok ^ Tok_BackRef);
Executed by:
  • tst_QRegExp
190
3672 else-
3673#endif-
3674 error(RXERR_DISABLED);
never executed: error("disabled feature used");
0
3675 }-
3676 }-
3677 yyTok = getToken();-
3678}
executed 28003 times by 110 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
28003
3679-
3680void QRegExpEngine::parseFactor(Box *box)-
3681{-
3682#ifndef QT_NO_REGEXP_CAPTURE-
3683 int outerAtom = greedyQuantifiers ? startAtom(false) : -1;
greedyQuantifiersDescription
TRUEevaluated 2459 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 25043 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
2459-25043
3684 int innerAtom = startAtom(yyMayCapture && yyTok == Tok_LeftParen);-
3685 bool magicLeftParen = (yyTok == Tok_MagicLeftParen);-
3686#else-
3687 const int innerAtom = -1;-
3688#endif-
3689-
3690#ifndef QT_NO_REGEXP_INTERVAL-
3691#define YYREDO() \-
3692 yyIn = in, yyPos0 = pos0, yyPos = pos, yyLen = len, yyCh = ch, \-
3693 *yyCharClass = charClass, yyMinRep = 0, yyMaxRep = 0, yyTok = tok-
3694-
3695 const QChar *in = yyIn;-
3696 int pos0 = yyPos0;-
3697 int pos = yyPos;-
3698 int len = yyLen;-
3699 int ch = yyCh;-
3700 QRegExpCharClass charClass;-
3701 if (yyTok == Tok_CharClass)
yyTok == Tok_CharClassDescription
TRUEevaluated 2698 times by 107 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 24804 times by 83 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
2698-24804
3702 charClass = *yyCharClass;
executed 2698 times by 107 tests: charClass = *yyCharClass;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
2698
3703 int tok = yyTok;-
3704 bool mayCapture = yyMayCapture;-
3705#endif-
3706-
3707 parseAtom(box);-
3708#ifndef QT_NO_REGEXP_CAPTURE-
3709 finishAtom(innerAtom, magicLeftParen);-
3710#endif-
3711-
3712 bool hasQuantifier = (yyTok == Tok_Quantifier);-
3713 if (hasQuantifier) {
hasQuantifierDescription
TRUEevaluated 2455 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 25047 times by 89 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
2455-25047
3714#ifndef QT_NO_REGEXP_OPTIM-
3715 trivial = false;-
3716#endif-
3717 if (yyMaxRep == InftyRep) {
yyMaxRep == InftyRepDescription
TRUEevaluated 2194 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 261 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QTime
261-2194
3718 box->plus(innerAtom);-
3719#ifndef QT_NO_REGEXP_INTERVAL-
3720 } else if (yyMaxRep == 0) {
executed 2194 times by 97 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
yyMaxRep == 0Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QRegExp
FALSEevaluated 239 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QTime
22-2194
3721 box->clear();-
3722#endif-
3723 }
executed 22 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QRegExp
22
3724 if (yyMinRep == 0)
yyMinRep == 0Description
TRUEevaluated 2100 times by 93 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 355 times by 26 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • ...
355-2100
3725 box->opt();
executed 2100 times by 93 tests: box->opt();
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2100
3726-
3727#ifndef QT_NO_REGEXP_INTERVAL-
3728 yyMayCapture = false;-
3729 int alpha = (yyMinRep == 0) ? 0 : yyMinRep - 1;
(yyMinRep == 0)Description
TRUEevaluated 2100 times by 93 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 355 times by 26 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLibrary
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTime
  • ...
355-2100
3730 int beta = (yyMaxRep == InftyRep) ? 0 : yyMaxRep - (alpha + 1);
(yyMaxRep == InftyRep)Description
TRUEevaluated 2194 times by 97 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 261 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QTime
261-2194
3731-
3732 Box rightBox(this);-
3733 int i;-
3734-
3735 for (i = 0; i < beta; i++) {
i < betaDescription
TRUEevaluated 96 times by 8 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTime
FALSEevaluated 2455 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
96-2455
3736 YYREDO();-
3737 Box leftBox(this);-
3738 parseAtom(&leftBox);-
3739 leftBox.cat(rightBox);-
3740 leftBox.opt();-
3741 rightBox = leftBox;-
3742 }
executed 96 times by 8 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QTime
96
3743 for (i = 0; i < alpha; i++) {
i < alphaDescription
TRUEevaluated 405 times by 6 tests
Evaluated by:
  • tst_QFtp
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
FALSEevaluated 2455 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
405-2455
3744 YYREDO();-
3745 Box leftBox(this);-
3746 parseAtom(&leftBox);-
3747 leftBox.cat(rightBox);-
3748 rightBox = leftBox;-
3749 }
executed 405 times by 6 tests: end of block
Executed by:
  • tst_QFtp
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QTextEdit
405
3750 rightBox.cat(*box);-
3751 *box = rightBox;-
3752#endif-
3753 yyTok = getToken();-
3754#ifndef QT_NO_REGEXP_INTERVAL-
3755 yyMayCapture = mayCapture;-
3756#endif-
3757 }
executed 2455 times by 98 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
2455
3758#undef YYREDO-
3759#ifndef QT_NO_REGEXP_CAPTURE-
3760 if (greedyQuantifiers)
greedyQuantifiersDescription
TRUEevaluated 2459 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 25043 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
2459-25043
3761 finishAtom(outerAtom, hasQuantifier);
executed 2459 times by 1 test: finishAtom(outerAtom, hasQuantifier);
Executed by:
  • tst_QRegExp
2459
3762#endif-
3763}
executed 27502 times by 110 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
27502
3764-
3765void QRegExpEngine::parseTerm(Box *box)-
3766{-
3767#ifndef QT_NO_REGEXP_OPTIM-
3768 if (yyTok != Tok_Eos && yyTok != Tok_RightParen && yyTok != Tok_Bar)
yyTok != Tok_EosDescription
TRUEevaluated 3654 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 154 times by 21 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSslCertificate
  • tst_QStateMachine
  • tst_QString
  • tst_QTableView
  • tst_QTreeView
  • tst_QVariant
  • tst_qmakelib
yyTok != Tok_RightParenDescription
TRUEevaluated 3567 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 87 times by 6 tests
Evaluated by:
  • tst_QDataStream
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QString
yyTok != Tok_BarDescription
TRUEevaluated 3551 times by 110 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QRegExp
16-3654
3769 parseFactor(box);
executed 3551 times by 110 tests: parseFactor(box);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
3551
3770#endif-
3771 while (yyTok != Tok_Eos && yyTok != Tok_RightParen && yyTok != Tok_Bar) {
yyTok != Tok_EosDescription
TRUEevaluated 26206 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1553 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
yyTok != Tok_RightParenDescription
TRUEevaluated 24417 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1789 times by 25 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
yyTok != Tok_BarDescription
TRUEevaluated 23951 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 466 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466-26206
3772 Box rightBox(this);-
3773 parseFactor(&rightBox);-
3774 box->cat(rightBox);-
3775 }
executed 23951 times by 81 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
23951
3776}
executed 3808 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
3808
3777-
3778void QRegExpEngine::parseExpression(Box *box)-
3779{-
3780 parseTerm(box);-
3781 while (yyTok == Tok_Bar) {
yyTok == Tok_BarDescription
TRUEevaluated 466 times by 11 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 3342 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
466-3342
3782#ifndef QT_NO_REGEXP_OPTIM-
3783 trivial = false;-
3784#endif-
3785 Box rightBox(this);-
3786 yyTok = getToken();-
3787 parseTerm(&rightBox);-
3788 box->orx(rightBox);-
3789 }
executed 466 times by 11 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFtp
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslKey
466
3790}
executed 3342 times by 116 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
3342
3791-
3792/*-
3793 The struct QRegExpPrivate contains the private data of a regular-
3794 expression other than the automaton. It makes it possible for many-
3795 QRegExp objects to use the same QRegExpEngine object with different-
3796 QRegExpPrivate objects.-
3797*/-
3798struct QRegExpPrivate-
3799{-
3800 QRegExpEngine *eng;-
3801 QRegExpEngineKey engineKey;-
3802 bool minimal;-
3803#ifndef QT_NO_REGEXP_CAPTURE-
3804 QString t; // last string passed to QRegExp::indexIn() or lastIndexIn()-
3805 QStringList capturedCache; // what QRegExp::capturedTexts() returned last-
3806#endif-
3807 QRegExpMatchState matchState;-
3808-
3809 inline QRegExpPrivate()-
3810 : eng(0), engineKey(QString(), QRegExp::RegExp, Qt::CaseSensitive), minimal(false) { }
executed 467872 times by 154 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
467872
3811 inline QRegExpPrivate(const QRegExpEngineKey &key)-
3812 : eng(0), engineKey(key), minimal(false) {}
executed 156415 times by 161 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
156415
3813};-
3814-
3815#if !defined(QT_NO_REGEXP_OPTIM)-
3816typedef QCache<QRegExpEngineKey, QRegExpEngine> EngineCache;-
3817Q_GLOBAL_STATIC(EngineCache, globalEngineCache)
executed 413 times by 286 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • ...
executed 413 times by 286 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_collections - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • ...
executed 629042 times by 167 tests: return &holder.value;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 413 times by 286 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • ...
FALSEnever evaluated
0-629042
3818static QBasicMutex globalEngineCacheMutex;-
3819#endif // QT_NO_REGEXP_OPTIM-
3820-
3821static void derefEngine(QRegExpEngine *eng, const QRegExpEngineKey &key)-
3822{-
3823 if (!eng->ref.deref()) {
!eng->ref.deref()Description
TRUEevaluated 157259 times by 167 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEevaluated 467662 times by 152 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
157259-467662
3824#if !defined(QT_NO_REGEXP_OPTIM)-
3825 if (globalEngineCache()) {
globalEngineCache()Description
TRUEevaluated 157259 times by 167 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEnever evaluated
0-157259
3826 QMutexLocker locker(&globalEngineCacheMutex);-
3827 QT_TRY {-
3828 globalEngineCache()->insert(key, eng, 4 + key.pattern.length() / 4);-
3829 } QT_CATCH(const std::bad_alloc &) {
executed 157259 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157259
3830 // in case of an exception (e.g. oom), just delete the engine-
3831 delete eng;-
3832 }
never executed: end of block
0
3833 } else {-
3834 delete eng;-
3835 }
never executed: end of block
0
3836#else-
3837 Q_UNUSED(key);-
3838 delete eng;-
3839#endif-
3840 }-
3841}
executed 624921 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
624921
3842-
3843static void prepareEngine_helper(QRegExpPrivate *priv)-
3844{-
3845 bool initMatchState = !priv->eng;-
3846#if !defined(QT_NO_REGEXP_OPTIM)-
3847 if (!priv->eng && globalEngineCache()) {
!priv->engDescription
TRUEevaluated 157262 times by 162 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEnever evaluated
globalEngineCache()Description
TRUEevaluated 157262 times by 162 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEnever evaluated
0-157262
3848 QMutexLocker locker(&globalEngineCacheMutex);-
3849 priv->eng = globalEngineCache()->take(priv->engineKey);-
3850 if (priv->eng != 0)
priv->eng != 0Description
TRUEevaluated 155710 times by 131 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
FALSEevaluated 1552 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1552-155710
3851 priv->eng->ref.ref();
executed 155710 times by 131 tests: priv->eng->ref.ref();
Executed by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
155710
3852 }
executed 157262 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157262
3853#endif // QT_NO_REGEXP_OPTIM-
3854-
3855 if (!priv->eng)
!priv->engDescription
TRUEevaluated 1552 times by 116 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 155710 times by 131 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
1552-155710
3856 priv->eng = new QRegExpEngine(priv->engineKey);
executed 1552 times by 116 tests: priv->eng = new QRegExpEngine(priv->engineKey);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
1552
3857-
3858 if (initMatchState)
initMatchStateDescription
TRUEevaluated 157262 times by 162 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEnever evaluated
0-157262
3859 priv->matchState.prepareForMatch(priv->eng);
executed 157262 times by 162 tests: priv->matchState.prepareForMatch(priv->eng);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157262
3860}
executed 157262 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157262
3861-
3862inline static void prepareEngine(QRegExpPrivate *priv)-
3863{-
3864 if (priv->eng)
priv->engDescription
TRUEevaluated 1558958 times by 162 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEevaluated 157262 times by 162 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157262-1558958
3865 return;
executed 1558958 times by 162 tests: return;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
1558958
3866 prepareEngine_helper(priv);-
3867}
executed 157262 times by 162 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
157262
3868-
3869static void prepareEngineForMatch(QRegExpPrivate *priv, const QString &str)-
3870{-
3871 prepareEngine(priv);-
3872 priv->matchState.prepareForMatch(priv->eng);-
3873#ifndef QT_NO_REGEXP_CAPTURE-
3874 priv->t = str;-
3875 priv->capturedCache.clear();-
3876#else-
3877 Q_UNUSED(str);-
3878#endif-
3879}
executed 994552 times by 88 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
994552
3880-
3881static void invalidateEngine(QRegExpPrivate *priv)-
3882{-
3883 if (priv->eng != 0) {
priv->eng != 0Description
TRUEevaluated 624921 times by 167 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
FALSEevaluated 467301 times by 152 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
467301-624921
3884 derefEngine(priv->eng, priv->engineKey);-
3885 priv->eng = 0;-
3886 priv->matchState.drain();-
3887 }
executed 624921 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
624921
3888}
executed 1092222 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
1092222
3889-
3890/*!-
3891 \enum QRegExp::CaretMode-
3892-
3893 The CaretMode enum defines the different meanings of the caret-
3894 (\b{^}) in a regular expression. The possible values are:-
3895-
3896 \value CaretAtZero-
3897 The caret corresponds to index 0 in the searched string.-
3898-
3899 \value CaretAtOffset-
3900 The caret corresponds to the start offset of the search.-
3901-
3902 \value CaretWontMatch-
3903 The caret never matches.-
3904*/-
3905-
3906/*!-
3907 \enum QRegExp::PatternSyntax-
3908-
3909 The syntax used to interpret the meaning of the pattern.-
3910-
3911 \value RegExp A rich Perl-like pattern matching syntax. This is-
3912 the default.-
3913-
3914 \value RegExp2 Like RegExp, but with \l{greedy quantifiers}.-
3915 (Introduced in Qt 4.2.)-
3916-
3917 \value Wildcard This provides a simple pattern matching syntax-
3918 similar to that used by shells (command interpreters) for "file-
3919 globbing". See \l{QRegExp wildcard matching}.-
3920-
3921 \value WildcardUnix This is similar to Wildcard but with the-
3922 behavior of a Unix shell. The wildcard characters can be escaped-
3923 with the character "\\".-
3924-
3925 \value FixedString The pattern is a fixed string. This is-
3926 equivalent to using the RegExp pattern on a string in-
3927 which all metacharacters are escaped using escape().-
3928-
3929 \value W3CXmlSchema11 The pattern is a regular expression as-
3930 defined by the W3C XML Schema 1.1 specification.-
3931-
3932 \sa setPatternSyntax()-
3933*/-
3934-
3935/*!-
3936 Constructs an empty regexp.-
3937-
3938 \sa isValid(), errorString()-
3939*/-
3940QRegExp::QRegExp()-
3941{-
3942 priv = new QRegExpPrivate;-
3943 prepareEngine(priv);-
3944}
executed 609 times by 19 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTreeView
  • tst_QVariant
  • tst_qmakelib
609
3945-
3946/*!-
3947 Constructs a regular expression object for the given \a pattern-
3948 string. The pattern must be given using wildcard notation if \a-
3949 syntax is \l Wildcard; the default is \l RegExp. The pattern is-
3950 case sensitive, unless \a cs is Qt::CaseInsensitive. Matching is-
3951 greedy (maximal), but can be changed by calling-
3952 setMinimal().-
3953-
3954 \sa setPattern(), setCaseSensitivity(), setPatternSyntax()-
3955*/-
3956QRegExp::QRegExp(const QString &pattern, Qt::CaseSensitivity cs, PatternSyntax syntax)-
3957{-
3958 priv = new QRegExpPrivate(QRegExpEngineKey(pattern, syntax, cs));-
3959 prepareEngine(priv);-
3960}
executed 156415 times by 161 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
156415
3961-
3962/*!-
3963 Constructs a regular expression as a copy of \a rx.-
3964-
3965 \sa operator=()-
3966*/-
3967QRegExp::QRegExp(const QRegExp &rx)-
3968{-
3969 priv = new QRegExpPrivate;-
3970 operator=(rx);-
3971}
executed 467263 times by 152 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
467263
3972-
3973/*!-
3974 Destroys the regular expression and cleans up its internal data.-
3975*/-
3976QRegExp::~QRegExp()-
3977{-
3978 invalidateEngine(priv);-
3979 delete priv;-
3980}
executed 624284 times by 167 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
624284
3981-
3982/*!-
3983 Copies the regular expression \a rx and returns a reference to the-
3984 copy. The case sensitivity, wildcard, and minimal matching options-
3985 are also copied.-
3986*/-
3987QRegExp &QRegExp::operator=(const QRegExp &rx)-
3988{-
3989 prepareEngine(rx.priv); // to allow sharing-
3990 QRegExpEngine *otherEng = rx.priv->eng;-
3991 if (otherEng)
otherEngDescription
TRUEevaluated 467662 times by 152 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
FALSEnever evaluated
0-467662
3992 otherEng->ref.ref();
executed 467662 times by 152 tests: otherEng->ref.ref();
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
467662
3993 invalidateEngine(priv);-
3994 priv->eng = otherEng;-
3995 priv->engineKey = rx.priv->engineKey;-
3996 priv->minimal = rx.priv->minimal;-
3997#ifndef QT_NO_REGEXP_CAPTURE-
3998 priv->t = rx.priv->t;-
3999 priv->capturedCache = rx.priv->capturedCache;-
4000#endif-
4001 if (priv->eng)
priv->engDescription
TRUEevaluated 467662 times by 152 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
FALSEnever evaluated
0-467662
4002 priv->matchState.prepareForMatch(priv->eng);
executed 467662 times by 152 tests: priv->matchState.prepareForMatch(priv->eng);
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
467662
4003 priv->matchState.captured = rx.priv->matchState.captured;-
4004 return *this;
executed 467662 times by 152 tests: return *this;
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • ...
467662
4005}-
4006-
4007/*!-
4008 \fn QRegExp &QRegExp::operator=(QRegExp &&other)-
4009-
4010 Move-assigns \a other to this QRegExp instance.-
4011-
4012 \since 5.2-
4013*/-
4014-
4015/*!-
4016 \fn void QRegExp::swap(QRegExp &other)-
4017 \since 4.8-
4018-
4019 Swaps regular expression \a other with this regular-
4020 expression. This operation is very fast and never fails.-
4021*/-
4022-
4023/*!-
4024 Returns \c true if this regular expression is equal to \a rx;-
4025 otherwise returns \c false.-
4026-
4027 Two QRegExp objects are equal if they have the same pattern-
4028 strings and the same settings for case sensitivity, wildcard and-
4029 minimal matching.-
4030*/-
4031bool QRegExp::operator==(const QRegExp &rx) const-
4032{-
4033 return priv->engineKey == rx.priv->engineKey && priv->minimal == rx.priv->minimal;
executed 2237 times by 5 tests: return priv->engineKey == rx.priv->engineKey && priv->minimal == rx.priv->minimal;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QVariant
2237
4034}-
4035-
4036/*!-
4037 \since 5.6-
4038 \relates QRegExp-
4039-
4040 Returns the hash value for \a key, using-
4041 \a seed to seed the calculation.-
4042*/-
4043uint qHash(const QRegExp &key, uint seed) Q_DECL_NOTHROW-
4044{-
4045 QtPrivate::QHashCombine hash;-
4046 seed = hash(seed, key.priv->engineKey);-
4047 seed = hash(seed, key.priv->minimal);-
4048 return seed;
executed 2048 times by 1 test: return seed;
Executed by:
  • tst_QRegExp
2048
4049}-
4050-
4051/*!-
4052 \fn bool QRegExp::operator!=(const QRegExp &rx) const-
4053-
4054 Returns \c true if this regular expression is not equal to \a rx;-
4055 otherwise returns \c false.-
4056-
4057 \sa operator==()-
4058*/-
4059-
4060/*!-
4061 Returns \c true if the pattern string is empty; otherwise returns-
4062 false.-
4063-
4064 If you call exactMatch() with an empty pattern on an empty string-
4065 it will return true; otherwise it returns \c false since it operates-
4066 over the whole string. If you call indexIn() with an empty pattern-
4067 on \e any string it will return the start offset (0 by default)-
4068 because the empty pattern matches the 'emptiness' at the start of-
4069 the string. In this case the length of the match returned by-
4070 matchedLength() will be 0.-
4071-
4072 See QString::isEmpty().-
4073*/-
4074-
4075bool QRegExp::isEmpty() const-
4076{-
4077 return priv->engineKey.pattern.isEmpty();
executed 70068 times by 18 tests: return priv->engineKey.pattern.isEmpty();
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QTreeView
  • tst_qmakelib
70068
4078}-
4079-
4080/*!-
4081 Returns \c true if the regular expression is valid; otherwise returns-
4082 false. An invalid regular expression never matches.-
4083-
4084 The pattern \b{[a-z} is an example of an invalid pattern, since-
4085 it lacks a closing square bracket.-
4086-
4087 Note that the validity of a regexp may also depend on the setting-
4088 of the wildcard flag, for example \b{*.html} is a valid-
4089 wildcard regexp but an invalid full regexp.-
4090-
4091 \sa errorString()-
4092*/-
4093bool QRegExp::isValid() const-
4094{-
4095 if (priv->engineKey.pattern.isEmpty()) {
priv->engineKe...tern.isEmpty()Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QStateMachine
FALSEevaluated 2263 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_languageChange
  • tst_qstandardpaths
  • tst_uic
32-2263
4096 return true;
executed 32 times by 2 tests: return true;
Executed by:
  • tst_QRegExp
  • tst_QStateMachine
32
4097 } else {-
4098 prepareEngine(priv);-
4099 return priv->eng->isValid();
executed 2263 times by 7 tests: return priv->eng->isValid();
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QRegExp
  • tst_languageChange
  • tst_qstandardpaths
  • tst_uic
2263
4100 }-
4101}-
4102-
4103/*!-
4104 Returns the pattern string of the regular expression. The pattern-
4105 has either regular expression syntax or wildcard syntax, depending-
4106 on patternSyntax().-
4107-
4108 \sa patternSyntax(), caseSensitivity()-
4109*/-
4110QString QRegExp::pattern() const-
4111{-
4112 return priv->engineKey.pattern;
executed 610 times by 14 tests: return priv->engineKey.pattern;
Executed by:
  • tst_ModelTest
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QVariant
  • tst_languageChange
610
4113}-
4114-
4115/*!-
4116 Sets the pattern string to \a pattern. The case sensitivity,-
4117 wildcard, and minimal matching options are not changed.-
4118-
4119 \sa setPatternSyntax(), setCaseSensitivity()-
4120*/-
4121void QRegExp::setPattern(const QString &pattern)-
4122{-
4123 if (priv->engineKey.pattern != pattern) {
priv->engineKe...ern != patternDescription
TRUEevaluated 74 times by 4 tests
Evaluated by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_qmakelib
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSortFilterProxyModel
11-74
4124 invalidateEngine(priv);-
4125 priv->engineKey.pattern = pattern;-
4126 }
executed 74 times by 4 tests: end of block
Executed by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_qmakelib
74
4127}
executed 85 times by 4 tests: end of block
Executed by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_qmakelib
85
4128-
4129/*!-
4130 Returns Qt::CaseSensitive if the regexp is matched case-
4131 sensitively; otherwise returns Qt::CaseInsensitive.-
4132-
4133 \sa patternSyntax(), pattern(), isMinimal()-
4134*/-
4135Qt::CaseSensitivity QRegExp::caseSensitivity() const-
4136{-
4137 return priv->engineKey.cs;
executed 173 times by 3 tests: return priv->engineKey.cs;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
173
4138}-
4139-
4140/*!-
4141 Sets case sensitive matching to \a cs.-
4142-
4143 If \a cs is Qt::CaseSensitive, \b{\\.txt$} matches-
4144 \c{readme.txt} but not \c{README.TXT}.-
4145-
4146 \sa setPatternSyntax(), setPattern(), setMinimal()-
4147*/-
4148void QRegExp::setCaseSensitivity(Qt::CaseSensitivity cs)-
4149{-
4150 if ((bool)cs != (bool)priv->engineKey.cs) {
(bool)cs != (b...->engineKey.csDescription
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
16-63
4151 invalidateEngine(priv);-
4152 priv->engineKey.cs = cs;-
4153 }
executed 16 times by 3 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
16
4154}
executed 79 times by 4 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_qmakelib
79
4155-
4156/*!-
4157 Returns the syntax used by the regular expression. The default is-
4158 QRegExp::RegExp.-
4159-
4160 \sa pattern(), caseSensitivity()-
4161*/-
4162QRegExp::PatternSyntax QRegExp::patternSyntax() const-
4163{-
4164 return priv->engineKey.patternSyntax;
executed 177 times by 4 tests: return priv->engineKey.patternSyntax;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegExp
  • tst_QVariant
177
4165}-
4166-
4167/*!-
4168 Sets the syntax mode for the regular expression. The default is-
4169 QRegExp::RegExp.-
4170-
4171 Setting \a syntax to QRegExp::Wildcard enables simple shell-like-
4172 \l{QRegExp wildcard matching}. For example, \b{r*.txt} matches the-
4173 string \c{readme.txt} in wildcard mode, but does not match-
4174 \c{readme}.-
4175-
4176 Setting \a syntax to QRegExp::FixedString means that the pattern-
4177 is interpreted as a plain string. Special characters (e.g.,-
4178 backslash) don't need to be escaped then.-
4179-
4180 \sa setPattern(), setCaseSensitivity(), escape()-
4181*/-
4182void QRegExp::setPatternSyntax(PatternSyntax syntax)-
4183{-
4184 if (syntax != priv->engineKey.patternSyntax) {
syntax != priv....patternSyntaxDescription
TRUEevaluated 186 times by 4 tests
Evaluated by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QTextDocument
FALSEevaluated 45 times by 3 tests
Evaluated by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
45-186
4185 invalidateEngine(priv);-
4186 priv->engineKey.patternSyntax = syntax;-
4187 }
executed 186 times by 4 tests: end of block
Executed by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QTextDocument
186
4188}
executed 231 times by 4 tests: end of block
Executed by:
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QTextDocument
231
4189-
4190/*!-
4191 Returns \c true if minimal (non-greedy) matching is enabled;-
4192 otherwise returns \c false.-
4193-
4194 \sa caseSensitivity(), setMinimal()-
4195*/-
4196bool QRegExp::isMinimal() const-
4197{-
4198 return priv->minimal;
executed 173 times by 3 tests: return priv->minimal;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
173
4199}-
4200-
4201/*!-
4202 Enables or disables minimal matching. If \a minimal is false,-
4203 matching is greedy (maximal) which is the default.-
4204-
4205 For example, suppose we have the input string "We must be-
4206 <b>bold</b>, very <b>bold</b>!" and the pattern-
4207 \b{<b>.*</b>}. With the default greedy (maximal) matching,-
4208 the match is "We must be \underline{<b>bold</b>, very-
4209 <b>bold</b>}!". But with minimal (non-greedy) matching, the-
4210 first match is: "We must be \underline{<b>bold</b>}, very-
4211 <b>bold</b>!" and the second match is "We must be <b>bold</b>,-
4212 very \underline{<b>bold</b>}!". In practice we might use the pattern-
4213 \b{<b>[^<]*\</b>} instead, although this will still fail for-
4214 nested tags.-
4215-
4216 \sa setCaseSensitivity()-
4217*/-
4218void QRegExp::setMinimal(bool minimal)-
4219{-
4220 priv->minimal = minimal;-
4221}
executed 589 times by 5 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegExp
  • tst_QVariant
  • tst_selftests - unknown status
589
4222-
4223// ### Qt 5: make non-const-
4224/*!-
4225 Returns \c true if \a str is matched exactly by this regular-
4226 expression; otherwise returns \c false. You can determine how much of-
4227 the string was matched by calling matchedLength().-
4228-
4229 For a given regexp string R, exactMatch("R") is the equivalent of-
4230 indexIn("^R$") since exactMatch() effectively encloses the regexp-
4231 in the start of string and end of string anchors, except that it-
4232 sets matchedLength() differently.-
4233-
4234 For example, if the regular expression is \b{blue}, then-
4235 exactMatch() returns \c true only for input \c blue. For inputs \c-
4236 bluebell, \c blutak and \c lightblue, exactMatch() returns \c false-
4237 and matchedLength() will return 4, 3 and 0 respectively.-
4238-
4239 Although const, this function sets matchedLength(),-
4240 capturedTexts(), and pos().-
4241-
4242 \sa indexIn(), lastIndexIn()-
4243*/-
4244bool QRegExp::exactMatch(const QString &str) const-
4245{-
4246 prepareEngineForMatch(priv, str);-
4247 priv->matchState.match(str.unicode(), str.length(), 0, priv->minimal, true, 0);-
4248 if (priv->matchState.captured[1] == str.length()) {
priv->matchSta...= str.length()Description
TRUEevaluated 218548 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStringList
  • ...
FALSEevaluated 383147 times by 52 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
218548-383147
4249 return true;
executed 218548 times by 36 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QPlugin
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStringList
  • ...
218548
4250 } else {-
4251 priv->matchState.captured[0] = 0;-
4252 priv->matchState.captured[1] = priv->matchState.oneTestMatchedLen;-
4253 return false;
executed 383147 times by 52 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
383147
4254 }-
4255}-
4256-
4257// ### Qt 5: make non-const-
4258/*!-
4259 Attempts to find a match in \a str from position \a offset (0 by-
4260 default). If \a offset is -1, the search starts at the last-
4261 character; if -2, at the next to last character; etc.-
4262-
4263 Returns the position of the first match, or -1 if there was no-
4264 match.-
4265-
4266 The \a caretMode parameter can be used to instruct whether \b{^}-
4267 should match at index 0 or at \a offset.-
4268-
4269 You might prefer to use QString::indexOf(), QString::contains(),-
4270 or even QStringList::filter(). To replace matches use-
4271 QString::replace().-
4272-
4273 Example:-
4274 \snippet code/src_corelib_tools_qregexp.cpp 13-
4275-
4276 Although const, this function sets matchedLength(),-
4277 capturedTexts() and pos().-
4278-
4279 If the QRegExp is a wildcard expression (see setPatternSyntax())-
4280 and want to test a string against the whole wildcard expression,-
4281 use exactMatch() instead of this function.-
4282-
4283 \sa lastIndexIn(), exactMatch()-
4284*/-
4285-
4286int QRegExp::indexIn(const QString &str, int offset, CaretMode caretMode) const-
4287{-
4288 prepareEngineForMatch(priv, str);-
4289 if (offset < 0)
offset < 0Description
TRUEnever evaluated
FALSEevaluated 391908 times by 49 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • ...
0-391908
4290 offset += str.length();
never executed: offset += str.length();
0
4291 priv->matchState.match(str.unicode(), str.length(), offset,-
4292 priv->minimal, false, caretIndex(offset, caretMode));-
4293 return priv->matchState.captured[0];
executed 391908 times by 49 tests: return priv->matchState.captured[0];
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinterInfo
  • ...
391908
4294}-
4295-
4296// ### Qt 5: make non-const-
4297/*!-
4298 Attempts to find a match backwards in \a str from position \a-
4299 offset. If \a offset is -1 (the default), the search starts at the-
4300 last character; if -2, at the next to last character; etc.-
4301-
4302 Returns the position of the first match, or -1 if there was no-
4303 match.-
4304-
4305 The \a caretMode parameter can be used to instruct whether \b{^}-
4306 should match at index 0 or at \a offset.-
4307-
4308 Although const, this function sets matchedLength(),-
4309 capturedTexts() and pos().-
4310-
4311 \warning Searching backwards is much slower than searching-
4312 forwards.-
4313-
4314 \sa indexIn(), exactMatch()-
4315*/-
4316-
4317int QRegExp::lastIndexIn(const QString &str, int offset, CaretMode caretMode) const-
4318{-
4319 prepareEngineForMatch(priv, str);-
4320 if (offset < 0)
offset < 0Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 925 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
24-925
4321 offset += str.length();
executed 24 times by 1 test: offset += str.length();
Executed by:
  • tst_QString
24
4322 if (offset < 0 || offset > str.length()) {
offset < 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 941 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
offset > str.length()Description
TRUEnever evaluated
FALSEevaluated 941 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
0-941
4323 memset(priv->matchState.captured, -1, priv->matchState.capturedSize*sizeof(int));-
4324 return -1;
executed 8 times by 1 test: return -1;
Executed by:
  • tst_QString
8
4325 }-
4326-
4327 while (offset >= 0) {
offset >= 0Description
TRUEevaluated 31883 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
FALSEevaluated 602 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
602-31883
4328 priv->matchState.match(str.unicode(), str.length(), offset,-
4329 priv->minimal, true, caretIndex(offset, caretMode));-
4330 if (priv->matchState.captured[0] == offset)
priv->matchSta...d[0] == offsetDescription
TRUEevaluated 339 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
FALSEevaluated 31544 times by 5 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
339-31544
4331 return offset;
executed 339 times by 5 tests: return offset;
Executed by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
339
4332 --offset;-
4333 }
executed 31544 times by 5 tests: end of block
Executed by:
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
  • tst_QTextEdit
31544
4334 return -1;
executed 602 times by 3 tests: return -1;
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
602
4335}-
4336-
4337/*!-
4338 Returns the length of the last matched string, or -1 if there was-
4339 no match.-
4340-
4341 \sa exactMatch(), indexIn(), lastIndexIn()-
4342*/-
4343int QRegExp::matchedLength() const-
4344{-
4345 return priv->matchState.captured[1];
executed 26858 times by 27 tests: return priv->matchState.captured[1];
Executed by:
  • tst_Lancelot
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QRegExp
  • tst_QRegExpValidator
  • tst_QSharedMemory
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_languageChange
  • tst_qmakelib
  • ...
26858
4346}-
4347-
4348#ifndef QT_NO_REGEXP_CAPTURE-
4349-
4350/*!-
4351 \since 4.6-
4352 Returns the number of captures contained in the regular expression.-
4353 */-
4354int QRegExp::captureCount() const-
4355{-
4356 prepareEngine(priv);-
4357 return priv->eng->captureCount();
executed 90738 times by 17 tests: return priv->eng->captureCount();
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
90738
4358}-
4359-
4360/*!-
4361 Returns a list of the captured text strings.-
4362-
4363 The first string in the list is the entire matched string. Each-
4364 subsequent list element contains a string that matched a-
4365 (capturing) subexpression of the regexp.-
4366-
4367 For example:-
4368 \snippet code/src_corelib_tools_qregexp.cpp 14-
4369-
4370 The above example also captures elements that may be present but-
4371 which we have no interest in. This problem can be solved by using-
4372 non-capturing parentheses:-
4373-
4374 \snippet code/src_corelib_tools_qregexp.cpp 15-
4375-
4376 Note that if you want to iterate over the list, you should iterate-
4377 over a copy, e.g.-
4378 \snippet code/src_corelib_tools_qregexp.cpp 16-
4379-
4380 Some regexps can match an indeterminate number of times. For-
4381 example if the input string is "Offsets: 12 14 99 231 7" and the-
4382 regexp, \c{rx}, is \b{(\\d+)+}, we would hope to get a list of-
4383 all the numbers matched. However, after calling-
4384 \c{rx.indexIn(str)}, capturedTexts() will return the list ("12",-
4385 "12"), i.e. the entire match was "12" and the first subexpression-
4386 matched was "12". The correct approach is to use cap() in a-
4387 \l{QRegExp#cap_in_a_loop}{loop}.-
4388-
4389 The order of elements in the string list is as follows. The first-
4390 element is the entire matching string. Each subsequent element-
4391 corresponds to the next capturing open left parentheses. Thus-
4392 capturedTexts()[1] is the text of the first capturing parentheses,-
4393 capturedTexts()[2] is the text of the second and so on-
4394 (corresponding to $1, $2, etc., in some other regexp languages).-
4395-
4396 \sa cap(), pos()-
4397*/-
4398QStringList QRegExp::capturedTexts() const-
4399{-
4400 if (priv->capturedCache.isEmpty()) {
priv->capturedCache.isEmpty()Description
TRUEevaluated 3981 times by 21 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 335 times by 6 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
335-3981
4401 prepareEngine(priv);-
4402 const int *captured = priv->matchState.captured;-
4403 int n = priv->matchState.capturedSize;-
4404-
4405 for (int i = 0; i < n; i += 2) {
i < nDescription
TRUEevaluated 16628 times by 21 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 3981 times by 21 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
3981-16628
4406 QString m;-
4407 if (captured[i + 1] == 0)
captured[i + 1] == 0Description
TRUEevaluated 160 times by 1 test
Evaluated by:
  • tst_QRegExp
FALSEevaluated 16468 times by 21 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
160-16468
4408 m = QLatin1String(""); // ### Qt 5: don't distinguish between null and empty
executed 160 times by 1 test: m = QLatin1String("");
Executed by:
  • tst_QRegExp
160
4409 else if (captured[i] >= 0)
captured[i] >= 0Description
TRUEevaluated 11480 times by 21 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 4988 times by 9 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QString
  • tst_QTime
  • tst_qmakelib
4988-11480
4410 m = priv->t.mid(captured[i], captured[i + 1]);
executed 11480 times by 21 tests: m = priv->t.mid(captured[i], captured[i + 1]);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
11480
4411 priv->capturedCache.append(m);-
4412 }
executed 16628 times by 21 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
16628
4413 priv->t.clear();-
4414 }
executed 3981 times by 21 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
3981
4415 return priv->capturedCache;
executed 4316 times by 21 tests: return priv->capturedCache;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTemporaryDir
  • tst_QTextDocument
  • tst_QTime
  • tst_languageChange
  • tst_qmakelib
  • tst_qstandardpaths
4316
4416}-
4417-
4418/*!-
4419 \internal-
4420*/-
4421QStringList QRegExp::capturedTexts()-
4422{-
4423 return const_cast<const QRegExp *>(this)->capturedTexts();
executed 3136 times by 11 tests: return const_cast<const QRegExp *>(this)->capturedTexts();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QTemporaryDir
  • tst_QTime
  • tst_qstandardpaths
3136
4424}-
4425-
4426/*!-
4427 Returns the text captured by the \a nth subexpression. The entire-
4428 match has index 0 and the parenthesized subexpressions have-
4429 indexes starting from 1 (excluding non-capturing parentheses).-
4430-
4431 \snippet code/src_corelib_tools_qregexp.cpp 17-
4432-
4433 The order of elements matched by cap() is as follows. The first-
4434 element, cap(0), is the entire matching string. Each subsequent-
4435 element corresponds to the next capturing open left parentheses.-
4436 Thus cap(1) is the text of the first capturing parentheses, cap(2)-
4437 is the text of the second, and so on.-
4438-
4439 \sa capturedTexts(), pos()-
4440*/-
4441QString QRegExp::cap(int nth) const-
4442{-
4443 return capturedTexts().value(nth);
executed 1180 times by 12 tests: return capturedTexts().value(nth);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
1180
4444}-
4445-
4446/*!-
4447 \internal-
4448*/-
4449QString QRegExp::cap(int nth)-
4450{-
4451 return const_cast<const QRegExp *>(this)->cap(nth);
executed 1180 times by 12 tests: return const_cast<const QRegExp *>(this)->cap(nth);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
1180
4452}-
4453-
4454/*!-
4455 Returns the position of the \a nth captured text in the searched-
4456 string. If \a nth is 0 (the default), pos() returns the position-
4457 of the whole match.-
4458-
4459 Example:-
4460 \snippet code/src_corelib_tools_qregexp.cpp 18-
4461-
4462 For zero-length matches, pos() always returns -1. (For example, if-
4463 cap(4) would return an empty string, pos(4) returns -1.) This is-
4464 a feature of the implementation.-
4465-
4466 \sa cap(), capturedTexts()-
4467*/-
4468int QRegExp::pos(int nth) const-
4469{-
4470 if (nth < 0 || nth >= priv->matchState.capturedSize / 2)
nth < 0Description
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QRegExp
nth >= priv->m...pturedSize / 2Description
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QRegExp
0-52
4471 return -1;
never executed: return -1;
0
4472 else-
4473 return priv->matchState.captured[2 * nth];
executed 52 times by 1 test: return priv->matchState.captured[2 * nth];
Executed by:
  • tst_QRegExp
52
4474}-
4475-
4476/*!-
4477 \internal-
4478*/-
4479int QRegExp::pos(int nth)-
4480{-
4481 return const_cast<const QRegExp *>(this)->pos(nth);
executed 52 times by 1 test: return const_cast<const QRegExp *>(this)->pos(nth);
Executed by:
  • tst_QRegExp
52
4482}-
4483-
4484/*!-
4485 Returns a text string that explains why a regexp pattern is-
4486 invalid the case being; otherwise returns "no error occurred".-
4487-
4488 \sa isValid()-
4489*/-
4490QString QRegExp::errorString() const-
4491{-
4492 if (isValid()) {
isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
4493 return QString::fromLatin1(RXERR_OK);
never executed: return QString::fromLatin1("no error occurred");
0
4494 } else {-
4495 return priv->eng->errorString();
never executed: return priv->eng->errorString();
0
4496 }-
4497}-
4498-
4499/*!-
4500 \internal-
4501*/-
4502QString QRegExp::errorString()-
4503{-
4504 return const_cast<const QRegExp *>(this)->errorString();
never executed: return const_cast<const QRegExp *>(this)->errorString();
0
4505}-
4506#endif-
4507-
4508/*!-
4509 Returns the string \a str with every regexp special character-
4510 escaped with a backslash. The special characters are $, (,), *, +,-
4511 ., ?, [, \,], ^, {, | and }.-
4512-
4513 Example:-
4514-
4515 \snippet code/src_corelib_tools_qregexp.cpp 19-
4516-
4517 This function is useful to construct regexp patterns dynamically:-
4518-
4519 \snippet code/src_corelib_tools_qregexp.cpp 20-
4520-
4521 \sa setPatternSyntax()-
4522*/-
4523QString QRegExp::escape(const QString &str)-
4524{-
4525 QString quoted;-
4526 const int count = str.count();-
4527 quoted.reserve(count * 2);-
4528 const QLatin1Char backslash('\\');-
4529 for (int i = 0; i < count; i++) {
i < countDescription
TRUEevaluated 17597 times by 14 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
FALSEevaluated 838 times by 14 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
838-17597
4530 switch (str.at(i).toLatin1()) {-
4531 case '$':
executed 2 times by 1 test: case '$':
Executed by:
  • tst_QString
2
4532 case '(':
executed 2 times by 1 test: case '(':
Executed by:
  • tst_QString
2
4533 case ')':
executed 2 times by 1 test: case ')':
Executed by:
  • tst_QString
2
4534 case '*':
executed 23 times by 3 tests: case '*':
Executed by:
  • tst_QSslCertificate
  • tst_QString
  • tst_qmakelib
23
4535 case '+':
executed 3 times by 2 tests: case '+':
Executed by:
  • tst_QString
  • tst_qmakelib
3
4536 case '.':
executed 24 times by 5 tests: case '.':
Executed by:
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_qmakelib
24
4537 case '?':
executed 2 times by 1 test: case '?':
Executed by:
  • tst_QString
2
4538 case '[':
executed 5 times by 3 tests: case '[':
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_qmakelib
5
4539 case '\\':
executed 2 times by 1 test: case '\\':
Executed by:
  • tst_QString
2
4540 case ']':
executed 5 times by 3 tests: case ']':
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_qmakelib
5
4541 case '^':
executed 2 times by 1 test: case '^':
Executed by:
  • tst_QString
2
4542 case '{':
executed 2 times by 1 test: case '{':
Executed by:
  • tst_QString
2
4543 case '|':
executed 4 times by 1 test: case '|':
Executed by:
  • tst_QString
4
4544 case '}':
executed 2 times by 1 test: case '}':
Executed by:
  • tst_QString
2
4545 quoted.append(backslash);-
4546 }
executed 80 times by 6 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_qmakelib
80
4547 quoted.append(str.at(i));-
4548 }
executed 17597 times by 14 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
17597
4549 return quoted;
executed 838 times by 14 tests: return quoted;
Executed by:
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
  • tst_qmakelib
838
4550}-
4551-
4552-
4553#ifndef QT_NO_DATASTREAM-
4554/*!-
4555 \relates QRegExp-
4556-
4557 Writes the regular expression \a regExp to stream \a out.-
4558-
4559 \sa {Serializing Qt Data Types}-
4560*/-
4561QDataStream &operator<<(QDataStream &out, const QRegExp &regExp)-
4562{-
4563 return out << regExp.pattern() << (quint8)regExp.caseSensitivity()
executed 173 times by 3 tests: return out << regExp.pattern() << (quint8)regExp.caseSensitivity() << (quint8)regExp.patternSyntax() << (quint8)!!regExp.isMinimal();
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
173
4564 << (quint8)regExp.patternSyntax()
executed 173 times by 3 tests: return out << regExp.pattern() << (quint8)regExp.caseSensitivity() << (quint8)regExp.patternSyntax() << (quint8)!!regExp.isMinimal();
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
173
4565 << (quint8)!!regExp.isMinimal();
executed 173 times by 3 tests: return out << regExp.pattern() << (quint8)regExp.caseSensitivity() << (quint8)regExp.patternSyntax() << (quint8)!!regExp.isMinimal();
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
173
4566}-
4567-
4568/*!-
4569 \relates QRegExp-
4570-
4571 Reads a regular expression from stream \a in into \a regExp.-
4572-
4573 \sa {Serializing Qt Data Types}-
4574*/-
4575QDataStream &operator>>(QDataStream &in, QRegExp &regExp)-
4576{-
4577 QString pattern;-
4578 quint8 cs;-
4579 quint8 patternSyntax;-
4580 quint8 isMinimal;-
4581-
4582 in >> pattern >> cs >> patternSyntax >> isMinimal;-
4583-
4584 QRegExp newRegExp(pattern, Qt::CaseSensitivity(cs),-
4585 QRegExp::PatternSyntax(patternSyntax));-
4586-
4587 newRegExp.setMinimal(isMinimal);-
4588 regExp = newRegExp;-
4589 return in;
executed 177 times by 3 tests: return in;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
177
4590}-
4591#endif // QT_NO_DATASTREAM-
4592-
4593#ifndef QT_NO_DEBUG_STREAM-
4594QDebug operator<<(QDebug dbg, const QRegExp &r)-
4595{-
4596 QDebugStateSaver saver(dbg);-
4597 dbg.nospace() << "QRegExp(patternSyntax=" << r.patternSyntax()-
4598 << ", pattern='"<< r.pattern() << "')";-
4599 return dbg;
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
1
4600}-
4601#endif-
4602-
4603QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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