Most visited

Recently visited

Added in API level 24

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

From interface android.icu.lang.UCharacterEnums.ECharacterCategory

Public methods

static String toString(int category)

Gets the name of the argument category

Inherited methods

From class java.lang.Object

Public methods

toString

Added in API level 24
String toString (int category)

Gets the name of the argument category

Parameters
category int: to retrieve name
Returns
String category name

Hooray!