public final class CollationSettings extends SharedObject
SharedObject.Reference<T extends SharedObject>| Modifier and Type | Field and Description |
|---|---|
static int |
BACKWARD_SECONDARY
Options bit 11: Compare secondary weights backwards.
|
static int |
CASE_FIRST
Options 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 int |
CASE_FIRST_AND_UPPER_MASK
Options bit mask for caseFirst and upperFirst, before shifting.
|
static int |
CASE_LEVEL
Options bit 10: Insert the case level between the secondary and tertiary levels.
|
static int |
CHECK_FCD
Options bit 0: Perform the FCD check on the input text and deliver normalized text.
|
int |
fastLatinOptions
Options for CollationFastLatin.
|
char[] |
fastLatinPrimaries |
static int |
NUMERIC
Options bit 1: Numeric collation.
|
int |
options
CHECK_FCD etc.
|
int[] |
reorderCodes
Array of reorder codes; ignored if length == 0.
|
byte[] |
reorderTable
256-byte table for reordering permutation of primary lead bytes; null if no reordering.
|
long |
variableTop
Variable-top primary weight.
|
| Modifier and Type | Method and Description |
|---|---|
CollationSettings |
clone()
Initializes refCount to 0.
|
void |
copyReorderingFrom(CollationSettings other) |
boolean |
dontCheckFCD() |
boolean |
equals(Object other) |
boolean |
getAlternateHandling() |
int |
getCaseFirst() |
boolean |
getFlag(int bit) |
int |
getMaxVariable() |
int |
getStrength() |
int |
hashCode() |
boolean |
hasReordering() |
boolean |
isNumeric() |
long |
reorder(long p) |
void |
resetReordering() |
void |
setAlternateHandlingDefault(int defaultOptions) |
void |
setAlternateHandlingShifted(boolean value) |
void |
setCaseFirst(int value) |
void |
setCaseFirstDefault(int defaultOptions) |
void |
setFlag(int bit,
boolean value)
Sets the options bit for an on/off attribute.
|
void |
setFlagDefault(int bit,
int defaultOptions) |
void |
setMaxVariable(int value,
int defaultOptions) |
void |
setReordering(CollationData data,
int[] codes) |
void |
setStrength(int value) |
void |
setStrengthDefault(int defaultOptions) |
addRef, deleteIfZeroRefCount, getRefCount, removeRefpublic static final int CHECK_FCD
public static final int NUMERIC
public static final int CASE_FIRST
public static final int CASE_FIRST_AND_UPPER_MASK
public static final int CASE_LEVEL
public static final int BACKWARD_SECONDARY
public int options
public long variableTop
public byte[] reorderTable
public int[] reorderCodes
public int fastLatinOptions
public char[] fastLatinPrimaries
public CollationSettings clone()
SharedObjectclone in class SharedObjectpublic void resetReordering()
public void setReordering(CollationData data, int[] codes)
public void copyReorderingFrom(CollationSettings other)
public boolean hasReordering()
public long reorder(long p)
public void setStrength(int value)
public void setStrengthDefault(int defaultOptions)
public int getStrength()
public void setFlag(int bit,
boolean value)
public void setFlagDefault(int bit,
int defaultOptions)
public boolean getFlag(int bit)
public void setCaseFirst(int value)
public void setCaseFirstDefault(int defaultOptions)
public int getCaseFirst()
public void setAlternateHandlingShifted(boolean value)
public void setAlternateHandlingDefault(int defaultOptions)
public boolean getAlternateHandling()
public void setMaxVariable(int value,
int defaultOptions)
public int getMaxVariable()
public boolean dontCheckFCD()
public boolean isNumeric()