Deprecated
This API is ICU internal only.
| Modifier and Type | Class and Description |
|---|---|
| private static class | RbnfScannerProviderImpl.RbnfLenientScannerImpl
Deprecated
as a consequence of
RbnfLenientScanner being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected RbnfLenientScanner | |
| public RbnfLenientScanner | get(ULocale
the locale to provide the default lenient rules. locale, String extra collation rules extras)Implements com.
Deprecated
This API is ICU internal only.
Returns a collation-based scanner.
|
| cache | back to summary |
|---|---|
| private Map<String, RbnfLenientScanner> cache | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| RbnfScannerProviderImpl | back to summary |
|---|---|
| public RbnfScannerProviderImpl()
Deprecated This API is ICU internal only.
| |
| createScanner | back to summary |
|---|---|
| protected RbnfLenientScanner createScanner(ULocale locale, String extras)
Deprecated This API is ICU internal only.
| |
| get | back to summary |
|---|---|
| public RbnfLenientScanner get(ULocale locale, String extras) Implements com. Deprecated This API is ICU internal only. Returns a collation-based scanner.
Only primary differences are treated as significant. This means that case
differences, accent differences, alternate spellings of the same letter
(e.g., ae and a-umlaut in German), ignorable characters, etc. are ignored in
matching the text. In many cases, numerals will be accepted in place of words
or phrases as well.
For example, all of the following will correctly parse as 255 in English in
lenient-parse mode:
| |
Deprecated
as a consequence of RbnfLenientScanner being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private final RuleBasedCollator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allIgnorable(String
The string to test s)Implements com. |
| public int[] | findText(String
The string to search str, String The string to search "str" for key, int The index into "str" where the search is to
begin startingAt)Implements com. |
| public int[] | |
| public int | prefixLength(String
The string being tested str, String The text we're hoping to see at the beginning of "str" prefix)Implements com. |
| collator | back to summary |
|---|---|
| private final RuleBasedCollator collator | |
| RbnfLenientScannerImpl | back to summary |
|---|---|
| private RbnfLenientScannerImpl(RuleBasedCollator rbc) | |
| allIgnorable | back to summary |
|---|---|
| public boolean allIgnorable(String s) Implements com. Doc from com. Returns true if a string consists entirely of ignorable characters.
| |
| findText | back to summary |
|---|---|
| public int[] findText(String str, String key, int startingAt) Implements com. Doc from com. Searches a string for another string. This might use a Collator to compare strings, or just do a simple match.
| |
| findText2 | back to summary |
|---|---|
public int[] findText2(String str, String key, int startingAt)
| |
| prefixLength | back to summary |
|---|---|
| public int prefixLength(String str, String prefix) Implements com. Doc from com. Matches 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. | |