AndroidCharacter

open class AndroidCharacter
kotlin.Any
   ↳ android.text.AndroidCharacter

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

Summary

Constants
static Int

This class was deprecated in API level 21.

static Int

This class was deprecated in API level 21.

static Int

This class was deprecated in API level 21.

static Int

This class was deprecated in API level 21.

static Int

This class was deprecated in API level 21.

static Int

This class was deprecated in API level 21.

Public constructors

Public methods
open static Unit
getDirectionalities(src: CharArray!, dest: ByteArray!, count: Int)

This class was deprecated in API level 21.

open static Int

This class was deprecated in API level 21.

open static Unit
getEastAsianWidths(src: CharArray!, start: Int, count: Int, dest: ByteArray!)

This class was deprecated in API level 21.

open static Boolean
mirror(text: CharArray!, start: Int, count: Int)

This class was deprecated in API level 21.

open static Char

This class was deprecated in API level 21.

Constants

EAST_ASIAN_WIDTH_AMBIGUOUS

added in API level 8
static val 
        EAST_ASIAN_WIDTH_AMBIGUOUS
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 1

EAST_ASIAN_WIDTH_FULL_WIDTH

added in API level 8
static val 
        EAST_ASIAN_WIDTH_FULL_WIDTH
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 3

EAST_ASIAN_WIDTH_HALF_WIDTH

added in API level 8
static val 
        EAST_ASIAN_WIDTH_HALF_WIDTH
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 2

EAST_ASIAN_WIDTH_NARROW

added in API level 8
static val 
        EAST_ASIAN_WIDTH_NARROW
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 4

EAST_ASIAN_WIDTH_NEUTRAL

added in API level 8
static val 
        EAST_ASIAN_WIDTH_NEUTRAL
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 0

EAST_ASIAN_WIDTH_WIDE

added in API level 8
static val 
        EAST_ASIAN_WIDTH_WIDE
: Int

Deprecated:

This class was deprecated in API level 21.

Requires API level 8 (Android 2.2, Froyo)

Value: 5

Public constructors

<init>

AndroidCharacter()

Public methods

getDirectionalities

open static fun 
        getDirectionalities
(src: CharArray!, dest: ByteArray!, count: Int): Unit

Deprecated:

This class was deprecated in API level 21.

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.

getEastAsianWidth

added in API level 8
open static fun 
        getEastAsianWidth
(input: Char): Int

Deprecated:

This class was deprecated in API level 21.

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.
Requires API level 8 (Android 2.2, Froyo)

Parameters
input Char: the character to measure
Return
Int: the East Asian Width for input

getEastAsianWidths

added in API level 8
open static fun 
        getEastAsianWidths
(src: CharArray!, start: Int, count: Int, dest: ByteArray!): Unit

Deprecated:

This class was deprecated in API level 21.

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.
Requires API level 8 (Android 2.2, Froyo)

Parameters
src CharArray!: character array of input to measure
start CharArray!: first character in array to measure
count CharArray!: maximum number of characters to measure
dest CharArray!: byte array of results for each character in src

mirror

open static fun 
        mirror
(text: CharArray!, start: Int, count: Int): Boolean

Deprecated:

This class was deprecated in API level 21.

Replace the specified slice of text with the chars' right-to-left mirrors (if any), returning true if any replacements were made.

Parameters
text CharArray!: array of characters to apply mirror operation
start CharArray!: first character in array to mirror
count CharArray!: maximum number of characters to mirror
Return
Boolean: true if replacements were made

getMirror

open static fun 
        getMirror
(ch: Char): Char

Deprecated:

This class was deprecated in API level 21.

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