Class CollationFastLatin

java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.coll.CollationFastLatin

public final class CollationFastLatin extends Object
  • Field Details

    • VERSION

      public static final int VERSION
      Fast Latin format version (one byte 1..FF). Must be incremented for any runtime-incompatible changes, in particular, for changes to any of the following constants. When the major version number of the main data format changes, we can reset this fast Latin version to 1.
      See Also:
    • LATIN_MAX

      public static final int LATIN_MAX
      See Also:
    • LATIN_LIMIT

      public static final int LATIN_LIMIT
      See Also:
    • BAIL_OUT_RESULT

      public static final int BAIL_OUT_RESULT
      Comparison return value when the regular comparison must be used. The exact value is not relevant for the format version.
      See Also:
  • Method Details

    • getOptions

      public static int getOptions(CollationData data, CollationSettings settings, char[] primaries)
      Computes the options value for the compare functions and writes the precomputed primary weights. Returns -1 if the Latin fastpath is not supported for the data and settings. The capacity must be LATIN_LIMIT.
    • compareUTF16

      public static int compareUTF16(char[] table, char[] primaries, int options, CharSequence left, CharSequence right, int startIndex)