qt6-bb10/tests/auto/corelib
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
..
animation Update copyright headers 2015-02-11 06:49:51 +00:00
codecs fix usage of wince scope 2015-06-05 10:29:10 +00:00
global Disable thread-safe statics for MSVC 2015: they're broken 2015-07-16 08:28:07 +00:00
io tst_qprocess cleanup 2015-08-17 08:25:24 +00:00
itemmodels Fix less-than comparison for QStandardItem and QSortFilterProxyModel with invalid data. 2015-06-11 13:29:23 +00:00
json Make sure remove() doesn't corrupt the json object 2015-03-18 07:34:59 +00:00
kernel Fix the remainingTime() result after the first activation of a QTimer 2015-07-08 03:20:29 +00:00
mimetypes QMimeDatabase: adapt to changes in shared-mime-info 1.3 2015-08-16 13:33:21 +00:00
plugin fix usage of wince scope 2015-06-05 10:29:10 +00:00
statemachine QStateMachine: empty the whole internal queue before external queue 2015-05-19 08:03:46 +00:00
thread Use qthread_win.cpp for WinRT as well 2015-06-23 05:47:14 +00:00
tools QRegularExpression: fix matching over QStringRefs 2015-08-18 14:18:48 +00:00
xml Update copyright headers 2015-02-11 06:49:51 +00:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00