Package com.ibm.icu.text
Class StringSearch.CollationPCE
java.lang.Object
com.ibm.icu.text.StringSearch.CollationPCE
- Enclosing class:
- StringSearch
Java port of ICU4C UCollationPCE (usrchimp.h)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
Processed collation element buffer stuff ported from ICU4C ucoleitr.cppstatic final class
private static final class
private static final class
Raw collation element buffer stuff ported from ICU4C ucoleitr.cpp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private CollationElementIterator
private static final int
private static final int
private boolean
private static final int
static final long
private int
private boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(CollationElementIterator iter) private void
init
(RuleBasedCollator coll) private static boolean
isContinuation
(int ce) long
Get the processed ordering priority of the next collation element in the text.long
Get the processed ordering priority of the previous collation element in the text.private long
processCE
(int ce)
-
Field Details
-
PROCESSED_NULLORDER
public static final long PROCESSED_NULLORDER- See Also:
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE- See Also:
-
BUFFER_GROW
private static final int BUFFER_GROW- See Also:
-
PRIMARYORDERMASK
private static final int PRIMARYORDERMASK- See Also:
-
CONTINUATION_MARKER
private static final int CONTINUATION_MARKER- See Also:
-
pceBuffer_
-
cei_
-
strength_
private int strength_ -
toShift_
private boolean toShift_ -
isShifted_
private boolean isShifted_ -
variableTop_
private int variableTop_
-
-
Constructor Details
-
CollationPCE
-
-
Method Details
-
init
-
init
-
processCE
private long processCE(int ce) -
nextProcessed
Get the processed ordering priority of the next collation element in the text. A single character may contain more than one collation element. Note: This is equivalent to UCollationPCE::nextProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);- Parameters:
range
- receiving the iterator index before/after fetching the CE.- Returns:
- The next collation elements ordering, otherwise returns PROCESSED_NULLORDER if an error has occurred or if the end of string has been reached
-
previousProcessed
Get the processed ordering priority of the previous collation element in the text. A single character may contain more than one collation element. Note: This is equivalent to UCollationPCE::previousProcessed(int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);- Parameters:
range
- receiving the iterator index before/after fetching the CE.- Returns:
- The previous collation elements ordering, otherwise returns PROCESSED_NULLORDER if an error has occurred or if the start of string has been reached.
-
isContinuation
private static boolean isContinuation(int ce)
-