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
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final intReturns the next code point from the internal normalization buffer, or else the next text code point.(package private) final intnextDecomposedCodePoint(Normalizer2Impl nfcImpl, int c) protected abstract intReturns the next text code point in FCD order.(package private) final voidreset()
-
Field Details
-
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
- 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.
-