qstringmatcher.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstringmatcher.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static void bm_init_skiptable(const ushort *uc, int len, uchar *skiptable, Qt::CaseSensitivity cs)-
4{-
5 int l = qMin(len, 255);-
6 memset(skiptable, l, 256*sizeof(uchar));-
7 uc += len - l;-
8 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 393398 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 190 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
) {
190-393398
9 while (l--
l--Description
TRUEevaluated 4688427 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 393398 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
) {
393398-4688427
10 skiptable[*uc & 0xff] = l;-
11 uc++;-
12 }
executed 4688427 times by 115 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
4688427
13 }
executed 393398 times by 115 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
else {
393398
14 const ushort *start = uc;-
15 while (l--
l--Description
TRUEevaluated 6581 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
FALSEevaluated 190 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
) {
190-6581
16 skiptable[foldCase(uc, start) & 0xff] = l;-
17 uc++;-
18 }
executed 6581 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
6581
19 }
executed 190 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
190
20}-
21-
22static inline int bm_find(const ushort *uc, uint l, int index, const ushort *puc, uint pl,-
23 const uchar *skiptable, Qt::CaseSensitivity cs)-
24{-
25 if (pl == 0
pl == 0Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringMatcher
FALSEevaluated 397045 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
34-397045
26 return
executed 34 times by 2 tests: return index > (int)l ? -1 : index;
Executed by:
  • tst_QString
  • tst_QStringMatcher
index > (int)l ? -1 : index;
executed 34 times by 2 tests: return index > (int)l ? -1 : index;
Executed by:
  • tst_QString
  • tst_QStringMatcher
34
27 const uint pl_minus_one = pl - 1;-
28-
29 const ushort *current = uc + index + pl_minus_one;-
30 const ushort *end = uc + l;-
31 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 396242 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 803 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
) {
803-396242
32 while (current < end
current < endDescription
TRUEevaluated 164594537 times by 115 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 78537 times by 99 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFont
  • ...
) {
78537-164594537
33 uint skip = skiptable[*current & 0xff];-
34 if (!skip
!skipDescription
TRUEevaluated 220408 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 164255192 times by 114 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
) {
220408-164255192
35-
36 while (skip < pl
skip < plDescription
TRUEevaluated 736857 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 203495 times by 46 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
) {
203495-736857
37 if (*(
*(current - sk...inus_one-skip]Description
TRUEevaluated 16913 times by 17 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget_window
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 719944 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
current - skip) != puc[pl_minus_one-skip]
*(current - sk...inus_one-skip]Description
TRUEevaluated 16913 times by 17 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget_window
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 719944 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
)
16913-719944
38 break;
executed 16913 times by 17 tests: break;
Executed by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget_window
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
16913
39 skip++;-
40 }
executed 719944 times by 48 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
719944
41 if (skip > pl_minus_one
skip > pl_minus_oneDescription
TRUEevaluated 203495 times by 46 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 16913 times by 17 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget_window
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
)
16913-203495
42 return
executed 203495 times by 46 tests: return (current - uc) - pl_minus_one;
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
(current - uc) - pl_minus_one;
executed 203495 times by 46 tests: return (current - uc) - pl_minus_one;
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
203495
43-
44-
45-
46 if (skiptable[*(current - skip) & 0xff] == pl
skiptable[*(cu... & 0xff] == plDescription
TRUEevaluated 1865 times by 14 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
FALSEevaluated 15048 times by 8 tests
Evaluated by:
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QWidget_window
  • tst_uic
)
1865-15048
47 skip = pl - skip;
executed 1865 times by 14 tests: skip = pl - skip;
Executed by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_qmakelib
  • tst_selftests - unknown status
  • tst_uic
1865
48 else-
49 skip = 1;
executed 15048 times by 8 tests: skip = 1;
Executed by:
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QWidget_window
  • tst_uic
15048
50 }-
51 if (current > end - skip
current > end - skipDescription
TRUEevaluated 114210 times by 57 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
FALSEevaluated 169078831 times by 114 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
114210-169078831
52 break;
executed 114210 times by 57 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
114210
53 current += skip;-
54 }
executed 175264912 times by 114 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
175264912
55 }
executed 192747 times by 112 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
else {
192747
56 while (current < end
current < endDescription
TRUEevaluated 900 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
FALSEevaluated 255 times by 7 tests
Evaluated by:
  • tst_Collections
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
) {
255-900
57 uint skip = skiptable[foldCase(current, uc) & 0xff];-
58 if (!skip
!skipDescription
TRUEevaluated 234 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
FALSEevaluated 666 times by 7 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
) {
234-666
59-
60 while (skip < pl
skip < plDescription
TRUEevaluated 10022 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
FALSEevaluated 188 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
) {
188-10022
61 if (foldCase(current - skip, uc) != foldCase(puc + pl_minus_one - skip, puc)
foldCase(curre...e - skip, puc)Description
TRUEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
FALSEevaluated 9976 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
)
46-9976
62 break;
executed 46 times by 8 tests: break;
Executed by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
46
63 skip++;-
64 }
executed 9976 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
9976
65 if (skip > pl_minus_one
skip > pl_minus_oneDescription
TRUEevaluated 188 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
FALSEevaluated 46 times by 8 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
)
46-188
66 return
executed 188 times by 12 tests: return (current - uc) - pl_minus_one;
Executed by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
(current - uc) - pl_minus_one;
executed 188 times by 12 tests: return (current - uc) - pl_minus_one;
Executed by:
  • tst_Collections
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
188
67-
68-
69 if (skiptable[foldCase(current - skip, uc) & 0xff] == pl
skiptable[fold... & 0xff] == plDescription
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
FALSEevaluated 27 times by 6 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
)
19-27
70 skip = pl - skip;
executed 19 times by 4 tests: skip = pl - skip;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
19
71 else-
72 skip = 1;
executed 27 times by 6 tests: skip = 1;
Executed by:
  • tst_QRegExp
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
27
73 }-
74 if (current > end - skip
current > end - skipDescription
TRUEevaluated 360 times by 7 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
FALSEevaluated 352 times by 9 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
)
352-360
75 break;
executed 360 times by 7 tests: break;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
360
76 current += skip;-
77 }
executed 352 times by 9 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
352
78 }
executed 615 times by 8 tests: end of block
Executed by:
  • tst_Collections
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
615
79 return
executed 193362 times by 112 tests: return -1;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
-1;
executed 193362 times by 112 tests: return -1;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
193362
80}-
81QStringMatcher::QStringMatcher()-
82 : d_ptr(0), q_cs(Qt::CaseSensitive)-
83{-
84 memset(q_data, 0, sizeof(q_data));-
85}
executed 14 times by 1 test: end of block
Executed by:
  • tst_QStringMatcher
14
86-
87-
88-
89-
90-
91-
92-
93QStringMatcher::QStringMatcher(const QString &pattern, Qt::CaseSensitivity cs)-
94 : d_ptr(0), q_pattern(pattern), q_cs(cs)-
95{-
96 p.uc = pattern.unicode();-
97 p.len = pattern.size();-
98 bm_init_skiptable((const ushort *)p.uc, p.len, p.q_skiptable, cs);-
99}
executed 216 times by 11 tests: end of block
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QStringMatcher
  • tst_selftests - unknown status
216
100QStringMatcher::QStringMatcher(const QChar *uc, int len, Qt::CaseSensitivity cs)-
101 : d_ptr(0), q_cs(cs)-
102{-
103 p.uc = uc;-
104 p.len = len;-
105 bm_init_skiptable((const ushort *)p.uc, len, p.q_skiptable, cs);-
106}
executed 393182 times by 112 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
393182
107-
108-
109-
110-
111QStringMatcher::QStringMatcher(const QStringMatcher &other)-
112 : d_ptr(0)-
113{-
114 operator=(other);-
115}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QStringMatcher
1
116-
117-
118-
119-
120QStringMatcher::~QStringMatcher()-
121{-
122 (void)d_ptr;;-
123}
executed 393413 times by 113 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
393413
124-
125-
126-
127-
128QStringMatcher &QStringMatcher::operator=(const QStringMatcher &other)-
129{-
130 if (this != &other
this != &otherDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringMatcher
FALSEnever evaluated
) {
0-2
131 q_pattern = other.q_pattern;-
132 q_cs = other.q_cs;-
133 memcpy(q_data, other.q_data, sizeof(q_data));-
134 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringMatcher
2
135 return
executed 2 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringMatcher
*this;
executed 2 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringMatcher
2
136}-
137-
138-
139-
140-
141-
142-
143-
144void QStringMatcher::setPattern(const QString &pattern)-
145{-
146 q_pattern = pattern;-
147 p.uc = pattern.unicode();-
148 p.len = pattern.size();-
149 bm_init_skiptable((const ushort *)pattern.unicode(), pattern.size(), p.q_skiptable, q_cs);-
150}
executed 12 times by 1 test: end of block
Executed by:
  • tst_QStringMatcher
12
151QString QStringMatcher::pattern() const-
152{-
153 if (!q_pattern.isEmpty()
!q_pattern.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringMatcher
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringMatcher
)
1
154 return
executed 1 time by 1 test: return q_pattern;
Executed by:
  • tst_QStringMatcher
q_pattern;
executed 1 time by 1 test: return q_pattern;
Executed by:
  • tst_QStringMatcher
1
155 return
executed 1 time by 1 test: return QString(p.uc, p.len);
Executed by:
  • tst_QStringMatcher
QString(p.uc, p.len);
executed 1 time by 1 test: return QString(p.uc, p.len);
Executed by:
  • tst_QStringMatcher
1
156}-
157-
158-
159-
160-
161-
162-
163-
164void QStringMatcher::setCaseSensitivity(Qt::CaseSensitivity cs)-
165{-
166 if (cs == q_cs
cs == q_csDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QStringMatcher
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QStringMatcher
)
2-3
167 return;
executed 3 times by 1 test: return;
Executed by:
  • tst_QStringMatcher
3
168 bm_init_skiptable((const ushort *)q_pattern.unicode(), q_pattern.size(), p.q_skiptable, cs);-
169 q_cs = cs;-
170}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QStringMatcher
2
171int QStringMatcher::indexIn(const QString &str, int from) const-
172{-
173 if (from < 0
from < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringMatcher
FALSEevaluated 195806 times by 106 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
1-195806
174 from = 0;
executed 1 time by 1 test: from = 0;
Executed by:
  • tst_QStringMatcher
1
175 return
executed 195807 times by 106 tests: return bm_find((const ushort *)str.unicode(), str.size(), from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
bm_find((const ushort *)str.unicode(), str.size(), from,
executed 195807 times by 106 tests: return bm_find((const ushort *)str.unicode(), str.size(), from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
195807
176 (const ushort *)p.uc, p.len,
executed 195807 times by 106 tests: return bm_find((const ushort *)str.unicode(), str.size(), from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
195807
177 p.q_skiptable, q_cs);
executed 195807 times by 106 tests: return bm_find((const ushort *)str.unicode(), str.size(), from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
195807
178}-
179int QStringMatcher::indexIn(const QChar *str, int length, int from) const-
180{-
181 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 201096 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
)
0-201096
182 from = 0;
never executed: from = 0;
0
183 return
executed 201096 times by 16 tests: return bm_find((const ushort *)str, length, from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
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
bm_find((const ushort *)str, length, from,
executed 201096 times by 16 tests: return bm_find((const ushort *)str, length, from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
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
201096
184 (const ushort *)p.uc, p.len,
executed 201096 times by 16 tests: return bm_find((const ushort *)str, length, from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
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
201096
185 p.q_skiptable, q_cs);
executed 201096 times by 16 tests: return bm_find((const ushort *)str, length, from, (const ushort *)p.uc, p.len, p.q_skiptable, q_cs);
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
201096
186}-
187int qFindStringBoyerMoore(-
188 const QChar *haystack, int haystackLen, int haystackOffset,-
189 const QChar *needle, int needleLen, Qt::CaseSensitivity cs)-
190{-
191 uchar skiptable[256];-
192 bm_init_skiptable((const ushort *)needle, needleLen, skiptable, cs);-
193 if (haystackOffset < 0
haystackOffset < 0Description
TRUEnever evaluated
FALSEevaluated 176 times by 12 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
)
0-176
194 haystackOffset = 0;
never executed: haystackOffset = 0;
0
195 return
executed 176 times by 12 tests: return bm_find((const ushort *)haystack, haystackLen, haystackOffset, (const ushort *)needle, needleLen, skiptable, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
bm_find((const ushort *)haystack, haystackLen, haystackOffset,
executed 176 times by 12 tests: return bm_find((const ushort *)haystack, haystackLen, haystackOffset, (const ushort *)needle, needleLen, skiptable, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
176
196 (const ushort *)needle, needleLen, skiptable, cs);
executed 176 times by 12 tests: return bm_find((const ushort *)haystack, haystackLen, haystackOffset, (const ushort *)needle, needleLen, skiptable, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
176
197}-
198-
199-
Switch to Source codePreprocessed file

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