Package com.ibm.icu.text
Interface RbnfLenientScanner
-
@Deprecated public interface RbnfLenientScanner
Deprecated.ICU 54Used by RBNF to leniently parse a string.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
allIgnorable(String s)
Deprecated.ICU 54int[]
findText(String str, String key, int startingAt)
Deprecated.ICU 54int
prefixLength(String str, String prefix)
Deprecated.ICU 54
-
-
-
Method Detail
-
allIgnorable
@Deprecated boolean allIgnorable(String s)
Deprecated.ICU 54Returns true if a string consists entirely of ignorable characters.- Parameters:
s
- The string to test- Returns:
- true if the string is empty or consists entirely of characters that are ignorable.
-
prefixLength
@Deprecated int prefixLength(String str, String prefix)
Deprecated.ICU 54Matches characters in a string against a prefix and return the number of chars that matched, or 0 if no match. Only primary-order differences are significant in determining whether there's a match. This means that the returned value need not be the same as the length of the prefix.- Parameters:
str
- The string being testedprefix
- The text we're hoping to see at the beginning of "str"- Returns:
- the number of characters in "str" that were matched
-
findText
@Deprecated int[] findText(String str, String key, int startingAt)
Deprecated.ICU 54Searches a string for another string. This might use a Collator to compare strings, or just do a simple match.- Parameters:
str
- The string to searchkey
- The string to search "str" forstartingAt
- The index into "str" where the search is to begin- Returns:
- A two-element array of ints. Element 0 is the position of the match, or -1 if there was no match. Element 1 is the number of characters in "str" that matched (which isn't necessarily the same as the length of "key")
-
-