Package com.ibm.icu.text
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 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.
-
-
Constructor Summary
Constructors Constructor Description NFDIterator()
Partial constructor, must call reset().
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) int
nextCodePoint()
Returns the next code point from the internal normalization buffer, or else the next text code point.(package private) int
nextDecomposedCodePoint(Normalizer2Impl nfcImpl, int c)
protected abstract int
nextRawCodePoint()
Returns the next text code point in FCD order.(package private) void
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.
-
-