public interface RbnfLenientScanner
Modifier and Type | Method and Description |
---|---|
boolean |
allIgnorable(String s)
Returns true if a string consists entirely of ignorable
characters.
|
int[] |
findText(String str,
String key,
int startingAt)
Searches a string for another string.
|
int |
prefixLength(String str,
String prefix)
Matches characters in a string against a prefix and return
the number of chars that matched, or 0 if no match.
|
boolean allIgnorable(String s)
s
- The string to testint prefixLength(String str, String prefix)
str
- The string being testedprefix
- The text we're hoping to see at the beginning of "str"int[] findText(String str, String key, int startingAt)
str
- The string to searchkey
- The string to search "str" forstartingAt
- The index into "str" where the search is to
beginCopyright (c) 2012 IBM Corporation and others.