- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Pattern matching using regular expressions
Java wrapper for Qt's class QRegularExpression
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QRegularExpression::MatchOptionstatic final class
QFlags type for enumQRegularExpression.MatchOption
static enum
Java wrapper for Qt enum QRegularExpression::MatchTypestatic enum
Java wrapper for Qt enum QRegularExpression::PatternOptionstatic final class
QFlags type for enumQRegularExpression.PatternOption
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQRegularExpression
(String pattern) Overloaded constructor forQRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
withoptions = new io.qt.core.QRegularExpression.PatternOptions(0)
.QRegularExpression
(String pattern, QRegularExpression.PatternOption ... options) Overloaded constructor forQRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
.QRegularExpression
(String pattern, QRegularExpression.PatternOptions options) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
anchoredPattern
(String expression) final void
final int
clone()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final String
static String
globalMatch
(String subject) globalMatch
(String subject, int offset) globalMatch
(String subject, int offset, QRegularExpression.MatchType matchType) Overloaded function forglobalMatch(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.globalMatch
(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) globalMatch
(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) int
hashCode()
final boolean
isValid()
final QRegularExpressionMatch
final QRegularExpressionMatch
final QRegularExpressionMatch
match
(String subject, int offset, QRegularExpression.MatchType matchType) Overloaded function formatch(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.final QRegularExpressionMatch
match
(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
match
(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) final QStringList
final void
optimize()
final String
pattern()
final int
void
readFrom
(QDataStream in) final void
setPattern
(String pattern) final void
setPatternOptions
(QRegularExpression.PatternOption ... options) Overloaded function forsetPatternOptions(io.qt.core.QRegularExpression.PatternOptions)
.final void
final void
swap
(QRegularExpression other) toString()
static String
void
writeTo
(QDataStream out) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRegularExpression
public QRegularExpression() -
QRegularExpression
-
QRegularExpression
Overloaded constructor for
QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
. -
QRegularExpression
Overloaded constructor for
QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
withoptions = new io.qt.core.QRegularExpression.PatternOptions(0)
. -
QRegularExpression
-
QRegularExpression
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
captureCount
-
errorString
-
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, int offset, QRegularExpression.MatchType matchType) Overloaded function for
globalMatch(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
. -
globalMatch
Overloaded function for
globalMatch(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
with:
matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
-
globalMatch
Overloaded function for
globalMatch(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
with:
offset = 0
matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
-
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
isValid
-
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, int offset, QRegularExpression.MatchType matchType) Overloaded function for
match(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
. -
match
Overloaded function for
match(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
with:
matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
-
match
Overloaded function for
match(java.lang.String, int, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
with:
offset = 0
matchType = io.qt.core.QRegularExpression.MatchType.NormalMatch
matchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
-
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, int offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
namedCaptureGroups
-
writeTo
-
assign
-
readFrom
-
optimize
-
pattern
-
patternErrorOffset
-
patternOptions
-
setPattern
-
setPatternOptions
Overloaded function for
setPatternOptions(io.qt.core.QRegularExpression.PatternOptions)
. -
setPatternOptions
-
swap
-
anchoredPattern
-
escape
-
wildcardToRegularExpression
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-