Class CollationRootElements
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.coll.CollationRootElements
Container and access methods for collation elements and weights
that occur in the root collator.
Needed for finding boundaries for building a tailoring.
This class takes and returns 16-bit secondary and tertiary weights.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex of the first CE with a non-zero tertiary weight.static final longHigher than any root primary.static final intMask for getting the primary range step value from a primary-range-end element.static final intFlag in a root element, set if the element contains secondary invalid input: '&' tertiary weights, rather than a primary. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the last common secondary weight.intReturns the boundary between secondary weights of primary CEs and those of secondary CEs.intReturns the boundary between tertiary weights of primary/secondary CEs and those of tertiary CEs.
-
Field Details
-
PRIMARY_SENTINEL
public static final long PRIMARY_SENTINELHigher than any root primary.- See Also:
-
SEC_TER_DELTA_FLAG
public static final int SEC_TER_DELTA_FLAGFlag in a root element, set if the element contains secondary invalid input: '&' tertiary weights, rather than a primary.- See Also:
-
PRIMARY_STEP_MASK
public static final int PRIMARY_STEP_MASKMask for getting the primary range step value from a primary-range-end element.- See Also:
-
IX_FIRST_TERTIARY_INDEX
public static final int IX_FIRST_TERTIARY_INDEXIndex of the first CE with a non-zero tertiary weight. Same as the start of the compact root elements table.- See Also:
-
-
Constructor Details
-
CollationRootElements
public CollationRootElements(long[] rootElements)
-
-
Method Details
-
getTertiaryBoundary
public int getTertiaryBoundary()Returns the boundary between tertiary weights of primary/secondary CEs and those of tertiary CEs. This is the upper limit for tertiaries of primary/secondary CEs. This minus one is the lower limit for tertiaries of tertiary CEs. -
getLastCommonSecondary
public int getLastCommonSecondary()Returns the last common secondary weight. This is the lower limit for secondaries of primary CEs. -
getSecondaryBoundary
public int getSecondaryBoundary()Returns the boundary between secondary weights of primary CEs and those of secondary CEs. This is the upper limit for secondaries of primary CEs. This minus one is the lower limit for secondaries of secondary CEs.
-