com.ibm.icu.text
public class DictionaryBasedBreakIterator extends RuleBasedBreakIterator_Old
UNKNOWN: ICU 2.0
Nested Class Summary | |
---|---|
protected class | DictionaryBasedBreakIterator.Builder
The Builder class for DictionaryBasedBreakIterator inherits almost all of
its functionality from the Builder class for RuleBasedBreakIterator_Old, but
extends it with extra logic to handle the DICTIONARY_VAR token |
Constructor Summary | |
---|---|
DictionaryBasedBreakIterator(String description, InputStream dictionaryStream)
Constructs a DictionaryBasedBreakIterator. |
Method Summary | |
---|---|
int | first()
Sets the current iteration position to the beginning of the text.
(i.e., the CharacterIterator's starting offset). |
int | following(int offset)
Sets the current iteration position to the first boundary position after
the specified position. |
protected int | handleNext()
This is the implementation function for next(). |
int | last()
Sets the current iteration position to the end of the text.
(i.e., the CharacterIterator's ending offset). |
protected int | lookupCategory(char c)
Looks up a character category for a character. |
protected RuleBasedBreakIterator_Old.Builder | makeBuilder()
Returns a Builder that is customized to build a DictionaryBasedBreakIterator.
|
int | preceding(int offset)
Sets the current iteration position to the last boundary position
before the specified position. |
int | previous()
Advances the iterator one step backwards. |
void | setText(CharacterIterator newText) |
void | writeTablesToFile(FileOutputStream file, boolean littleEndian) |
Parameters: description Same as the description parameter on RuleBasedBreakIterator_Old, except for the special meaning of DICTIONARY_VAR. This parameter is just passed through to RuleBasedBreakIterator_Old's constructor. dictionaryStream the stream containing the dictionary data
UNKNOWN: ICU 2.0
Returns: The offset of the beginning of the text.
UNKNOWN: ICU 2.0
Parameters: offset The position to begin searching forward from
Returns: The position of the first boundary after "offset"
UNKNOWN: ICU 2.0
UNKNOWN:
Returns: The text's past-the-end offset.
UNKNOWN: ICU 2.0
UNKNOWN:
UNKNOWN:
Parameters: offset The position to begin searching from
Returns: The position of the last boundary before "offset"
UNKNOWN: ICU 2.0
Returns: The position of the last boundary position before the current iteration position
UNKNOWN: ICU 2.0
UNKNOWN: ICU 2.0
UNKNOWN: