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

public final class CollationSettings extends SharedObject
Collation settings/options/attributes. These are the values that can be changed via API.
  • Field Details

    • CHECK_FCD

      public static final int CHECK_FCD
      Options bit 0: Perform the FCD check on the input text and deliver normalized text.
      See Also:
    • NUMERIC

      public static final int NUMERIC
      Options 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_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). 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_MASK
      Options bit mask for caseFirst and upperFirst, before shifting. Same value as caseFirst==upperFirst.
      See Also:
    • CASE_LEVEL

      public static final int CASE_LEVEL
      Options bit 10: Insert the case level between the secondary and tertiary levels.
      See Also:
    • BACKWARD_SECONDARY

      public static final int BACKWARD_SECONDARY
      Options bit 11: Compare secondary weights backwards. ("French secondary")
      See Also:
    • options

      public int options
      CHECK_FCD etc.
    • variableTop

      public long variableTop
      Variable-top primary weight.
    • reorderTable

      public byte[] reorderTable
      256-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[] reorderCodes
      Array of reorder codes; ignored if length == 0.
    • fastLatinOptions

      public int fastLatinOptions
      Options for CollationFastLatin. Negative if disabled.
    • fastLatinPrimaries

      public char[] fastLatinPrimaries
  • Method Details

    • clone

      public CollationSettings clone()
      Description copied from class: SharedObject
      Initializes refCount to 0.
      Overrides:
      clone in class SharedObject
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • resetReordering

      public void resetReordering()
    • setReordering

      public void setReordering(CollationData data, int[] codes)
    • copyReorderingFrom

      public void copyReorderingFrom(CollationSettings other)
    • 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()