Class KhmerBreakEngine
java.lang.Object
com.ibm.icu.impl.breakiter.DictionaryBreakEngine
com.ibm.icu.impl.breakiter.KhmerBreakEngine
- All Implemented Interfaces:
LanguageBreakEngine
-
Nested Class Summary
Nested classes/interfaces inherited from class DictionaryBreakEngine
DictionaryBreakEngine.DequeI, DictionaryBreakEngine.PossibleWord -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnicodeSetprivate DictionaryMatcherprivate UnicodeSetprivate UnicodeSetprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteFields inherited from class DictionaryBreakEngine
fSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdivideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, DictionaryBreakEngine.DequeI foundBreaks, boolean isPhraseBreaking) Divide up a range of known dictionary characters handled by this break engine.booleanbooleanhandles(int c) inthashCode()Methods inherited from class DictionaryBreakEngine
findBreaks, setCharacters
-
Field Details
-
KHMER_LOOKAHEAD
private static final byte KHMER_LOOKAHEAD- See Also:
-
KHMER_ROOT_COMBINE_THRESHOLD
private static final byte KHMER_ROOT_COMBINE_THRESHOLD- See Also:
-
KHMER_PREFIX_COMBINE_THRESHOLD
private static final byte KHMER_PREFIX_COMBINE_THRESHOLD- See Also:
-
KHMER_MIN_WORD
private static final byte KHMER_MIN_WORD- See Also:
-
KHMER_MIN_WORD_SPAN
private static final byte KHMER_MIN_WORD_SPAN- See Also:
-
fDictionary
-
fEndWordSet
-
fBeginWordSet
-
fMarkSet
-
-
Constructor Details
-
KhmerBreakEngine
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
handles
public boolean handles(int c) - Specified by:
handlesin interfaceLanguageBreakEngine- Overrides:
handlesin 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:DictionaryBreakEngineDivide up a range of known dictionary characters handled by this break engine.
- Specified by:
divideUpDictionaryRangein 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
-