19 #ifndef REGULAREXPRESSION_H
20 #define REGULAREXPRESSION_H
23 #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
26 # include <QRegularExpression>
37 NoPatternOption = 0x0000,
38 CaseInsensitiveOption = 0x0001,
39 InvertedGreedinessOption = 0x0010,
51 QString pattern()
const;
55 void setPattern(
const QString &v);
60 int patternOptions()
const;
64 void setPatternOptions(
const int option);
70 bool hasMatch(
const QString &str);
75 int match(
const QString &str,
int pos = 0);
80 QString captured(
int index)
const;
85 int capturedLength()
const;
91 bool isGreediness()
const;
96 void setGreediness(
bool v);
101 bool isCaseSensitivity()
const;
106 void setCaseSensitivity(
bool v);
111 static QString escape(
const QString &str);
113 #if QT_VERSION < QT_VERSION_CHECK(5,0,0)
114 const QRegExp &value()
const;
115 operator QRegExp &();
116 operator const QRegExp &()
const;
120 const QRegularExpression &value()
const;
121 operator QRegularExpression &();
122 operator const QRegularExpression &()
const;
130 #endif // REGULAREXPRESSION_H
QRegularExpressionMatch m_match
QRegularExpression m_regular
#define RegularExpression
The class of the regular expression.