diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-04-04 14:47:52 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2017-04-11 14:50:03 +0000 |
commit | 7af5a3a39e226658a14dd55d9c2d05ec6b408759 (patch) | |
tree | a4f493e2ad3c95ca2dcb230530df9bd75eab4485 /src/corelib/tools/qregularexpression.cpp | |
parent | 34f46588aa89537d2c90865694b30ffcda8c421f (diff) |
QRegularExpression: streamline some wording in the documentation
Change-Id: Ic1adbf9358ef6fbdaaee52471cd8ed9ca895a9d0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/corelib/tools/qregularexpression.cpp')
-rw-r--r-- | src/corelib/tools/qregularexpression.cpp | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index 8177f4ead2..b1f9d460b3 100644 --- a/src/corelib/tools/qregularexpression.cpp +++ b/src/corelib/tools/qregularexpression.cpp @@ -2037,9 +2037,10 @@ int QRegularExpressionMatch::lastCapturedIndex() const } /*! - Returns the substring captured by the \a nth capturing group. If the \a nth - capturing group did not capture a string or doesn't exist, returns a null - QString. + Returns the substring captured by the \a nth capturing group. + + If the \a nth capturing group did not capture a string, or if there is no + such capturing group, returns a null QString. \sa capturedRef(), capturedView(), lastCapturedIndex(), capturedStart(), capturedEnd(), capturedLength(), QString::isNull() @@ -2059,8 +2060,9 @@ QString QRegularExpressionMatch::captured(int nth) const /*! Returns a reference to the substring captured by the \a nth capturing group. - If the \a nth capturing group did not capture a string or doesn't exist, - returns a null QStringRef. + + If the \a nth capturing group did not capture a string, or if there is no + such capturing group, returns a null QStringRef. \sa captured(), capturedView(), lastCapturedIndex(), capturedStart(), capturedEnd(), capturedLength(), QStringRef::isNull() @@ -2082,8 +2084,9 @@ QStringRef QRegularExpressionMatch::capturedRef(int nth) const \since 5.10 Returns a view of the substring captured by the \a nth capturing group. - If the \a nth capturing group did not capture a string or doesn't exist, - returns a null QStringView. + + If the \a nth capturing group did not capture a string, or if there is no + such capturing group, returns a null QStringView. \sa captured(), capturedRef(), lastCapturedIndex(), capturedStart(), capturedEnd(), capturedLength(), QStringView::isNull() @@ -2095,9 +2098,10 @@ QStringView QRegularExpressionMatch::capturedView(int nth) const #if QT_STRINGVIEW_LEVEL < 2 /*! - Returns the substring captured by the capturing group named \a name. If the - capturing group named \a name did not capture a string or doesn't exist, - returns a null QString. + Returns the substring captured by the capturing group named \a name. + + If the named capturing group \a name did not capture a string, or if + there is no capturing group named \a name, returns a null QString. \sa capturedRef(), capturedView(), capturedStart(), capturedEnd(), capturedLength(), QString::isNull() @@ -2109,8 +2113,10 @@ QString QRegularExpressionMatch::captured(const QString &name) const /*! Returns a reference to the string captured by the capturing group named \a - name. If the capturing group named \a name did not capture a string or - doesn't exist, returns a null QStringRef. + name. + + If the named capturing group \a name did not capture a string, or if + there is no capturing group named \a name, returns a null QStringRef. \sa captured(), capturedView(), capturedStart(), capturedEnd(), capturedLength(), QStringRef::isNull() @@ -2124,9 +2130,10 @@ QStringRef QRegularExpressionMatch::capturedRef(const QString &name) const /*! \since 5.10 - Returns the substring captured by the capturing group named \a name. If the - capturing group named \a name did not capture a string or doesn't exist, - returns a null QString. + Returns the substring captured by the capturing group named \a name. + + If the named capturing group \a name did not capture a string, or if + there is no capturing group named \a name, returns a null QString. \sa capturedRef(), capturedView(), capturedStart(), capturedEnd(), capturedLength(), QString::isNull() @@ -2147,8 +2154,10 @@ QString QRegularExpressionMatch::captured(QStringView name) const \since 5.10 Returns a reference to the string captured by the capturing group named \a - name. If the capturing group named \a name did not capture a string or - doesn't exist, returns a null QStringRef. + name. + + If the named capturing group \a name did not capture a string, or if + there is no capturing group named \a name, returns a null QStringRef. \sa captured(), capturedView(), capturedStart(), capturedEnd(), capturedLength(), QStringRef::isNull() @@ -2169,8 +2178,10 @@ QStringRef QRegularExpressionMatch::capturedRef(QStringView name) const \since 5.10 Returns a view of the string captured by the capturing group named \a - name. If the capturing group named \a name did not capture a string or - doesn't exist, returns a null QStringView. + name. + + If the named capturing group \a name did not capture a string, or if + there is no capturing group named \a name, returns a null QStringView. \sa captured(), capturedRef(), capturedStart(), capturedEnd(), capturedLength(), QStringRef::isNull() |