- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Pattern matching using regular expressions
Java wrapper for Qt class QRegularExpression
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQRegularExpression::MatchOption
static final class
QFlags
type for enumQRegularExpression.MatchOption
static enum
Java wrapper for Qt enumQRegularExpression::MatchType
static enum
Java wrapper for Qt enumQRegularExpression::PatternOption
static final class
QFlags
type for enumQRegularExpression.PatternOption
static enum
Java wrapper for Qt enumQRegularExpression::WildcardConversionOption
static final class
QFlags
type for enumQRegularExpression.WildcardConversionOption
-
Constructor Summary
ConstructorDescriptionQRegularExpression
(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
anchoredPattern
(String expression) final void
final int
clone()
Creates and returns a copy of this object.final boolean
boolean
final String
static String
static QRegularExpression
fromWildcard
(String pattern) static QRegularExpression
fromWildcard
(String pattern, QRegularExpression.WildcardConversionOption ... options) static QRegularExpression
fromWildcard
(String pattern, QRegularExpression.WildcardConversionOptions options) static QRegularExpression
fromWildcard
(String pattern, Qt.CaseSensitivity cs) Overloaded function forfromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)
withoptions = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
.static QRegularExpression
fromWildcard
(String pattern, Qt.CaseSensitivity cs, QRegularExpression.WildcardConversionOption ... options) static QRegularExpression
fromWildcard
(String pattern, Qt.CaseSensitivity cs, QRegularExpression.WildcardConversionOptions options) globalMatch
(String subject) globalMatch
(String subject, long offset) globalMatch
(String subject, long offset, QRegularExpression.MatchOption ... matchOptions) globalMatch
(String subject, long offset, QRegularExpression.MatchOptions matchOptions) globalMatch
(String subject, long offset, QRegularExpression.MatchType matchType) Overloaded function forglobalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.globalMatch
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) globalMatch
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) globalMatch
(String subject, QRegularExpression.MatchOption ... matchOptions) globalMatch
(String subject, QRegularExpression.MatchOptions matchOptions) globalMatch
(String subject, QRegularExpression.MatchType matchType) globalMatch
(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) globalMatch
(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) globalMatchView
(String subject) Deprecated.globalMatchView
(String subject, long offset) globalMatchView
(String subject, long offset, QRegularExpression.MatchType matchType) globalMatchView
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) globalMatchView
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) int
hashCode()
Returns the objects's hash code computed byqHash(QRegularExpression)
.final boolean
isValid()
final QRegularExpressionMatch
final QRegularExpressionMatch
final QRegularExpressionMatch
match
(String subject, long offset, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
match
(String subject, long offset, QRegularExpression.MatchOptions matchOptions) final QRegularExpressionMatch
match
(String subject, long offset, QRegularExpression.MatchType matchType) Overloaded function formatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
.final QRegularExpressionMatch
match
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
match
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) final QRegularExpressionMatch
match
(String subject, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
match
(String subject, QRegularExpression.MatchOptions matchOptions) final QRegularExpressionMatch
match
(String subject, QRegularExpression.MatchType matchType) final QRegularExpressionMatch
match
(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
match
(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) final QRegularExpressionMatch
final QRegularExpressionMatch
final QRegularExpressionMatch
matchView
(String subject, long offset, QRegularExpression.MatchType matchType) final QRegularExpressionMatch
matchView
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) final QRegularExpressionMatch
matchView
(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) final QStringList
final void
optimize()
final String
pattern()
final long
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()
Seeoperator<<(QDebug,
QRegularExpression) static String
Overloaded function forwildcardToRegularExpression(java.lang.String, io.qt.core.QRegularExpression.WildcardConversionOptions)
withoptions = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
.static String
wildcardToRegularExpression
(String str, QRegularExpression.WildcardConversionOption ... options) static String
void
writeTo
(QDataStream out) Seeoperator<<(QDataStream&,
QRegularExpression) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRegularExpression
public QRegularExpression() -
QRegularExpression
- Parameters:
re
-
-
QRegularExpression
- Parameters:
pattern
-options
-
-
QRegularExpression
Overloaded constructor for
QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
withoptions = new io.qt.core.QRegularExpression.PatternOptions(0)
. -
QRegularExpression
Overloaded constructor for
QRegularExpression(java.lang.String, io.qt.core.QRegularExpression.PatternOptions)
.
-
-
Method Details
-
captureCount
- Returns:
-
errorString
- Returns:
-
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) - Parameters:
subject
-offset
-matchType
-matchOptions
-- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
isValid
- Returns:
-
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) - Parameters:
subject
-offset
-matchType
-matchOptions
-- Returns:
- Since:
- This function was introduced in Qt 6.5.
-
namedCaptureGroups
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QRegularExpression) - Parameters:
out
-
-
assign
- Parameters:
re
-
-
equals
- Parameters:
re
-- Returns:
-
readFrom
- Parameters:
in
-
-
optimize
-
pattern
- Returns:
-
patternErrorOffset
- Returns:
-
patternOptions
- Returns:
-
setPattern
- Parameters:
pattern
-
-
setPatternOptions
- Parameters:
options
-
-
swap
- Parameters:
other
-
-
anchoredPattern
- Parameters:
expression
-- Returns:
-
escape
- Parameters:
str
-- Returns:
-
fromWildcard
public static QRegularExpression fromWildcard(String pattern, Qt.CaseSensitivity cs, QRegularExpression.WildcardConversionOptions options) - Parameters:
pattern
-cs
-options
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
wildcardToRegularExpression
public static String wildcardToRegularExpression(String str, QRegularExpression.WildcardConversionOptions options) - Parameters:
str
-options
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QRegularExpression)
. -
fromWildcard
public static QRegularExpression fromWildcard(String pattern, QRegularExpression.WildcardConversionOption ... options) -
fromWildcard
public static QRegularExpression fromWildcard(String pattern, QRegularExpression.WildcardConversionOptions options) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, long offset, QRegularExpression.MatchOption ... matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, long offset, QRegularExpression.MatchOptions matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, long offset, QRegularExpression.MatchOption ... matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, long offset, QRegularExpression.MatchOptions matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, QRegularExpression.MatchType matchType) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, QRegularExpression.MatchOption ... matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, QRegularExpression.MatchOptions matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, QRegularExpression.MatchType matchType) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, QRegularExpression.MatchOption ... matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, QRegularExpression.MatchOptions matchOptions) -
toString
See
operator<<(QDebug,
QRegularExpression) -
clone
Creates and returns a copy of this object.
See
QRegularExpression::
QRegularExpression(QRegularExpression) -
globalMatchView
@Deprecated @QtUninvokable public final QRegularExpressionMatchIterator globalMatchView(String subject, long offset, QRegularExpression.MatchType matchType) Deprecated.Overloaded function for
globalMatchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
. -
globalMatchView
@Deprecated @QtUninvokable public final QRegularExpressionMatchIterator globalMatchView(String subject, long offset) Deprecated.Overloaded function for
globalMatchView(java.lang.String, long, 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)
-
globalMatchView
@Deprecated @QtUninvokable public final QRegularExpressionMatchIterator globalMatchView(String subject) Deprecated.Overloaded function for
globalMatchView(java.lang.String, long, 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)
-
globalMatchView
@Deprecated @QtUninvokable public final QRegularExpressionMatchIterator globalMatchView(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
globalMatchView
@Deprecated @QtUninvokable public final QRegularExpressionMatchIterator globalMatchView(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, long offset, QRegularExpression.MatchType matchType) Overloaded function for
globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
. -
globalMatch
@QtUninvokable public final QRegularExpressionMatchIterator globalMatch(String subject, long offset) Overloaded function for
globalMatch(java.lang.String, long, 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, long, 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, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
matchView
@Deprecated @QtUninvokable public final QRegularExpressionMatch matchView(String subject, long offset, QRegularExpression.MatchType matchType) Deprecated.Overloaded function for
matchView(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
withmatchOptions = new io.qt.core.QRegularExpression.MatchOptions(0)
. -
matchView
@Deprecated @QtUninvokable public final QRegularExpressionMatch matchView(String subject, long offset) Deprecated.Overloaded function for
matchView(java.lang.String, long, 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)
-
matchView
Deprecated.Overloaded function for
matchView(java.lang.String, long, 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)
-
matchView
@Deprecated @QtUninvokable public final QRegularExpressionMatch matchView(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOptions matchOptions) -
matchView
@Deprecated @QtUninvokable public final QRegularExpressionMatch matchView(String subject, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
match
@QtUninvokable public final QRegularExpressionMatch match(String subject, long offset, QRegularExpression.MatchType matchType) Overloaded function for
match(java.lang.String, long, 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, long, 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, long, 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, long offset, QRegularExpression.MatchType matchType, QRegularExpression.MatchOption ... matchOptions) -
setPatternOptions
Overloaded function for
setPatternOptions(io.qt.core.QRegularExpression.PatternOptions)
. -
fromWildcard
Overloaded function for
fromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)
withoptions = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
. -
fromWildcard
Overloaded function for
fromWildcard(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegularExpression.WildcardConversionOptions)
with:
cs = io.qt.core.Qt.CaseSensitivity.CaseInsensitive
options = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
-
fromWildcard
public static QRegularExpression fromWildcard(String pattern, Qt.CaseSensitivity cs, QRegularExpression.WildcardConversionOption ... options) -
wildcardToRegularExpression
Overloaded function for
wildcardToRegularExpression(java.lang.String, io.qt.core.QRegularExpression.WildcardConversionOptions)
withoptions = new io.qt.core.QRegularExpression.WildcardConversionOptions(0)
. -
wildcardToRegularExpression
public static String wildcardToRegularExpression(String str, QRegularExpression.WildcardConversionOption ... options)
-
globalMatch(java.lang.String, long, io.qt.core.QRegularExpression.MatchType, io.qt.core.QRegularExpression.MatchOptions)
instead.