# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# AndroidCharacter

`public class AndroidCharacter`
`extends Object` ``

java.lang.Object
↳ | android.text.AndroidCharacter

This class is deprecated.
Use various methods from `UCharacter`, instead.

AndroidCharacter exposes some character properties that used to be not easily accessed from java.lang.Character, but are now available in ICU.

## Summary

### 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
`AndroidCharacter()`

### Public methods
`static 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`.
`static int` | `getEastAsianWidth(char input)` Calculate the East Asian Width of a character according to Unicode TR#11.
`static 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`.
`static char` | `getMirror(char ch)` Return the right-to-left mirror (or the original char if none) of the specified char.
`static 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.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### EAST_ASIAN_WIDTH_AMBIGUOUS

    public static final int EAST_ASIAN_WIDTH_AMBIGUOUS

Constant Value: 1 (0x00000001)

### EAST_ASIAN_WIDTH_FULL_WIDTH

    public static final int EAST_ASIAN_WIDTH_FULL_WIDTH

Constant Value: 3 (0x00000003)

### EAST_ASIAN_WIDTH_HALF_WIDTH

    public static final int EAST_ASIAN_WIDTH_HALF_WIDTH

Constant Value: 2 (0x00000002)

### EAST_ASIAN_WIDTH_NARROW

    public static final int EAST_ASIAN_WIDTH_NARROW

Constant Value: 4 (0x00000004)

### EAST_ASIAN_WIDTH_NEUTRAL

    public static final int EAST_ASIAN_WIDTH_NEUTRAL

Constant Value: 0 (0x00000000)

### EAST_ASIAN_WIDTH_WIDE

    public static final int EAST_ASIAN_WIDTH_WIDE

Constant Value: 5 (0x00000005)

## Public constructors

### AndroidCharacter

    public AndroidCharacter ()

## Public methods

### getDirectionalities

    public static 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.

Parameters
`src` | `char`
`dest` | `byte`
`count` | `int`

### getEastAsianWidth

    public static int getEastAsianWidth (char input)

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`.

Parameters
`input` | `char`: the character to measure

Returns
`int` | the East Asian Width for input

### getEastAsianWidths

    public static 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 `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`.

Parameters
`src` | `char`: character array of input to measure
`start` | `int`: first character in array to measure
`count` | `int`: maximum number of characters to measure
`dest` | `byte`: byte array of results for each character in src

### getMirror

    public static char getMirror (char ch)

Return the right-to-left mirror (or the original char if none) of the specified char.

Parameters
`ch` | `char`

Returns
`char` |

### mirror

    public static 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.

Parameters
`text` | `char`: array of characters to apply mirror operation
`start` | `int`: first character in array to mirror
`count` | `int`: maximum number of characters to mirror

Returns
`boolean` | true if replacements were made

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*