|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quasiliteral.text.FirstCharSplitter
Safe: Splits a string on the first occurrence of any of a set of "special" characters.
Field Summary | |
private String |
myRestChars
do a linear lookup on the rest of the special |
private boolean[] |
mySpecialFlags
optimize the Ascii subset into an array lookup |
Constructor Summary | |
FirstCharSplitter(String specials)
Enabled: |
Method Summary | |
int |
findIn(String str)
Enabled: Return the index of the first occurrence of any of the special chars in str, or -1 if none are found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final boolean[] mySpecialFlags
private final String myRestChars
Constructor Detail |
public FirstCharSplitter(String specials)
Method Detail |
public int findIn(String str)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |