Methods Summary |
---|
public static native void | getDirectionalities(char[] src, byte[] dest, int count)Fill in the first count bytes of dest with the
directionalities from the first count chars of src .
This is just like Character.getDirectionality() except it is a
batch operation.
|
public static native int | getEastAsianWidth(char input)Calculate the East Asian Width of a character according to
Unicode TR#11. The return
will be one of {@link #EAST_ASIAN_WIDTH_NEUTRAL},
{@link #EAST_ASIAN_WIDTH_AMBIGUOUS}, {@link #EAST_ASIAN_WIDTH_HALF_WIDTH},
{@link #EAST_ASIAN_WIDTH_FULL_WIDTH}, {@link #EAST_ASIAN_WIDTH_NARROW},
or {@link #EAST_ASIAN_WIDTH_WIDE}.
|
public static native void | getEastAsianWidths(char[] src, int start, int count, byte[] dest)Fill the first count bytes of dest with the
East Asian Width from count chars of src
starting at start . East Asian Width is calculated based on
Unicode TR#11. Each entry
in dest will be one of {@link #EAST_ASIAN_WIDTH_NEUTRAL},
{@link #EAST_ASIAN_WIDTH_AMBIGUOUS}, {@link #EAST_ASIAN_WIDTH_HALF_WIDTH},
{@link #EAST_ASIAN_WIDTH_FULL_WIDTH}, {@link #EAST_ASIAN_WIDTH_NARROW},
or {@link #EAST_ASIAN_WIDTH_WIDE}.
|
public static native char | getMirror(char ch)Return the right-to-left mirror (or the original char if none)
of the specified char.
|
public static native boolean | mirror(char[] text, int start, int count)Replace the specified slice of text with the chars'
right-to-left mirrors (if any), returning true if any
replacements were made.
|