com.ibm.icu.text
public class DictionaryBasedBreakIterator extends RuleBasedBreakIterator
UNKNOWN: ICU 2.0
Constructor Summary | |
---|---|
DictionaryBasedBreakIterator(String rules, InputStream dictionaryStream)
Constructs a DictionaryBasedBreakIterator. | |
DictionaryBasedBreakIterator(InputStream compiledRules, InputStream dictionaryStream)
Construct a DictionarBasedBreakIterator from precompiled rules. |
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. |
int | getRuleStatus()
Return the status tag from the break rule that determined the most recently
returned break position.
|
int | getRuleStatusVec(int[] fillInArray)
Get the status (tag) values from the break rule(s) that determined the most
recently returned break 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). |
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) |
Parameters: rules Same as the rules parameter on RuleBasedBreakIterator, except for the special meaning of "_dictionary_". This parameter is just passed through to RuleBasedBreakIterator constructor. dictionaryStream the stream containing the dictionary data
UNKNOWN: ICU 2.0
Deprecated: This API is ICU internal only.
Construct a DictionarBasedBreakIterator from precompiled rules.Parameters: compiledRules an input stream containing the binary (flattened) compiled rules. dictionaryStream an input stream containing the dictionary data
UNKNOWN:
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
Returns: the status from the break rule that determined the most recently returned break position.
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
TODO: not supported for dictionary based break iterator.
Parameters: fillInArray an array to be filled in with the status values.
Returns: The number of rule status values from rules that determined the most recent boundary returned by the break iterator. In the event that the array is too small, the return value is the total number of status values that were available, not the reduced number that were actually returned.
UNKNOWN: ICU 3.0 This API might change or be removed in a future release.
Deprecated: This API is ICU internal only.
This is the implementation function for next().UNKNOWN:
Returns: The text's past-the-end offset.
UNKNOWN: ICU 2.0
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