qt5base-lts/tests/auto
Giuseppe D'Angelo 9110d4f1ed QString::contains overload that returns the match results
This convenience overload allows one to write

    QRegularExpression re1, re2, ...;
    QRegularExpressionMatch match;
    QString subject;

    if (subject.contains(re1, &match)) {
        // ...
    } else if (subject.contains(re2, &match)) {
        // ...
    } // ..

One can then inspect the results of a successful match in each block
(as well as extracting the captured substrings, etc.).

Change-Id: I0fb8be8b577656e8db994198f8105c26c4fe67b0
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2013-01-14 10:26:59 +01:00
..
bic/data test: Add bic data for linux-gcc-ia32 2013-01-08 19:50:18 +01:00
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
corelib QString::contains overload that returns the match results 2013-01-14 10:26:59 +01:00
dbus DBus: Remove declaration of built-in and automatic metatypes. 2013-01-04 13:20:06 +01:00
gui Ensure raster pixmap cache key is the same as that of pixmap.toImage() 2013-01-11 21:24:23 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Add auto test for HTTP cache fix for QTBUG-28035. 2013-01-08 11:13:27 +01:00
opengl add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
other Implement QAccessibleActionInterface in QAccessibleTableCell 2013-01-11 21:24:23 +01:00
printsupport Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
testlib Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
tools Automatically register method types in QSignalSpy. 2013-01-07 12:06:00 +01:00
widgets Clean up some metatype declarations and registrations 2013-01-09 18:19:12 +01:00
xml Tests: Remove declaration of built-in and automatic metatypes. 2013-01-06 11:23:45 +01:00
auto.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00