Class RuleBasedCollator.NFDIterator

java.lang.Object
com.ibm.icu.text.RuleBasedCollator.NFDIterator
Direct Known Subclasses:
RuleBasedCollator.UTF16NFDIterator
Enclosing class:
RuleBasedCollator

private abstract static class RuleBasedCollator.NFDIterator extends Object
Abstract iterator for identical-level string comparisons. Returns FCD code points and handles temporary switching to NFD.

As with CollationIterator, Java NFDIterator instances are partially constructed and cached, and completed when reset for use. C++ NFDIterator instances are stack-allocated.

  • Field Details

    • decomp

      private String decomp
    • index

      private int index
  • Constructor Details

    • NFDIterator

      NFDIterator()
      Partial constructor, must call reset().
  • Method Details

    • reset

      final void reset()
    • nextCodePoint

      final int nextCodePoint()
      Returns the next code point from the internal normalization buffer, or else the next text code point. Returns -1 at the end of the text.
    • nextDecomposedCodePoint

      final int nextDecomposedCodePoint(Normalizer2Impl nfcImpl, int c)
      Parameters:
      nfcImpl -
      c - the last code point returned by nextCodePoint() or nextDecomposedCodePoint()
      Returns:
      the first code point in c's decomposition, or c itself if it was decomposed already or if it does not decompose
    • nextRawCodePoint

      protected abstract int nextRawCodePoint()
      Returns the next text code point in FCD order. Returns -1 at the end of the text.