qt5base-lts/tests/auto/corelib/text
Giuseppe D'Angelo 7c3208c97d QString: fix count(QRegularExpression)
There is an off by one in the implementation of count(): a match
must be attempted even at the very end of the string, because
a 0-length match can happen there. While at it, improve
the documentation on the counter-intuitive behavior of count(),
which doesn't merely count how many times a regexp matches
into a string using ordinary global matching.

[ChangeLog][QtCore][QString] Fixed a corner case when using
QString::count(QRegularExpression), causing an empty in the
last position not to be accounted for in the returned result.

Change-Id: I064497839a96979abfbac2d0a96546ce160bbc46
Pick-to: 5.15 6.0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-12-09 20:41:18 +01:00
..
qbytearray Add QByteArray::insert(qsizetype, const QByteArray &) 2020-11-11 01:00:39 +01:00
qbytearrayapisymmetry CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbytearraylist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbytearraymatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbytearrayview CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qbytedatabuffer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qchar QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
qcollator QCollator: extend tests 2020-11-30 17:16:21 +01:00
qlatin1string Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qlocale Update CLDR to v38 2020-11-08 13:01:29 +01:00
qregularexpression Fix compiler warning from discarded return value 2020-12-04 00:17:46 +01:00
qstring QString: fix count(QRegularExpression) 2020-12-09 20:41:18 +01:00
qstring_no_cast_from_bytearray CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstringapisymmetry Add unit test for QAnyStringView::compare 2020-11-21 06:11:55 +01:00
qstringbuilder Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qstringconverter QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
qstringiterator CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstringlist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstringmatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstringtokenizer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstringview Get rid of Q_COMPILER_CONSTEXPR checks 2020-11-17 21:28:11 +01:00
qtextboundaryfinder QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
.prev_CMakeLists.txt Move QStringRef and remains to Qt5Compat 2020-08-20 00:58:13 +02:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
text.pro Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00