- All Implemented Interfaces:
QtObjectInterface,Cloneable
Pattern matching using regular expressions
Java wrapper for Qt class QRegExp
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enumQRegExp::CaretModestatic enumJava wrapper for Qt enumQRegExp::PatternSyntax -
Constructor Summary
ConstructorsConstructorDescriptionQRegExp()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 voidfinal Stringcap()Overloaded function forcap(int)withnth = 0.final Stringcap(int nth) final intfinal QStringListfinal Qt.CaseSensitivityclone()Creates and returns a copy of this object.final booleanbooleanfinal Stringstatic Stringfinal booleanexactMatch(String str) inthashCode()Returns the objects's hash code computed byqHash(QRegExp).final intOverloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)final intOverloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero.final intindexIn(String str, int offset, QRegExp.CaretMode caretMode) final booleanisEmpty()final booleanfinal booleanisValid()final intlastIndexIn(String str) Overloaded function forlastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)final intlastIndexIn(String str, int offset) Overloaded function forlastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero.final intlastIndexIn(String str, int offset, QRegExp.CaretMode caretMode) final intfinal Stringpattern()final QRegExp.PatternSyntaxfinal intpos()Overloaded function forpos(int)withnth = 0.final intpos(int nth) voidreadFrom(QDataStream in) Seeoperator>>(QDataStream&,QRegExp&) final voidfinal voidsetMinimal(boolean minimal) final voidsetPattern(String pattern) final voidfinal voidtoString()Seeoperator<<(QDebug,QRegExp) voidwriteTo(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.CaseSensitivesyntax = 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 = 0caretMode = 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 = -1caretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
-
pos
Overloaded function for
pos(int)withnth = 0.
-