FuzzyMatcher: add option to match text with spaces

Change-Id: I0480b57d27f3625933005ca2233e9612df53072d
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
David Schulz
2022-09-19 13:04:25 +02:00
parent c767f193ce
commit 85c5edcb6b
5 changed files with 134 additions and 23 deletions

View File

@@ -30,9 +30,12 @@ public:
QVector<int> lengths;
};
static QRegularExpression createRegExp(
const QString &pattern,
CaseSensitivity caseSensitivity = CaseSensitivity::CaseInsensitive,
bool multiWord = false);
static QRegularExpression createRegExp(const QString &pattern,
CaseSensitivity caseSensitivity = CaseSensitivity::CaseInsensitive);
static QRegularExpression createRegExp(const QString &pattern,
Qt::CaseSensitivity caseSensitivity);
Qt::CaseSensitivity caseSensitivity,
bool multiWord);
static HighlightingPositions highlightingPositions(const QRegularExpressionMatch &match);
};