Added in API level 24

UCharacterCategory


class UCharacterCategory : UCharacterEnums.ECharacterCategory

Enumerated Unicode category types from the UnicodeData.txt file. Used as return results from UCharacter Equivalent to icu's UCharCategory. Refer to Unicode Consortium for more information about UnicodeData.txt.

NOTE: the UCharacterCategory values are not compatible with those returned by java.lang.Character.getType. UCharacterCategory values match the ones used in ICU4C, while java.lang.Character type values, though similar, skip the value 17.

This class is not subclassable

Summary

Inherited constants
Byte COMBINING_SPACING_MARK

Character type Mc

Byte CONNECTOR_PUNCTUATION

Character type Pc

Byte CONTROL

Character type Cc

Byte CURRENCY_SYMBOL

Character type Sc

Byte DASH_PUNCTUATION

Character type Pd

Byte DECIMAL_DIGIT_NUMBER

Character type Nd

Byte ENCLOSING_MARK

Character type Me

Byte END_PUNCTUATION

Character type Pe

Byte FINAL_PUNCTUATION

Character type Pf

Byte FINAL_QUOTE_PUNCTUATION

Character type Pf This name is compatible with java.lang.Character's name for this type.

Byte FORMAT

Character type Cf

Byte GENERAL_OTHER_TYPES

Character type Cn Not Assigned (no characters in [UnicodeData.txt] have this property)

Byte INITIAL_PUNCTUATION

Character type Pi

Byte INITIAL_QUOTE_PUNCTUATION

Character type Pi This name is compatible with java.lang.Character's name for this type.

Byte LETTER_NUMBER

Character type Nl

Byte LINE_SEPARATOR

Character type Zl

Byte LOWERCASE_LETTER

Character type Ll

Byte MATH_SYMBOL

Character type Sm

Byte MODIFIER_LETTER

Character type Lm

Byte MODIFIER_SYMBOL

Character type Sk

Byte NON_SPACING_MARK

Character type Mn

Byte OTHER_LETTER

Character type Lo

Byte OTHER_NUMBER

Character type No

Byte OTHER_PUNCTUATION

Character type Po

Byte OTHER_SYMBOL

Character type So

Byte PARAGRAPH_SEPARATOR

Character type Zp

Byte PRIVATE_USE

Character type Co

Byte SPACE_SEPARATOR

Character type Zs

Byte START_PUNCTUATION

Character type Ps

Byte SURROGATE

Character type Cs

Byte TITLECASE_LETTER

Character type Lt

Byte UNASSIGNED

Unassigned character type

Byte UPPERCASE_LETTER

Character type Lu

Public methods
static String!
toString(category: Int)

Gets the name of the argument category

Public methods

toString

Added in API level 24
static fun toString(category: Int): String!

Gets the name of the argument category

Parameters
category Int: to retrieve name
Return
String! category name