Class Regex
java.lang.Object
org.joni.Regex
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int(package private) int(package private) Search.Backward(package private) int(package private) int(package private) int(package private) final int(package private) int[](package private) intprivate static final org.jcodings.Encoding(package private) int(package private) int(package private) final org.jcodings.Encoding(package private) byte[](package private) int(package private) int(package private) MatcherFactory(package private) Search.Forward(package private) int[](package private) int[](package private) byte[]private org.jcodings.util.BytesHash<NameEntry> (package private) int(package private) int(package private) int(package private) int(package private) int(package private) int(package private) int[](package private) int[](package private) boolean(package private) int(package private) int(package private) int(package private) byte[][](package private) int(package private) Object(package private) int -
Constructor Summary
ConstructorsConstructorDescriptionRegex(byte[] bytes) Regex(byte[] bytes, int p, int end) Regex(byte[] bytes, int p, int end, int option) Regex(byte[] bytes, int p, int end, int option, int caseFoldFlag, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings) Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc) Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings) Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, WarnCallback warnings) Regex(CharSequence cs) Regex(CharSequence cs, org.jcodings.Encoding enc) -
Method Summary
Modifier and TypeMethodDescription(package private) voidorg.jcodings.Encodingintintmatcher(byte[] bytes) matcher(byte[] bytes, int p, int end) matcherNoRegion(byte[] bytes) matcherNoRegion(byte[] bytes, int p, int end) (package private) voidprivate NameEntrynameFind(byte[] name, int nameP, int nameEnd) (package private) StringintnameToBackrefNumber(byte[] name, int nameP, int nameEnd, org.jcodings.Encoding nameEncoding, Region region) intnameToBackrefNumber(byte[] name, int nameP, int nameEnd, Region region) (package private) NameEntrynameToGroupNumbers(byte[] name, int nameP, int nameEnd) booleannoNameGroupIsActive(Syntax syntax) intintint(package private) voidrenumberNameTable(int[] map) (package private) void(package private) void(package private) void(package private) booleansetupBMSkipMap(boolean ignoreCase) private intsetupBMSkipMapCheck(byte[] bytes, int p, int end, org.jcodings.CaseFoldCodeItem[] items, byte[] buf) voidsetUserObject(Object object) voidsetUserOptions(int options)
-
Field Details
-
code
int[] code -
codeLength
int codeLength -
requireStack
boolean requireStack -
numMem
int numMem -
numRepeat
int numRepeat -
numNullCheck
int numNullCheck -
numCombExpCheck
int numCombExpCheck -
numCall
int numCall -
captureHistory
int captureHistory -
btMemStart
int btMemStart -
btMemEnd
int btMemEnd -
stackPopLevel
int stackPopLevel -
repeatRangeLo
int[] repeatRangeLo -
repeatRangeHi
int[] repeatRangeHi -
factory
MatcherFactory factory -
enc
final org.jcodings.Encoding enc -
options
int options -
userOptions
int userOptions -
userObject
Object userObject -
caseFoldFlag
final int caseFoldFlag -
nameTable
-
forward
Search.Forward forward -
backward
Search.Backward backward -
thresholdLength
int thresholdLength -
anchor
int anchor -
anchorDmin
int anchorDmin -
anchorDmax
int anchorDmax -
subAnchor
int subAnchor -
exact
byte[] exact -
exactP
int exactP -
exactEnd
int exactEnd -
map
byte[] map -
intMap
int[] intMap -
intMapBackward
int[] intMapBackward -
dMin
int dMin -
dMax
int dMax -
templates
byte[][] templates -
templateNum
int templateNum -
DEFAULT_ENCODING
private static final org.jcodings.Encoding DEFAULT_ENCODING
-
-
Constructor Details
-
Regex
-
Regex
-
Regex
-
Regex
-
Regex
public Regex(byte[] bytes) -
Regex
public Regex(byte[] bytes, int p, int end) -
Regex
public Regex(byte[] bytes, int p, int end, int option) -
Regex
public Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc) -
Regex
-
Regex
public Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, WarnCallback warnings) -
Regex
public Regex(byte[] bytes, int p, int end, int option, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings) -
Regex
public Regex(byte[] bytes, int p, int end, int option, int caseFoldFlag, org.jcodings.Encoding enc, Syntax syntax, WarnCallback warnings)
-
-
Method Details
-
matcher
-
matcherNoRegion
-
matcher
-
matcherNoRegion
-
numberOfCaptures
public int numberOfCaptures() -
numberOfCaptureHistories
public int numberOfCaptureHistories() -
nameFind
-
renumberNameTable
void renumberNameTable(int[] map) -
nameAdd
-
nameToGroupNumbers
-
nameToBackrefNumber
-
nameToBackrefNumber
public int nameToBackrefNumber(byte[] name, int nameP, int nameEnd, org.jcodings.Encoding nameEncoding, Region region) -
nameTableToString
String nameTableToString() -
namedBackrefIterator
-
numberOfNames
public int numberOfNames() -
noNameGroupIsActive
-
setupBMSkipMap
boolean setupBMSkipMap(boolean ignoreCase) -
setupBMSkipMapCheck
private int setupBMSkipMapCheck(byte[] bytes, int p, int end, org.jcodings.CaseFoldCodeItem[] items, byte[] buf) -
setOptimizeExactInfo
-
setOptimizeMapInfo
-
setSubAnchor
-
clearOptimizeInfo
void clearOptimizeInfo() -
optimizeInfoToString
-
getEncoding
public org.jcodings.Encoding getEncoding() -
getOptions
public int getOptions() -
setUserOptions
public void setUserOptions(int options) -
getUserOptions
public int getUserOptions() -
setUserObject
-
getUserObject
-