qt6-bb10/tests/auto/corelib/tools
Giuseppe D'Angelo ee15bef3ea QRegularExpression: fix matching over QStringRefs
Playing with the offset argument of pcre_exec is not equivalent to
adjusting the pointer to the subject string. In particular, PCRE
can go behind the offset to check for lookbehinds or "transition"
metacharacters (\b, \B, etc.).

This made the code that deals with QStringRefs not matching in behavior
with the corresponding code dealing with QStrings. For instance,

   QString subject("Miss");
   QRegularExpression re("(?<=M)iss");
   re.match(subject.mid(1));           // doesn't match
   re.match(subject.midRef(1));        // matches!!!

Instead, actually adjust the pointer to the subject string so that
the behavior is identical. A broken test that relied on the
equivalence is also removed.

Change-Id: If96333241ef59621d7f5a6a170ebd0a186844874
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-08-18 14:18:48 +00:00
..
collections Update copyright headers 2015-02-11 06:49:51 +00:00
qalgorithms QtCore: assorted migrations to QString::asprintf 2015-02-12 19:40:04 +00:00
qarraydata Update copyright headers 2015-02-11 06:49:51 +00:00
qarraydata_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qbitarray Update copyright headers 2015-02-11 06:49:51 +00:00
qbytearray Fixed license headers 2015-02-17 18:46:09 +00:00
qbytearraylist Update copyright headers 2015-02-11 06:49:51 +00:00
qbytearraymatcher Update copyright headers 2015-02-11 06:49:51 +00:00
qbytedatabuffer Update copyright headers 2015-02-11 06:49:51 +00:00
qcache Update copyright headers 2015-02-11 06:49:51 +00:00
qchar Update Unicode data up to v7.0 2015-03-27 16:40:06 +00:00
qcollator Replace MAC OS X with OS X 2015-06-30 07:33:31 +00:00
qcommandlineparser Update copyright headers 2015-02-11 06:49:51 +00:00
qcontiguouscache Fix compilation of QContiguousCache::operator= 2015-05-20 17:23:33 +00:00
qcryptographichash Update copyright headers 2015-02-11 06:49:51 +00:00
qdate Update copyright headers 2015-02-11 06:49:51 +00:00
qdatetime tst_QDateTime: remove silly test for timezone date too early 2015-03-11 07:23:21 +00:00
qeasingcurve Remove the tests for Ubuntu Oneiric (11.10) 2015-03-17 01:26:13 +00:00
qelapsedtimer Update copyright headers 2015-02-11 06:49:51 +00:00
qexplicitlyshareddatapointer Update copyright headers 2015-02-11 06:49:51 +00:00
qfreelist Update copyright headers 2015-02-11 06:49:51 +00:00
qhash Update copyright headers 2015-02-11 06:49:51 +00:00
qhash_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qhashfunctions Fixed license headers 2015-02-17 18:46:09 +00:00
qline Update copyright headers 2015-02-11 06:49:51 +00:00
qlinkedlist Update copyright headers 2015-02-11 06:49:51 +00:00
qlist QList: prepare for tag dispatching based on memory layout 2015-02-17 15:05:07 +00:00
qlist_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qlocale Update CLDR to v27 2015-03-27 16:40:16 +00:00
qmap Update copyright headers 2015-02-11 06:49:51 +00:00
qmap_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qmargins Update copyright headers 2015-02-11 06:49:51 +00:00
qmessageauthenticationcode Update copyright headers 2015-02-11 06:49:51 +00:00
qpair Update copyright headers 2015-02-11 06:49:51 +00:00
qpoint Update copyright headers 2015-02-11 06:49:51 +00:00
qpointf Fix build of tests on QNX. 2015-03-14 07:05:34 +00:00
qqueue Update copyright headers 2015-02-11 06:49:51 +00:00
qrect Update copyright headers 2015-02-11 06:49:51 +00:00
qregexp QtCore: assorted migrations to QString::asprintf 2015-02-12 19:40:04 +00:00
qregularexpression QRegularExpression: fix matching over QStringRefs 2015-08-18 14:18:48 +00:00
qringbuffer Update copyright headers 2015-02-11 06:49:51 +00:00
qscopedpointer Update copyright headers 2015-02-11 06:49:51 +00:00
qscopedvaluerollback Update copyright headers 2015-02-11 06:49:51 +00:00
qset Update copyright headers 2015-02-11 06:49:51 +00:00
qsharedpointer fix usage of wince scope 2015-06-05 10:29:10 +00:00
qsize Update copyright headers 2015-02-11 06:49:51 +00:00
qsizef Update copyright headers 2015-02-11 06:49:51 +00:00
qstl Update copyright headers 2015-02-11 06:49:51 +00:00
qstring Replace MAC OS X with OS X 2015-06-30 07:33:31 +00:00
qstring_no_cast_from_bytearray Update copyright headers 2015-02-11 06:49:51 +00:00
qstringbuilder Update copyright headers 2015-02-11 06:49:51 +00:00
qstringiterator Update copyright headers 2015-02-11 06:49:51 +00:00
qstringlist Update copyright headers 2015-02-11 06:49:51 +00:00
qstringmatcher Update copyright headers 2015-02-11 06:49:51 +00:00
qstringref Update copyright headers 2015-02-11 06:49:51 +00:00
qtextboundaryfinder Update UCD source files to v7.0 2015-03-27 16:39:53 +00:00
qtime Update copyright headers 2015-02-11 06:49:51 +00:00
qtimeline Update copyright headers 2015-02-11 06:49:51 +00:00
qtimezone QTimeZone: Convert fractional timezones properly. 2015-07-21 22:50:39 +00:00
qvarlengtharray QVarLengthArray: Unit-test that clear() preserves capacity 2015-07-08 14:22:44 +00:00
qvector Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 21:02:08 +01:00
qvector_strictiterators Make sure all containers compile in strict-iterator mode 2014-02-22 04:38:01 +01:00
qversionnumber Update copyright headers 2015-02-11 06:49:51 +00:00
tools.pro tst_QHash: Factor qHash()-related test cases into a separate test 2015-01-05 20:18:51 +01:00