summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/text/qregularexpression
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-04-02 14:21:06 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-04-03 21:49:57 +0200
commit91218299166942548cd0c1776d391f565249b112 (patch)
treead11467030b3aa5d179d231c3ef291b9863fd8b6 /tests/auto/corelib/text/qregularexpression
parent1812830ac3d5b167ddbb998cef58096d47da9989 (diff)
QRegularExpression: rename AnchoredMatchOption to AnchorAtOffsetMatchOption
The name of the option may cause confusion due to the fact that it's not _fully_ anchoring the match, only anchoring it at the offset passed to match() -- in other words, it's a "left" anchoring. Deprecate the old name and introduce a new one that should explain the situation better. [ChangeLog][QtCore][QRegularExpression] The AnchoredMatchOption match option has been deprecated in favor of AnchorAtOffsetMatchOption, which should better describe that the match is only anchored at the offset. Change-Id: Ib751e5e488f2d0309a2da6496378247dfa4648de Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'tests/auto/corelib/text/qregularexpression')
-rw-r--r--tests/auto/corelib/text/qregularexpression/tst_qregularexpression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/text/qregularexpression/tst_qregularexpression.cpp b/tests/auto/corelib/text/qregularexpression/tst_qregularexpression.cpp
index 83f9c17a42..a12fd636eb 100644
--- a/tests/auto/corelib/text/qregularexpression/tst_qregularexpression.cpp
+++ b/tests/auto/corelib/text/qregularexpression/tst_qregularexpression.cpp
@@ -805,7 +805,7 @@ void tst_QRegularExpression::normalMatch_data()
QTest::newRow("anchoredmatch01") << QRegularExpression("\\d+")
<< "abc123def"
<< 0
- << QRegularExpression::MatchOptions(QRegularExpression::AnchoredMatchOption)
+ << QRegularExpression::MatchOptions(QRegularExpression::AnchorAtOffsetMatchOption)
<< m;
// ***
@@ -1212,7 +1212,7 @@ void tst_QRegularExpression::globalMatch_data()
<< "ACA""GTG""CGA""AAA""AAA""AAG""GAA""AAG""AAA""AAA"
<< 0
<< QRegularExpression::NormalMatch
- << QRegularExpression::MatchOptions(QRegularExpression::AnchoredMatchOption)
+ << QRegularExpression::MatchOptions(QRegularExpression::AnchorAtOffsetMatchOption)
<< matchList;
matchList.clear();