Fields Summary |
---|
protected static final int | CODE_POINT_MASKA mask to decode the code point value. |
protected static final int | COMBINING_CLASS_MASKA mask to decode the combining class. |
protected static final int | UNSAFE_CODE_POINT_FLAGA flag indicating a code point that is unsafe to start UCA with. |
protected static final int | IGNORABLE_CODE_POINT_FLAGA flag indicating an ignorable code point. |
protected static final int | LOGICAL_ORDER_EXCEPTION_FLAGA flag indicating a code point with a logical order exception. |
protected static final int | SINGLE_CODE_POINT_FLAGA flag indicating a single encoded code point. |
protected static final int | COMBINING_CLASS_SHIFTA shift value to decode the combining class. |
Methods Summary |
---|
public abstract int | getCanonicalDecomposition(int[] buffer, int offset, int cp)Gets the canonical decomposition elements for the given unicode
character. The decompositon is returned as a single or an array of
encoded code points. The encoded values can be further decoded by
the static methods of this class.
The return value depends on the number of code points to which
the given code point decomposes. If it decomposes to a single code point,
its encoded value is returned, otherwise the decomposition is stored in
the given array and the method returns only the length of the
decomposition.
|
public static final int | getCodePoint(int ecp)Returns the code point value of an encoded code point.
return ecp & CODE_POINT_MASK;
|
public static final int | getCombiningClass(int ecp)Returns the combining class of an encoded code point.
return (ecp & COMBINING_CLASS_MASK) >>> COMBINING_CLASS_SHIFT;
|
public abstract int | getMaxDecompositionLength()Returns the length of the longest decomposition in the table.
|
public static final boolean | hasLogicalOrderException(int ecp)Checks if the given code point has a logical order exception.
return (ecp & LOGICAL_ORDER_EXCEPTION_FLAG) != 0;
|
public static final boolean | isIgnorable(int ecp)Returns true if the given code point is ignorable for
the collation algorithm (at all levels).
return (ecp & IGNORABLE_CODE_POINT_FLAG) != 0;
|
public static final boolean | isSingleCodePoint(int codeOrCount)Returns true if the given value represents a single encoded
code point and false if it's a number of code points.
return (codeOrCount & SINGLE_CODE_POINT_FLAG) != 0;
|
public static final boolean | isStable(int ecp)Returns true if the given code point has a zero combining
class.
return (ecp & COMBINING_CLASS_MASK) == 0;
|
public static final boolean | isUnsafe(int ecp)Returns true if the given code point is unsafe to start
the collation algorithm with.
return (ecp & UNSAFE_CODE_POINT_FLAG) != 0;
|