|author||Giuseppe D'Angelo <firstname.lastname@example.org>||2013-01-19 00:35:21 +0000|
|committer||The Qt Project <email@example.com>||2013-02-05 13:46:25 +0100|
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 <firstname.lastname@example.org> Reviewed-by: Thiago Macieira <email@example.com>
Diffstat (limited to 'dist')
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
@@ -59,6 +59,11 @@ QtCore
* 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.