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

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