Top Description Fields Constructors Methods
com.ibm.icu.lang

public final Class CharacterProperties

extends Object
Class Inheritance
Imports
com.ibm.icu.impl.CharacterPropertiesImpl, .EmojiProps, com.ibm.icu.text.UnicodeSet, com.ibm.icu.util.CodePointMap, .CodePointTrie, .MutableCodePointTrie

Sets and maps for Unicode properties. The methods here return an object per property: A set for each ICU-supported binary property with all code points for which the property is true. A map for each ICU-supported enumerated/catalog/int-valued property which maps all Unicode code points to their values for that property.

For details see the method descriptions. For lookup of property values by code point see class UCharacter.

ICU Status
Stable since ICU 63.

Field Summary

Modifier and TypeField and Description
private static final CodePointMap[]
private static final UnicodeSet[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static final UnicodeSet

Returns:

the property as a set
getBinaryPropertySet
(int property)

Returns a frozen UnicodeSet for a binary property.

public static final CodePointMap

Returns:

the property as a map
getIntPropertyMap
(int property)

Returns an immutable CodePointMap for an enumerated/catalog/int-valued property.

private static CodePointMap
makeMap(int property)

private static UnicodeSet
makeSet(int property)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapsback to summary
private static final CodePointMap[] maps
setsback to summary
private static final UnicodeSet[] sets

Constructor Detail

CharacterPropertiesback to summary
private CharacterProperties()

Method Detail

getBinaryPropertySetback to summary
public static final UnicodeSet getBinaryPropertySet(int property)

Returns a frozen UnicodeSet for a binary property. Throws an exception if the property number is not one for a binary property.

The returned set contains all code points for which the property is true.

Parameters
property:int

UProperty#BINARY_START..UProperty#BINARY_LIMIT-1

Returns:UnicodeSet

the property as a set

ICU Status
Stable since ICU 63.
See Also
UProperty, UCharacter#hasBinaryProperty
getIntPropertyMapback to summary
public static final CodePointMap getIntPropertyMap(int property)

Returns an immutable CodePointMap for an enumerated/catalog/int-valued property. Throws an exception if the property number is not one for an "int property".

The returned object maps all Unicode code points to their values for that property. For documentation of the integer values see UCharacter#getIntPropertyValue(int, int).

The actual type of the returned object differs between properties and may change over time.

Parameters
property:int

UProperty#INT_START..UProperty#INT_LIMIT-1

Returns:CodePointMap

the property as a map

ICU Status
Stable since ICU 63.
See Also
UProperty, UCharacter#getIntPropertyValue
makeMapback to summary
private static CodePointMap makeMap(int property)
makeSetback to summary
private static UnicodeSet makeSet(int property)