diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-01-19 00:35:21 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-05 13:46:25 +0100 |
commit | 53f9e77140a07eb8f36eeea460f13a54dad7330e (patch) | |
tree | b44c428c5c94938283cda6243559b03999a70a39 /dist | |
parent | d0804ff2dd3d289a0f0c58aa30c4334e66ea9be0 (diff) | |
download | qtbase-53f9e77140a07eb8f36eeea460f13a54dad7330e.tar.gz qtbase-53f9e77140a07eb8f36eeea460f13a54dad7330e.tar.bz2 qtbase-53f9e77140a07eb8f36eeea460f13a54dad7330e.zip |
QRegularExpression: add method for extracting the capturing group names
It may be useful to know which named capturing groups are defined
in an regular expression, and for each of them, what's the
corresponding index. This commit adds the needed method
to QRegularExpression.
Note that extracting the information doesn't happen while holding
the mutex in the private -- pcre_fullinfo just reads information
from the compiled pattern, so that's thread-safe.
Task-number: QTBUG-29079
Change-Id: I50c00ee860f06427c2e6ea10417d5c0733cc8303
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'dist')
-rw-r--r-- | dist/changes-5.1.0 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/changes-5.1.0 b/dist/changes-5.1.0 index dffbb4df6b..8ee691055f 100644 --- a/dist/changes-5.1.0 +++ b/dist/changes-5.1.0 @@ -59,6 +59,11 @@ QtCore - QMessageAuthenticationCode * New class for hash-based message authentication code added to QtCore. + - QRegularExpression + * It's now possible to know the names of the named capturing groups + inside the pattern string, as well as the numerical index of each + named capturing group. + - QtGui |