The class of the regular expression.
More...
#include <regularexpression.h>
The class of the regular expression.
- Author
- Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com
Definition at line 32 of file regularexpression.h.
| Enumerator |
|---|
| NoPatternOption |
|
| CaseInsensitiveOption |
|
| InvertedGreedinessOption |
|
Definition at line 35 of file regularexpression.h.
| RegularExpression::RegularExpression |
( |
| ) |
|
| QString RegularExpression::captured |
( |
int |
index | ) |
const |
Returns the substring captured by the nth capturing group.
| int RegularExpression::capturedLength |
( |
| ) |
const |
Returns the length of the substring captured by the nth capturing group.
| static QString RegularExpression::escape |
( |
const QString & |
str | ) |
|
|
static |
Escapes all characters of string.
| bool RegularExpression::hasMatch |
( |
const QString & |
str | ) |
|
Returns true if the regular expression matched against the subject string, or false otherwise.
| bool RegularExpression::isCaseSensitivity |
( |
| ) |
const |
Returns the case sensitivity option.
| bool RegularExpression::isGreediness |
( |
| ) |
const |
Returns the greediness option.
| int RegularExpression::match |
( |
const QString & |
str, |
|
|
int |
pos = 0 |
|
) |
| |
Searches the byte array ba, from byte position from (default 0, i.e. from the first byte).
| RegularExpression::operator const QRegularExpression & |
( |
| ) |
const |
| RegularExpression::operator QRegularExpression & |
( |
| ) |
|
| QString RegularExpression::pattern |
( |
| ) |
const |
Returns the pattern string of the regular expression.
| int RegularExpression::patternOptions |
( |
| ) |
const |
Returns the pattern options for the regular expression.
| void RegularExpression::setCaseSensitivity |
( |
bool |
v | ) |
|
Set the case sensitivity option.
| void RegularExpression::setGreediness |
( |
bool |
v | ) |
|
Set the greediness option.
| void RegularExpression::setPattern |
( |
const QString & |
v | ) |
|
Sets the pattern string of the regular expression to pattern.
| void RegularExpression::setPatternOptions |
( |
const int |
option | ) |
|
Sets the given options as the pattern options of the regular expression.
| const QRegularExpression& RegularExpression::value |
( |
| ) |
const |
| QRegularExpressionMatch RegularExpression::m_match |
|
private |
| QRegularExpression RegularExpression::m_regular |
|
private |
The documentation for this class was generated from the following file: