Package com.ibm.icu.impl.coll
Class CollationFastLatin
- java.lang.Object
-
- com.ibm.icu.impl.coll.CollationFastLatin
-
public final class CollationFastLatin extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBAIL_OUT_RESULTComparison return value when the regular comparison must be used.static intLATIN_LIMITstatic intLATIN_MAXstatic intVERSIONFast Latin format version (one byte 1..FF).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcompareUTF16(char[] table, char[] primaries, int options, CharSequence left, CharSequence right, int startIndex)static intgetOptions(CollationData data, CollationSettings settings, char[] primaries)Computes the options value for the compare functions and writes the precomputed primary weights.
-
-
-
Field Detail
-
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:
- Constant Field Values
-
LATIN_MAX
public static final int LATIN_MAX
- See Also:
- Constant Field Values
-
LATIN_LIMIT
public static final int LATIN_LIMIT
- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
-
Method Detail
-
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)
-
-