QRegularExpressionMatch nextMatch() const;
- QRegularExpression regularExpression;
- QString subject;
+ const QRegularExpression regularExpression;
+ const QString subject;
// the capturedOffsets vector contains pairs of (start, end) positions
// for each captured substring
QVector<int> capturedOffsets;
- QRegularExpression::MatchType matchType;
- QRegularExpression::MatchOptions matchOptions;
+ const QRegularExpression::MatchType matchType;
+ const QRegularExpression::MatchOptions matchOptions;
int capturedCount;
struct QRegularExpressionMatchIteratorPrivate : QSharedData
{
- QRegularExpressionMatchIteratorPrivate(const QRegularExpression re,
+ QRegularExpressionMatchIteratorPrivate(const QRegularExpression &re,
QRegularExpression::MatchType matchType,
QRegularExpression::MatchOptions matchOptions,
const QRegularExpressionMatch &next);
bool hasNext() const;
QRegularExpressionMatch next;
- QRegularExpression regularExpression;
- QRegularExpression::MatchType matchType;
- QRegularExpression::MatchOptions matchOptions;
+ const QRegularExpression regularExpression;
+ const QRegularExpression::MatchType matchType;
+ const QRegularExpression::MatchOptions matchOptions;
};
/*!
/*!
\internal
*/
-QRegularExpressionMatchIteratorPrivate::QRegularExpressionMatchIteratorPrivate(const QRegularExpression re,
+QRegularExpressionMatchIteratorPrivate::QRegularExpressionMatchIteratorPrivate(const QRegularExpression &re,
QRegularExpression::MatchType matchType,
QRegularExpression::MatchOptions matchOptions,
const QRegularExpressionMatch &next)