Top Description Constructors Methods
com.ibm.icu.lang

public final Class UCharacterCategory

extends Object
implements ECharacterCategory
Class Inheritance
All Implemented Interfaces
com.ibm.icu.lang.UCharacterEnums.ECharacterCategory
Imports
com.ibm.icu.lang.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

Author
Syn Wee Quek
ICU Status
Stable since ICU 2.1.

Constructor Summary

AccessConstructor and Description
private
UCharacterCategory()

Private constructor to prevent initialization

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

category name
toString
(int
to retrieve name
category
)

Gets the name of the argument category

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UCharacterCategoryback to summary
private UCharacterCategory()

Private constructor to prevent initialization

Method Detail

toStringback to summary
public static String toString(int category)

Gets the name of the argument category

Parameters
category:int

to retrieve name

Returns:String

category name

ICU Status
Stable since ICU 2.1.