diff options
author | Giuseppe D'Angelo <dangelog@gmail.com> | 2012-02-19 23:56:50 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-06 23:56:14 +0100 |
commit | efcd4d9470781e3a0331afeab49cd00cee24399f (patch) | |
tree | 00d8da81efb63985afb3513491e357e213e776dd /src/corelib/tools/qregularexpression.h | |
parent | 1899861858eb262df7826eb32d1274233a35536e (diff) |
QRegularExpression: add captureCount()
QRegularExpression::captureCount() returns the number of
capturing groups inside the regular expression pattern.
Change-Id: Ib90ce67c67d06ab2966f0c98bd91da21defc156d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qregularexpression.h')
-rw-r--r-- | src/corelib/tools/qregularexpression.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/qregularexpression.h b/src/corelib/tools/qregularexpression.h index 13c7de7cab..3ca83c9e27 100644 --- a/src/corelib/tools/qregularexpression.h +++ b/src/corelib/tools/qregularexpression.h @@ -94,6 +94,8 @@ public: int patternErrorOffset() const; QString errorString() const; + int captureCount() const; + enum MatchType { NormalMatch = 0, PartialPreferCompleteMatch, |