public abstract class DictionaryBreakEngine extends Object implements LanguageBreakEngine
| Modifier and Type | Class and Description |
|---|---|
static class |
DictionaryBreakEngine.DequeI
A deque-like structure holding raw ints.
|
| Constructor and Description |
|---|
DictionaryBreakEngine()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
findBreaks(CharacterIterator text,
int startPos,
int endPos,
DictionaryBreakEngine.DequeI foundBreaks,
boolean isPhraseBreaking)
Implements the actual breaking logic.
|
boolean |
handles(int c) |
public boolean handles(int c)
handles in interface LanguageBreakEnginec - A Unicode codepoint valuepublic int findBreaks(CharacterIterator text, int startPos, int endPos, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking)
LanguageBreakEnginefindBreaks in interface LanguageBreakEnginetext - The text to break over. The iterator is left at
the end of the run of characters which the engine has handled.startPos - The index of the beginning of the rangeendPos - The index of the possible end of our range. It is possible,
however, that the range ends earlierfoundBreaks - A data structure to receive the break positions.