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 375431 times by 87 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
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-375431
9 while (l--
l--Description
TRUEevaluated 4575759 times by 87 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
FALSEevaluated 375431 times by 87 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
) {
375431-4575759
10 skiptable[*uc & 0xff] = l;-
11 uc++;-
12 }
executed 4575759 times by 87 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
4575759
13 }
executed 375431 times by 87 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
else {
375431
14 const ushort *start = uc;-
15 while (l--
l--Description
TRUEevaluated 6584 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-6584
16 skiptable[foldCase(uc, start) & 0xff] = l;-
17 uc++;-
18 }
executed 6584 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
6584
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 379071 times by 87 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
)
34-379071
26 return
executed 34 times by 2 tests: return index > (int)l ? -1 : index;
Executed by:
  • tst_QString
  • tst_QStringMatcher
index > (int)l
index > (int)lDescription
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringMatcher
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringMatcher
? -1 : index;
executed 34 times by 2 tests: return index > (int)l ? -1 : index;
Executed by:
  • tst_QString
  • tst_QStringMatcher
5-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 378250 times by 87 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
FALSEevaluated 821 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
) {
821-378250
32 while (current < end
current < endDescription
TRUEevaluated 184146747 times by 86 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
FALSEevaluated 64409 times by 68 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • ...
) {
64409-184146747
33 uint skip = skiptable[*current & 0xff];-
34 if (!skip
!skipDescription
TRUEevaluated 220152 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_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 163132035 times by 85 tests
Evaluated by:
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • ...
) {
220152-163132035
35-
36 while (skip < pl
skip < plDescription
TRUEevaluated 736653 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_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 203478 times by 43 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_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • ...
) {
203478-736653
37 if (*(
*(current - sk...inus_one-skip]Description
TRUEevaluated 16674 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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 719979 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_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
current - skip) != puc[pl_minus_one-skip]
*(current - sk...inus_one-skip]Description
TRUEevaluated 16674 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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 719979 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_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
)
16674-719979
38 break;
executed 16674 times by 18 tests: break;
Executed by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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
16674
39 skip++;-
40 }
executed 719979 times by 46 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_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
719979
41 if (skip > pl_minus_one
skip > pl_minus_oneDescription
TRUEevaluated 203478 times by 43 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_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • ...
FALSEevaluated 16674 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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
)
16674-203478
42 return
executed 203478 times by 43 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_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • ...
(current - uc) - pl_minus_one;
executed 203478 times by 43 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_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • ...
203478
43-
44-
45-
46 if (skiptable[*(current - skip) & 0xff] == pl
skiptable[*(cu... & 0xff] == plDescription
TRUEevaluated 1887 times by 15 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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 14787 times by 9 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QWidget_window
  • tst_uic
)
1887-14787
47 skip = pl - skip;
executed 1887 times by 15 tests: skip = pl - skip;
Executed by:
  • tst_Collections
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • 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
1887
48 else-
49 skip = 1;
executed 14787 times by 9 tests: skip = 1;
Executed by:
  • tst_QMessageBox
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentLayout
  • tst_QWidget_window
  • tst_uic
14787
50 }-
51 if (current > end - skip
current > end - skipDescription
TRUEevaluated 110363 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 184049768 times by 85 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
)
110363-184049768
52 break;
executed 110363 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
  • ...
110363
53 current += skip;-
54 }
executed 168829084 times by 85 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
168829084
55 }
executed 174772 times by 83 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
else {
174772
56 while (current < end
current < endDescription
TRUEevaluated 913 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 261 times by 7 tests
Evaluated by:
  • tst_Collections
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
) {
261-913
57 uint skip = skiptable[foldCase(current, uc) & 0xff];-
58 if (!skip
!skipDescription
TRUEevaluated 235 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 678 times by 7 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
) {
235-678
59-
60 while (skip < pl
skip < plDescription
TRUEevaluated 10025 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 189 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
) {
189-10025
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 9979 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-9979
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 9979 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
9979
65 if (skip > pl_minus_one
skip > pl_minus_oneDescription
TRUEevaluated 189 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-189
66 return
executed 189 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 189 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
189
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 371 times by 7 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
FALSEevaluated 353 times by 9 tests
Evaluated by:
  • tst_QRegExp
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringMatcher
)
353-371
75 break;
executed 371 times by 7 tests: break;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
371
76 current += skip;-
77 }
executed 353 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
353
78 }
executed 632 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
632
79 return
executed 175404 times by 83 tests: return -1;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
-1;
executed 175404 times by 83 tests: return -1;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
175404
80}-
81QStringMatcher::QStringMatcher()-
82 : d_ptr(0), q_cs(Qt::CaseSensitive)-
83{-
84 memset(q_data, 0, sizeof(q_data));-
85}
executed 13 times by 1 test: end of block
Executed by:
  • tst_QStringMatcher
13
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 212 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
212
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 375218 times by 83 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
375218
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 375444 times by 83 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
375444
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 2 times by 1 test
Evaluated by:
  • tst_QStringMatcher
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QStringMatcher
)
2-3
167 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_QStringMatcher
2
168 bm_init_skiptable((const ushort *)p.uc, p.len, p.q_skiptable, cs);-
169 q_cs = cs;-
170}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QStringMatcher
3
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 177866 times by 75 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
)
1-177866
174 from = 0;
executed 1 time by 1 test: from = 0;
Executed by:
  • tst_QStringMatcher
1
175 return
executed 177867 times by 75 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_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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
bm_find((const ushort *)str.unicode(), str.size(), from,
executed 177867 times by 75 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_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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
177867
176 (const ushort *)p.uc, p.len,
executed 177867 times by 75 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_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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
177867
177 p.q_skiptable, q_cs);
executed 177867 times by 75 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_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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
177867
178}-
179int QStringMatcher::indexIn(const QChar *str, int length, int from) const-
180{-
181 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 201062 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-201062
182 from = 0;
never executed: from = 0;
0
183 return
executed 201062 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 201062 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
201062
184 (const ushort *)p.uc, p.len,
executed 201062 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
201062
185 p.q_skiptable, q_cs);
executed 201062 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
201062
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