QRegularExpression

Binding for C++ class QRegularExpression.

extern (C++) extern (C++)
@Q_RELOCATABLE_TYPE
struct QRegularExpression {}

Constructors

this
this()
Undocumented in source.
this
this(const(QString) pattern, PatternOptions options)
Undocumented in source.
this
this(const(QRegularExpression) re)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

MatchOptions
alias MatchOptions = QFlags!(MatchOption)
Undocumented in source.
PatternOptions
alias PatternOptions = QFlags!(PatternOption)
Undocumented in source.
WildcardConversionOptions
alias WildcardConversionOptions = QFlags!(WildcardConversionOption)
Undocumented in source.

Enums

MatchOption
enum MatchOption
Undocumented in source.
MatchType
enum MatchType
Undocumented in source.
PatternOption
enum PatternOption
Undocumented in source.
WildcardConversionOption
enum WildcardConversionOption
Undocumented in source.

Functions

captureCount
int captureCount()
Undocumented in source.
errorString
QString errorString()
Undocumented in source.
globalMatch
QRegularExpressionMatchIterator globalMatch(const(QString) subject, qsizetype offset, MatchType matchType, MatchOptions matchOptions)
Undocumented in source.
globalMatch
QRegularExpressionMatchIterator globalMatch(QStringView subjectView, qsizetype offset, MatchType matchType, MatchOptions matchOptions)
Undocumented in source.
isValid
bool isValid()
Undocumented in source.
match
QRegularExpressionMatch match(const(QString) subject, qsizetype offset, MatchType matchType, MatchOptions matchOptions)
Undocumented in source.
match
QRegularExpressionMatch match(QStringView subjectView, qsizetype offset, MatchType matchType, MatchOptions matchOptions)
Undocumented in source.
namedCaptureGroups
QStringList namedCaptureGroups()
Undocumented in source.
optimize
void optimize()
Undocumented in source.
pattern
QString pattern()
Undocumented in source.
patternErrorOffset
qsizetype patternErrorOffset()
Undocumented in source.
patternOptions
PatternOptions patternOptions()
Undocumented in source.
rawConstructor
typeof(this) rawConstructor()
Undocumented in source.
setPattern
void setPattern(const(QString) pattern)
Undocumented in source.
setPatternOptions
void setPatternOptions(PatternOptions options)
Undocumented in source.

Static functions

anchoredPattern
QString anchoredPattern(const(QString) expression)
Undocumented in source. Be warned that the author may not have intended to support it.
anchoredPattern
QString anchoredPattern(QStringView expression)
Undocumented in source.
create
typeof(this) create()
Undocumented in source. Be warned that the author may not have intended to support it.
escape
QString escape(const(QString) str)
Undocumented in source. Be warned that the author may not have intended to support it.
escape
QString escape(QStringView str)
Undocumented in source.
fromWildcard
QRegularExpression fromWildcard(QStringView pattern, qt.core.namespace.CaseSensitivity cs, WildcardConversionOptions options)
Undocumented in source.
wildcardToRegularExpression
QString wildcardToRegularExpression(const(QString) str, WildcardConversionOptions options)
Undocumented in source. Be warned that the author may not have intended to support it.
wildcardToRegularExpression
QString wildcardToRegularExpression(QStringView str, WildcardConversionOptions options)
Undocumented in source.

Meta