public interface RbnfLenientScanner
Modifier and Type | Method and Description |
---|---|
boolean |
allIgnorable(java.lang.String s)
Returns true if a string consists entirely of ignorable
characters.
|
int[] |
findText(java.lang.String str,
java.lang.String key,
int startingAt)
Searches a string for another string.
|
int |
prefixLength(java.lang.String str,
java.lang.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(java.lang.String s)
s
- The string to testint prefixLength(java.lang.String str, java.lang.String prefix)
str
- The string being testedprefix
- The text we're hoping to see at the beginning of "str"int[] findText(java.lang.String str, java.lang.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.