Class RuleBasedCollator.NFDIterator

  • Direct Known Subclasses:
    RuleBasedCollator.UTF16NFDIterator
    Enclosing class:
    RuleBasedCollator

    private abstract static class RuleBasedCollator.NFDIterator
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String decomp  
      private int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      NFDIterator()
      Partial constructor, must call reset().
    • Field Detail

      • decomp

        private java.lang.String decomp
      • index

        private int index
    • Constructor Detail

      • NFDIterator

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

      • 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.