Class CjkBreakEngine

java.lang.Object
com.ibm.icu.impl.breakiter.DictionaryBreakEngine
com.ibm.icu.impl.breakiter.CjkBreakEngine
All Implemented Interfaces:
LanguageBreakEngine

public class CjkBreakEngine extends DictionaryBreakEngine
  • Field Details

  • Constructor Details

  • Method Details

    • initializeJapanesePhraseParamater

      private void initializeJapanesePhraseParamater()
    • loadJapaneseExtensions

      private void loadJapaneseExtensions()
    • loadHiragana

      private void loadHiragana()
    • equals

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

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

      private static int getKatakanaCost(int wordlength)
    • isKatakana

      private static boolean isKatakana(int value)
    • divideUpDictionaryRange

      public int divideUpDictionaryRange(CharacterIterator inText, int startPos, int endPos, 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:
      inText - A UText representing the text
      startPos - The start of the range of dictionary characters
      endPos - 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
    • getPatternFromText

      private String getPatternFromText(CharacterIterator text, StringBuffer sb, int start, int length)