- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QRegExp extends QtObject implements Cloneable
Pattern matching using regular expressions
Java wrapper for Qt class QRegExp
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QRegExp.CaretMode
Java wrapper for Qt enum QRegExp::CaretModestatic class
QRegExp.PatternSyntax
Java wrapper for Qt enum QRegExp::PatternSyntax -
Constructor Summary
Constructors Modifier Constructor Description QRegExp()
QRegExp(QRegExp rx)
protected
QRegExp(QtObject.QPrivateConstructor p)
Constructor for internal use only.QRegExp(String pattern)
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 Type Method Description String
cap()
Overloaded function forcap(int)
withnth = 0
.String
cap(int nth)
int
captureCount()
List<String>
capturedTexts()
Qt.CaseSensitivity
caseSensitivity()
QRegExp
clone()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.String
errorString()
static String
escape(String str)
boolean
exactMatch(String str)
int
hashCode()
int
indexIn(String str)
Overloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
int
indexIn(String str, int offset)
Overloaded function forindexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
withcaretMode = io.qt.core.QRegExp.CaretMode.CaretAtZero
.int
indexIn(String str, int offset, QRegExp.CaretMode caretMode)
boolean
isEmpty()
boolean
isMinimal()
boolean
isValid()
int
lastIndexIn(String str)
Overloaded function forlastIndexIn(java.lang.String, int, io.qt.core.QRegExp.CaretMode)
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
.int
lastIndexIn(String str, int offset, QRegExp.CaretMode caretMode)
int
matchedLength()
String
pattern()
QRegExp.PatternSyntax
patternSyntax()
int
pos()
Overloaded function forpos(int)
withnth = 0
.int
pos(int nth)
void
readFrom(QDataStream in)
void
setCaseSensitivity(Qt.CaseSensitivity cs)
void
setMinimal(boolean minimal)
void
setPattern(String pattern)
void
setPatternSyntax(QRegExp.PatternSyntax syntax)
void
swap(QRegExp other)
String
toString()
void
writeTo(QDataStream out)
-
Constructor Details
-
QRegExp
public QRegExp() -
QRegExp
-
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
-
QRegExp
-
QRegExp
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
cap
Overloaded function for
cap(int)
withnth = 0
. -
cap
-
captureCount
-
capturedTexts
-
caseSensitivity
-
errorString
-
exactMatch
-
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
-
indexIn
-
isEmpty
-
isMinimal
-
isValid
-
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
-
lastIndexIn
-
matchedLength
-
writeTo
-
readFrom
-
pattern
-
patternSyntax
-
pos
Overloaded function for
pos(int)
withnth = 0
. -
pos
-
setCaseSensitivity
-
setMinimal
-
setPattern
-
setPatternSyntax
-
swap
-
escape
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
public int hashCode() -
toString
-
clone
-