Package com.ibm.icu.text
Class StringSearch.CollationPCE
- java.lang.Object
-
- com.ibm.icu.text.StringSearch.CollationPCE
-
- Enclosing class:
- StringSearch
private static class StringSearch.CollationPCE extends java.lang.Object
Java port of ICU4C UCollationPCE (usrchimp.h)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
StringSearch.CollationPCE.PCEBuffer
private static class
StringSearch.CollationPCE.PCEI
Processed collation element buffer stuff ported from ICU4C ucoleitr.cppstatic class
StringSearch.CollationPCE.Range
private static class
StringSearch.CollationPCE.RCEBuffer
private static class
StringSearch.CollationPCE.RCEI
Raw collation element buffer stuff ported from ICU4C ucoleitr.cpp
-
Field Summary
Fields Modifier and Type Field Description private static int
BUFFER_GROW
private CollationElementIterator
cei_
private static int
CONTINUATION_MARKER
private static int
DEFAULT_BUFFER_SIZE
private boolean
isShifted_
private StringSearch.CollationPCE.PCEBuffer
pceBuffer_
private static int
PRIMARYORDERMASK
static long
PROCESSED_NULLORDER
private int
strength_
private boolean
toShift_
private int
variableTop_
-
Constructor Summary
Constructors Constructor Description CollationPCE(CollationElementIterator iter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(CollationElementIterator iter)
private void
init(RuleBasedCollator coll)
private static boolean
isContinuation(int ce)
long
nextProcessed(StringSearch.CollationPCE.Range range)
Get the processed ordering priority of the next collation element in the text.long
previousProcessed(StringSearch.CollationPCE.Range range)
Get the processed ordering priority of the previous collation element in the text.private long
processCE(int ce)
-
-
-
Field Detail
-
PROCESSED_NULLORDER
public static final long PROCESSED_NULLORDER
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SIZE
private static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
BUFFER_GROW
private static final int BUFFER_GROW
- See Also:
- Constant Field Values
-
PRIMARYORDERMASK
private static final int PRIMARYORDERMASK
- See Also:
- Constant Field Values
-
CONTINUATION_MARKER
private static final int CONTINUATION_MARKER
- See Also:
- Constant Field Values
-
pceBuffer_
private StringSearch.CollationPCE.PCEBuffer pceBuffer_
-
cei_
private CollationElementIterator cei_
-
strength_
private int strength_
-
toShift_
private boolean toShift_
-
isShifted_
private boolean isShifted_
-
variableTop_
private int variableTop_
-
-
Constructor Detail
-
CollationPCE
public CollationPCE(CollationElementIterator iter)
-
-
Method Detail
-
init
public void init(CollationElementIterator iter)
-
init
private void init(RuleBasedCollator coll)
-
processCE
private long processCE(int ce)
-
nextProcessed
public long nextProcessed(StringSearch.CollationPCE.Range range)
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
public long previousProcessed(StringSearch.CollationPCE.Range range)
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)
-
-