- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Pattern matching using regular expressions
Java wrapper for Qt class QRegExp
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQRegExp::CaretMode
static enum
Java wrapper for Qt enumQRegExp::PatternSyntax
-
Constructor Summary
ConstructorDescriptionQRegExp()
Overloaded constructor forQRegExp(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegExp.PatternSyntax)
QRegExp
(String pattern, Qt.CaseSensitivity cs) Overloaded constructor forQRegExp(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegExp.PatternSyntax)
withsyntax = io.qt.core.QRegExp.PatternSyntax.RegExp
.QRegExp
(String pattern, Qt.CaseSensitivity cs, QRegExp.PatternSyntax syntax) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final String
cap()
Overloaded function forcap(int)
withnth = 0
.final String
cap
(int nth) final int
final QStringList
final Qt.CaseSensitivity
clone()
Creates and returns a copy of this object.final boolean
boolean
final String
static String
final boolean
exactMatch
(String str) int
hashCode()
Returns the objects's hash code computed byqHash(QRegExp)
.final int
Overloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
final int
Overloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
.final int
indexIn
(String str, int offset, QRegExp.CaretMode caretMode) final boolean
isEmpty()
final boolean
final boolean
isValid()
final int
lastIndexIn
(String str) Overloaded function forlastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
final int
lastIndexIn
(String str, int offset) Overloaded function forlastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
.final int
lastIndexIn
(String str, int offset, QRegExp.CaretMode caretMode) final int
final String
pattern()
final QRegExp.PatternSyntax
final int
pos()
Overloaded function forpos(int)
withnth = 0
.final int
pos
(int nth) void
readFrom
(QDataStream in) Seeoperator>>(QDataStream&,
QRegExp&) final void
final void
setMinimal
(boolean minimal) final void
setPattern
(String pattern) final void
final void
toString()
Seeoperator<<(QDebug,
QRegExp) void
writeTo
(QDataStream out) Seeoperator<<(QDataStream&,
QRegExp) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRegExp
public QRegExp() -
QRegExp
- Parameters:
rx
-
-
QRegExp
- Parameters:
pattern
-cs
-syntax
-
-
QRegExp
Overloaded constructor for
QRegExp(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegExp.PatternSyntax)
withsyntax = io.qt.core.QRegExp.PatternSyntax.RegExp
. -
QRegExp
Overloaded constructor for
QRegExp(java.lang.String, io.qt.core.Qt.CaseSensitivity, io.qt.core.QRegExp.PatternSyntax)
with:
cs = io.qt.core.Qt.CaseSensitivity.CaseSensitive
syntax = io.qt.core.QRegExp.PatternSyntax.RegExp
-
-
Method Details
-
cap
- Parameters:
nth
-- Returns:
-
captureCount
- Returns:
- Since:
- This function was introduced in Qt 4.6.
-
capturedTexts
- Returns:
-
caseSensitivity
- Returns:
-
errorString
- Returns:
-
exactMatch
- Parameters:
str
-- Returns:
-
indexIn
- Parameters:
str
-offset
-caretMode
-- Returns:
-
isEmpty
- Returns:
-
isMinimal
- Returns:
-
isValid
- Returns:
-
lastIndexIn
- Parameters:
str
-offset
-caretMode
-- Returns:
-
matchedLength
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QRegExp) - Parameters:
out
-
-
assign
- Parameters:
rx
-
-
equals
- Parameters:
rx
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QRegExp&) - Parameters:
in
-
-
pattern
- Returns:
-
patternSyntax
- Returns:
-
pos
- Parameters:
nth
-- Returns:
-
setCaseSensitivity
- Parameters:
cs
-
-
setMinimal
- Parameters:
minimal
-
-
setPattern
- Parameters:
pattern
-
-
setPatternSyntax
- Parameters:
syntax
-
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 4.8.
-
escape
- Parameters:
str
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QRegExp)
. -
toString
See
operator<<(QDebug,
QRegExp) -
clone
Creates and returns a copy of this object.
-
cap
Overloaded function for
cap(int)
withnth = 0
. -
indexIn
Overloaded function for
indexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
. -
indexIn
Overloaded function for
indexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
with:
offset = 0
caretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
-
lastIndexIn
Overloaded function for
lastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
. -
lastIndexIn
Overloaded function for
lastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
with:
offset = -1
caretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
-
pos
Overloaded function for
pos(int)
withnth = 0
.
-