![]() |
Qt 6.x
The Qt SDK
|
#include "qstringmatcher.h"
Go to the source code of this file.
Functions | |
static void | bm_init_skiptable (QStringView needle, uchar *skiptable, Qt::CaseSensitivity cs) |
static qsizetype | bm_find (QStringView haystack, qsizetype index, QStringView needle, const uchar *skiptable, Qt::CaseSensitivity cs) |
qsizetype | qFindStringBoyerMoore (QStringView haystack, qsizetype haystackOffset, QStringView needle, Qt::CaseSensitivity cs) |
Variables | |
static QT_BEGIN_NAMESPACE constexpr qsizetype | FoldBufferCapacity = 256 |
|
inlinestatic |
Definition at line 33 of file qstringmatcher.cpp.
References Qt::CaseInsensitive, Qt::CaseSensitive, FoldBufferCapacity, foldCase(), i, qMin(), QStringView::size(), QStringView::sliced(), QStringView::startsWith(), and QStringView::utf16().
Referenced by qFindStringBoyerMoore().
|
static |
Definition at line 11 of file qstringmatcher.cpp.
References Qt::CaseSensitive, FoldBufferCapacity, foldCase(), qMin(), QStringView::size(), and QStringView::utf16().
Referenced by qFindStringBoyerMoore().
qsizetype qFindStringBoyerMoore | ( | QStringView | haystack, |
qsizetype | haystackOffset, | ||
QStringView | needle, | ||
Qt::CaseSensitivity | cs | ||
) |
Definition at line 313 of file qstringmatcher.cpp.
References bm_find(), and bm_init_skiptable().
Referenced by QtPrivate::findString().
|
staticconstexpr |
Definition at line 9 of file qstringmatcher.cpp.
Referenced by bm_find(), and bm_init_skiptable().