UCharacter.GetPropertyName(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu]</strong> Return the Unicode name for a given property, as given in the Unicode database file PropertyAliases.
[Android.Runtime.Register("getPropertyName", "(II)Ljava/lang/String;", "", ApiSince=24)]
public static string? GetPropertyName (int property, int nameChoice);
[<Android.Runtime.Register("getPropertyName", "(II)Ljava/lang/String;", "", ApiSince=24)>]
static member GetPropertyName : int * int -> string
Parameters
- property
- Int32
UProperty selector.
- nameChoice
- Int32
UProperty.NameChoice selector for which name to get. All properties have a long name. Most have a short name, but some do not. Unicode allows for additional names; if present these will be returned by UProperty.NameChoice.LONG + i, where i=1, 2,...
Returns
a name, or null if Unicode explicitly defines no name ("n/a") for a given property/nameChoice. If a given nameChoice throws an exception, then all larger values of nameChoice will throw an exception. If null is returned for a given nameChoice, then other nameChoice values may return non-null results.
- Attributes
Remarks
<strong>[icu]</strong> Return the Unicode name for a given property, as given in the Unicode database file PropertyAliases.txt. Most properties have more than one name. The nameChoice determines which one is returned.
In addition, this function maps the property UProperty.GENERAL_CATEGORY_MASK to the synthetic names "gcm" / "General_Category_Mask". These names are not in PropertyAliases.txt.
Java documentation for android.icu.lang.UCharacter.getPropertyName(int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.