UCharacterCategory


public final class UCharacterCategory
extends Object implements UCharacterEnums.ECharacterCategory

java.lang.Object
   ↳ android.icu.lang.UCharacterCategory


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(int category)

Gets the name of the argument category

Inherited methods

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 timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

toString

Added in API level 24
public static String toString (int category)

Gets the name of the argument category

Parameters
category int: to retrieve name

Returns
String category name