Class FCDUTF16CollationIterator
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.coll.CollationIterator
org.graalvm.shadowed.com.ibm.icu.impl.coll.UTF16CollationIterator
org.graalvm.shadowed.com.ibm.icu.impl.coll.FCDUTF16CollationIterator
Incrementally checks the input text for FCD and normalizes where necessary.
-
Field Summary
Fields inherited from class UTF16CollationIterator
limit, pos, seq, startFields inherited from class CollationIterator
data, NO_CP_AND_CE32, trie -
Constructor Summary
ConstructorsConstructorDescriptionPartial constructor, seeCollationIterator(CollationData).FCDUTF16CollationIterator(CollationData data, boolean numeric, CharSequence s, int p) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbackwardNumCodePoints(int num) booleanprotected voidforwardNumCodePoints(int num) intprotected longReturns the next code point and its local CE32 value.inthashCode()intReturns the next code point (with post-increment).intReturns the previous code point (with pre-decrement).voidresetToOffset(int newOffset) Resets the iterator state and sets the position to the specified offset.voidsetText(boolean numeric, CharSequence s, int p) Methods inherited from class UTF16CollationIterator
handleGetTrailSurrogateMethods inherited from class CollationIterator
appendCEsFromCE32, clearCEsIfNoneRemaining, fetchCEs, forbidSurrogateCodePoints, getCE, getCE32FromBuilderData, getCEs, getCEsLength, getDataCE32, isLeadSurrogate, isTrailSurrogate, makeCodePointAndCE32Pair, nextCE, previousCE, reset, reset
-
Constructor Details
-
FCDUTF16CollationIterator
Partial constructor, seeCollationIterator(CollationData). -
FCDUTF16CollationIterator
-
-
Method Details
-
equals
- Overrides:
equalsin classUTF16CollationIterator
-
hashCode
public int hashCode()- Overrides:
hashCodein classUTF16CollationIterator
-
resetToOffset
public void resetToOffset(int newOffset) Description copied from class:CollationIteratorResets the iterator state and sets the position to the specified offset. Subclasses must implement, and must call the parent class method, or CollationIterator.reset().- Overrides:
resetToOffsetin classUTF16CollationIterator
-
getOffset
public int getOffset()- Overrides:
getOffsetin classUTF16CollationIterator
-
setText
- Overrides:
setTextin classUTF16CollationIterator
-
nextCodePoint
public int nextCodePoint()Description copied from class:CollationIteratorReturns the next code point (with post-increment). Public for identical-level comparison and for testing.- Overrides:
nextCodePointin classUTF16CollationIterator
-
previousCodePoint
public int previousCodePoint()Description copied from class:CollationIteratorReturns the previous code point (with pre-decrement). Public for identical-level comparison and for testing.- Overrides:
previousCodePointin classUTF16CollationIterator
-
handleNextCE32
protected long handleNextCE32()Description copied from class:CollationIteratorReturns the next code point and its local CE32 value. Returns Collation.FALLBACK_CE32 at the end of the text (cinvalid input: '<'0) or when c's CE32 value is to be looked up in the base data (fallback). The code point is used for fallbacks, context and implicit weights. It is ignored when the returned CE32 is not special (e.g., FFFD_CE32). Returns the code point in bits 63..32 (signed) and the CE32 in bits 31..0.- Overrides:
handleNextCE32in classUTF16CollationIterator
-
forwardNumCodePoints
protected void forwardNumCodePoints(int num) - Overrides:
forwardNumCodePointsin classUTF16CollationIterator
-
backwardNumCodePoints
protected void backwardNumCodePoints(int num) - Overrides:
backwardNumCodePointsin classUTF16CollationIterator
-