Package com.ibm.icu.impl.breakiter
Class LaoBreakEngine
java.lang.Object
com.ibm.icu.impl.breakiter.DictionaryBreakEngine
com.ibm.icu.impl.breakiter.LaoBreakEngine
- All Implemented Interfaces:
LanguageBreakEngine
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
DictionaryBreakEngine.DequeI, DictionaryBreakEngine.PossibleWord
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnicodeSet
private DictionaryMatcher
private UnicodeSet
private UnicodeSet
private static final byte
private static final byte
private static final byte
private static final byte
Fields inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
fSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
divideUpDictionaryRange
(CharacterIterator fIter, int rangeStart, int rangeEnd, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking) Divide up a range of known dictionary characters handled by this break engine.boolean
boolean
handles
(int c) int
hashCode()
Methods inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
findBreaks, setCharacters
-
Field Details
-
LAO_LOOKAHEAD
private static final byte LAO_LOOKAHEAD- See Also:
-
LAO_ROOT_COMBINE_THRESHOLD
private static final byte LAO_ROOT_COMBINE_THRESHOLD- See Also:
-
LAO_PREFIX_COMBINE_THRESHOLD
private static final byte LAO_PREFIX_COMBINE_THRESHOLD- See Also:
-
LAO_MIN_WORD
private static final byte LAO_MIN_WORD- See Also:
-
fDictionary
-
fEndWordSet
-
fBeginWordSet
-
fMarkSet
-
-
Constructor Details
-
LaoBreakEngine
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
handles
public boolean handles(int c) - Specified by:
handles
in interfaceLanguageBreakEngine
- Overrides:
handles
in classDictionaryBreakEngine
- Parameters:
c
- A Unicode codepoint value- Returns:
- true if the engine can handle this character, false otherwise
-
divideUpDictionaryRange
public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking) Description copied from class:DictionaryBreakEngine
Divide up a range of known dictionary characters handled by this break engine.
- Specified by:
divideUpDictionaryRange
in classDictionaryBreakEngine
- Parameters:
fIter
- A UText representing the textrangeStart
- The start of the range of dictionary charactersrangeEnd
- The end of the range of dictionary charactersfoundBreaks
- Output of break positions. Positions are pushed. Pre-existing contents of the output stack are unaltered.- Returns:
- The number of breaks found
-