Top Description Methods
com.ibm.icu.text

public Interface RbnfLenientScanner

Known Direct Implementers
com.ibm.icu.impl.text.RbnfScannerProviderImpl.RbnfLenientScannerImpl
Annotations
@Deprecated

Deprecated

ICU 54

Used by RBNF to leniently parse a string.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the string is empty or consists entirely of characters that are ignorable.
allIgnorable
(String
The string to test
s
)

Deprecated ICU 54
Returns true if a string consists entirely of ignorable characters.
public int[]

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")
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
)

Deprecated ICU 54
Searches a string for another string.
public int

Returns:

the number of characters in "str" that were matched
prefixLength
(String
The string being tested
str
,
String
The text we're hoping to see at the beginning of "str"
prefix
)

Deprecated ICU 54
Matches characters in a string against a prefix and return the number of chars that matched, or 0 if no match.

Method Detail

allIgnorableback to summary
public boolean allIgnorable(String s)

Deprecated

ICU 54

Returns true if a string consists entirely of ignorable characters.

Parameters
s:String

The string to test

Returns:boolean

true if the string is empty or consists entirely of characters that are ignorable.

Annotations
@Deprecated
findTextback to summary
public int[] findText(String str, String key, int startingAt)

Deprecated

ICU 54

Searches a string for another string. This might use a Collator to compare strings, or just do a simple match.

Parameters
str:String

The string to search

key:String

The string to search "str" for

startingAt:int

The index into "str" where the search is to begin

Returns:int[]

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")

Annotations
@Deprecated
prefixLengthback to summary
public int prefixLength(String str, String prefix)

Deprecated

ICU 54

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.

Parameters
str:String

The string being tested

prefix:String

The text we're hoping to see at the beginning of "str"

Returns:int

the number of characters in "str" that were matched

Annotations
@Deprecated