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 /src/corelib/doc/snippets/qstringlist/main.cpp | |
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 'src/corelib/doc/snippets/qstringlist/main.cpp')
-rw-r--r-- | src/corelib/doc/snippets/qstringlist/main.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/corelib/doc/snippets/qstringlist/main.cpp b/src/corelib/doc/snippets/qstringlist/main.cpp index 80788ccd76..5284a5fb78 100644 --- a/src/corelib/doc/snippets/qstringlist/main.cpp +++ b/src/corelib/doc/snippets/qstringlist/main.cpp @@ -145,20 +145,6 @@ Widget::Widget(QWidget *parent) //! [13] list.clear(); -//! [14] - list << "alpha" << "beta" << "gamma" << "epsilon"; - list.replaceInStrings(QRegExp("^a"), "o"); - // list == ["olpha", "beta", "gamma", "epsilon"] -//! [14] - - list.clear(); -//! [15] - list << "Bill Clinton" << "Murray, Bill"; - list.replaceInStrings(QRegExp("^(.*), (.*)$"), "\\2 \\1"); - // list == ["Bill Clinton", "Bill Murray"] -//! [15] - - list.clear(); //! [16] list << "alpha" << "beta" << "gamma" << "epsilon"; list.replaceInStrings(QRegularExpression("^a"), "o"); |