diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-09 16:27:12 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-14 14:19:47 +0200 |
commit | b2ee684a13d01363c121d3ba597feaf274786fdb (patch) | |
tree | 61fa7ee93b6778a0edfb309896bdee3b3173044c /tests/auto/corelib/text/qregexp | |
parent | 7370b60cfe11da4d6167b51d83d18d9514a370c5 (diff) |
Remove QRegExp support from QString and StringList
Replacement methods do now exist in QRegExp, or
for QRegularExpression when porting to it.
Remove all autotests associated with the old methods.
Change-Id: I3ff1e0da4b53adb64d5a48a30aecd8b960f5e633
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/text/qregexp')
-rw-r--r-- | tests/auto/corelib/text/qregexp/tst_qregexp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/corelib/text/qregexp/tst_qregexp.cpp b/tests/auto/corelib/text/qregexp/tst_qregexp.cpp index d1dad01abb..b043d023ea 100644 --- a/tests/auto/corelib/text/qregexp/tst_qregexp.cpp +++ b/tests/auto/corelib/text/qregexp/tst_qregexp.cpp @@ -895,19 +895,19 @@ void tst_QRegExp::testInvalidWildcard(){ void tst_QRegExp::caretAnchoredOptimization() { QString s = "---babnana----"; - s.replace( QRegExp("^-*|(-*)$"), "" ); + s = QRegExp("^-*|(-*)$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-{0,})$"), "" ); + s = QRegExp("^-*|(-{0,})$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-{1,})$"), "" ); + s = QRegExp("^-*|(-{1,})$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); s = "---babnana----"; - s.replace( QRegExp("^-*|(-+)$"), "" ); + s = QRegExp("^-*|(-+)$").replaceIn(s, "" ); QCOMPARE(s, QLatin1String("babnana")); } |