| java.lang.Object | |
| ↳ | android.text.AndroidCharacter |
AndroidCharacter exposes some character properties that are not easily accessed from java.lang.Character.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | EAST_ASIAN_WIDTH_AMBIGUOUS | ||||||||||
| int | EAST_ASIAN_WIDTH_FULL_WIDTH | ||||||||||
| int | EAST_ASIAN_WIDTH_HALF_WIDTH | ||||||||||
| int | EAST_ASIAN_WIDTH_NARROW | ||||||||||
| int | EAST_ASIAN_WIDTH_NEUTRAL | ||||||||||
| int | EAST_ASIAN_WIDTH_WIDE | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Fill in the first
count bytes of dest with the
directionalities from the first count chars of src. | |||||||||||
Calculate the East Asian Width of a character according to
Unicode TR#11.
| |||||||||||
Fill the first
count bytes of dest with the
East Asian Width from the first count chars of
src. | |||||||||||
Return the right-to-left mirror (or the original char if none)
of the specified char.
| |||||||||||
Replace the specified slice of
text with the chars'
right-to-left mirrors (if any), returning true if any
replacements were made. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
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.
Calculate the East Asian Width of a character according to
Unicode TR#11. The return
will be one of EAST_ASIAN_WIDTH_NEUTRAL,
EAST_ASIAN_WIDTH_AMBIGUOUS, EAST_ASIAN_WIDTH_HALF_WIDTH,
EAST_ASIAN_WIDTH_FULL_WIDTH, EAST_ASIAN_WIDTH_NARROW,
or EAST_ASIAN_WIDTH_WIDE.
| input | the character to measure |
|---|
Fill the first count bytes of dest with the
East Asian Width from the first count chars of
src. East Asian Width is calculated based on
Unicode TR#11. Each entry
in dest> will be one of EAST_ASIAN_WIDTH_NEUTRAL,
EAST_ASIAN_WIDTH_AMBIGUOUS, EAST_ASIAN_WIDTH_HALF_WIDTH,
EAST_ASIAN_WIDTH_FULL_WIDTH, EAST_ASIAN_WIDTH_NARROW,
or EAST_ASIAN_WIDTH_WIDE.
| src | character array of input to measure |
|---|---|
| start | first character in array to measure |
| count | maximum number of characters to measure |
| dest | byte array of results for each character in src |
Return the right-to-left mirror (or the original char if none) of the specified char.
Replace the specified slice of text with the chars'
right-to-left mirrors (if any), returning true if any
replacements were made.
| text | array of characters to apply mirror operation |
|---|---|
| start | first character in array to mirror |
| count | maximum number of characters to mirror |