com.caucho.regexp
Class Regexp
java.lang.Object
|
+--com.caucho.regexp.Regexp
- public class Regexp
- extends java.lang.Object
Field Summary |
static int |
FAIL
|
Constructor Summary |
Regexp(com.caucho.regexp.Node prog,
com.caucho.regexp.Regcomp comp)
|
Regexp(java.lang.String pattern)
|
Regexp(java.lang.String pattern,
java.lang.String sflags)
|
Method Summary |
int |
exec(CharBuffer buffer,
int first)
XXX: not proper behaviour with /g |
int |
exec(CharCursor cursor)
XXX: not proper behaviour with /g |
int |
exec(CharCursor cursor,
int start,
int first)
XXX: not proper behaviour with /g |
int |
exec(java.lang.String string,
int first)
XXX: not proper behaviour with /g |
java.lang.String |
fill(java.lang.String test,
java.lang.String replace)
|
CharBuffer |
fill(java.lang.String test,
java.lang.String replace,
CharBuffer cb)
|
int |
getBegin(int i)
|
int |
getEnd(int i)
|
java.lang.String |
getPattern()
|
boolean |
ignoreCase()
|
boolean |
isGlobal()
|
int |
length()
|
boolean |
match(java.lang.String string)
|
java.lang.String |
replace(java.lang.String test,
java.lang.String replace)
|
CharBuffer |
replace(java.lang.String test,
java.lang.String replace,
CharBuffer cb)
|
java.util.ArrayList |
split(java.lang.String string)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FAIL
public static final int FAIL
Regexp
public Regexp(java.lang.String pattern,
java.lang.String sflags)
throws IllegalRegexpException
Regexp
public Regexp(java.lang.String pattern)
throws IllegalRegexpException
Regexp
public Regexp(com.caucho.regexp.Node prog,
com.caucho.regexp.Regcomp comp)
getPattern
public java.lang.String getPattern()
isGlobal
public boolean isGlobal()
ignoreCase
public boolean ignoreCase()
exec
public int exec(CharCursor cursor,
int start,
int first)
- XXX: not proper behaviour with /g
exec
public int exec(java.lang.String string,
int first)
- XXX: not proper behaviour with /g
exec
public int exec(CharBuffer buffer,
int first)
- XXX: not proper behaviour with /g
exec
public int exec(CharCursor cursor)
- XXX: not proper behaviour with /g
getBegin
public int getBegin(int i)
getEnd
public int getEnd(int i)
length
public int length()
match
public boolean match(java.lang.String string)
split
public java.util.ArrayList split(java.lang.String string)
replace
public CharBuffer replace(java.lang.String test,
java.lang.String replace,
CharBuffer cb)
replace
public java.lang.String replace(java.lang.String test,
java.lang.String replace)
fill
public CharBuffer fill(java.lang.String test,
java.lang.String replace,
CharBuffer cb)
fill
public java.lang.String fill(java.lang.String test,
java.lang.String replace)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object