Package com.ibm.icu.impl.breakiter
Class ThaiBreakEngine
- java.lang.Object
-
- com.ibm.icu.impl.breakiter.DictionaryBreakEngine
-
- com.ibm.icu.impl.breakiter.ThaiBreakEngine
-
- All Implemented Interfaces:
LanguageBreakEngine
public class ThaiBreakEngine extends DictionaryBreakEngine
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
DictionaryBreakEngine.DequeI, DictionaryBreakEngine.PossibleWord
-
-
Field Summary
Fields Modifier and Type Field Description private UnicodeSet
fBeginWordSet
private DictionaryMatcher
fDictionary
private UnicodeSet
fEndWordSet
private UnicodeSet
fMarkSet
private UnicodeSet
fSuffixSet
private static byte
THAI_LOOKAHEAD
private static char
THAI_MAIYAMOK
private static byte
THAI_MIN_WORD
private static byte
THAI_MIN_WORD_SPAN
private static char
THAI_PAIYANNOI
private static byte
THAI_PREFIX_COMBINE_THRESHOLD
private static byte
THAI_ROOT_COMBINE_THRESHOLD
-
Fields inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
fSet
-
-
Constructor Summary
Constructors Constructor Description ThaiBreakEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
divideUpDictionaryRange(java.text.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
equals(java.lang.Object obj)
boolean
handles(int c)
int
hashCode()
-
Methods inherited from class com.ibm.icu.impl.breakiter.DictionaryBreakEngine
findBreaks, setCharacters
-
-
-
-
Field Detail
-
THAI_LOOKAHEAD
private static final byte THAI_LOOKAHEAD
- See Also:
- Constant Field Values
-
THAI_ROOT_COMBINE_THRESHOLD
private static final byte THAI_ROOT_COMBINE_THRESHOLD
- See Also:
- Constant Field Values
-
THAI_PREFIX_COMBINE_THRESHOLD
private static final byte THAI_PREFIX_COMBINE_THRESHOLD
- See Also:
- Constant Field Values
-
THAI_PAIYANNOI
private static final char THAI_PAIYANNOI
- See Also:
- Constant Field Values
-
THAI_MAIYAMOK
private static final char THAI_MAIYAMOK
- See Also:
- Constant Field Values
-
THAI_MIN_WORD
private static final byte THAI_MIN_WORD
- See Also:
- Constant Field Values
-
THAI_MIN_WORD_SPAN
private static final byte THAI_MIN_WORD_SPAN
- See Also:
- Constant Field Values
-
fDictionary
private DictionaryMatcher fDictionary
-
fEndWordSet
private UnicodeSet fEndWordSet
-
fBeginWordSet
private UnicodeSet fBeginWordSet
-
fSuffixSet
private UnicodeSet fSuffixSet
-
fMarkSet
private UnicodeSet fMarkSet
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
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(java.text.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
-
-