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
  • Field Details

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • handles

      public boolean handles(int c)
      Specified by:
      handles in interface LanguageBreakEngine
      Overrides:
      handles in class DictionaryBreakEngine
      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 class DictionaryBreakEngine
      Parameters:
      fIter - A UText representing the text
      rangeStart - The start of the range of dictionary characters
      rangeEnd - The end of the range of dictionary characters
      foundBreaks - Output of break positions. Positions are pushed. Pre-existing contents of the output stack are unaltered.
      Returns:
      The number of breaks found