From 53f9e77140a07eb8f36eeea460f13a54dad7330e Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Sat, 19 Jan 2013 00:35:21 +0000 Subject: 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 Reviewed-by: Thiago Macieira --- dist/changes-5.1.0 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dist') 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 -- cgit v1.2.3