Class MlBreakEngine

java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.breakiter.MlBreakEngine

public class MlBreakEngine extends Object
  • Constructor Details

    • MlBreakEngine

      public MlBreakEngine(UnicodeSet digitOrOpenPunctuationOrAlphabetSet, UnicodeSet closePunctuationSet)
      Constructor for Chinese and Japanese phrase breaking.
      Parameters:
      digitOrOpenPunctuationOrAlphabetSet - An unicode set with the digit and open punctuation and alphabet.
      closePunctuationSet - An unicode set with the close punctuation.
  • Method Details

    • divideUpRange

      public int divideUpRange(CharacterIterator inText, int startPos, int endPos, CharacterIterator inString, int codePointLength, int[] charPositions, DictionaryBreakEngine.DequeI foundBreaks)
      Divide up a range of characters handled by this break engine.
      Parameters:
      inText - An input text.
      startPos - The start index of the input text.
      endPos - The end index of the input text.
      inString - A input string normalized from inText from startPos to endPos
      codePointLength - The number of code points of inString
      charPositions - A map that transforms inString's code point index to code unit index.
      foundBreaks - A list to store the breakpoint.
      Returns:
      The number of breakpoints