Class CollationSettings
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.coll.SharedObject
org.graalvm.shadowed.com.ibm.icu.impl.coll.CollationSettings
- All Implemented Interfaces:
Cloneable
Collation settings/options/attributes.
These are the values that can be changed via API.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graalvm.shadowed.com.ibm.icu.impl.coll.SharedObject
SharedObject.Reference<T extends SharedObject> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOptions bit 11: Compare secondary weights backwards.static final intOptions bit 9: Keep the case bits in the tertiary weight (they trump other tertiary values) unless case level is on (when they are *moved* into the separate case level).static final intOptions bit mask for caseFirst and upperFirst, before shifting.static final intOptions bit 10: Insert the case level between the secondary and tertiary levels.static final intOptions bit 0: Perform the FCD check on the input text and deliver normalized text.intOptions for CollationFastLatin.char[]static final intOptions bit 1: Numeric collation.intCHECK_FCD etc.int[]Array of reorder codes; ignored if length == 0.byte[]256-byte table for reordering permutation of primary lead bytes; null if no reordering.longVariable-top primary weight. -
Method Summary
Modifier and TypeMethodDescriptionclone()Initializes refCount to 0.voidbooleanbooleanbooleanintbooleangetFlag(int bit) intintinthashCode()booleanbooleanlongreorder(long p) voidvoidsetAlternateHandlingDefault(int defaultOptions) voidsetAlternateHandlingShifted(boolean value) voidsetCaseFirst(int value) voidsetCaseFirstDefault(int defaultOptions) voidsetFlag(int bit, boolean value) Sets the options bit for an on/off attribute.voidsetFlagDefault(int bit, int defaultOptions) voidsetMaxVariable(int value, int defaultOptions) voidsetReordering(CollationData data, int[] codes) voidsetStrength(int value) voidsetStrengthDefault(int defaultOptions) Methods inherited from class org.graalvm.shadowed.com.ibm.icu.impl.coll.SharedObject
addRef, deleteIfZeroRefCount, getRefCount, removeRef
-
Field Details
-
CHECK_FCD
public static final int CHECK_FCDOptions bit 0: Perform the FCD check on the input text and deliver normalized text.- See Also:
-
NUMERIC
public static final int NUMERICOptions bit 1: Numeric collation. Also known as CODAN = COllate Digits As Numbers. Treat digit sequences as numbers with CE sequences in numeric order, rather than returning a normal CE for each digit.- See Also:
-
CASE_FIRST
public static final int CASE_FIRSTOptions bit 9: Keep the case bits in the tertiary weight (they trump other tertiary values) unless case level is on (when they are *moved* into the separate case level). By default, the case bits are removed from the tertiary weight (ignored). When CASE_FIRST is off, UPPER_FIRST must be off too, corresponding to the tri-value UCOL_CASE_FIRST attribute: UCOL_OFF vs. UCOL_LOWER_FIRST vs. UCOL_UPPER_FIRST.- See Also:
-
CASE_FIRST_AND_UPPER_MASK
public static final int CASE_FIRST_AND_UPPER_MASKOptions bit mask for caseFirst and upperFirst, before shifting. Same value as caseFirst==upperFirst.- See Also:
-
CASE_LEVEL
public static final int CASE_LEVELOptions bit 10: Insert the case level between the secondary and tertiary levels.- See Also:
-
BACKWARD_SECONDARY
public static final int BACKWARD_SECONDARYOptions bit 11: Compare secondary weights backwards. ("French secondary")- See Also:
-
options
public int optionsCHECK_FCD etc. -
variableTop
public long variableTopVariable-top primary weight. -
reorderTable
public byte[] reorderTable256-byte table for reordering permutation of primary lead bytes; null if no reordering. A 0 entry at a non-zero index means that the primary lead byte is "split" (there are different offsets for primaries that share that lead byte) and the reordering offset must be determined via the reorderRanges. -
reorderCodes
public int[] reorderCodesArray of reorder codes; ignored if length == 0. -
fastLatinOptions
public int fastLatinOptionsOptions for CollationFastLatin. Negative if disabled. -
fastLatinPrimaries
public char[] fastLatinPrimaries
-
-
Method Details
-
clone
Description copied from class:SharedObjectInitializes refCount to 0.- Overrides:
clonein classSharedObject
-
equals
-
hashCode
-
resetReordering
public void resetReordering() -
setReordering
-
copyReorderingFrom
-
hasReordering
public boolean hasReordering() -
reorder
public long reorder(long p) -
setStrength
public void setStrength(int value) -
setStrengthDefault
public void setStrengthDefault(int defaultOptions) -
getStrength
public int getStrength() -
setFlag
public void setFlag(int bit, boolean value) Sets the options bit for an on/off attribute. -
setFlagDefault
public void setFlagDefault(int bit, int defaultOptions) -
getFlag
public boolean getFlag(int bit) -
setCaseFirst
public void setCaseFirst(int value) -
setCaseFirstDefault
public void setCaseFirstDefault(int defaultOptions) -
getCaseFirst
public int getCaseFirst() -
setAlternateHandlingShifted
public void setAlternateHandlingShifted(boolean value) -
setAlternateHandlingDefault
public void setAlternateHandlingDefault(int defaultOptions) -
getAlternateHandling
public boolean getAlternateHandling() -
setMaxVariable
public void setMaxVariable(int value, int defaultOptions) -
getMaxVariable
public int getMaxVariable() -
dontCheckFCD
public boolean dontCheckFCD() -
isNumeric
public boolean isNumeric()
-