UCharacter.GetPropertyValueEnum 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.
Overloads
GetPropertyValueEnum(Int32, ICharSequence) |
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases. |
GetPropertyValueEnum(Int32, String) |
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases. |
GetPropertyValueEnum(Int32, ICharSequence)
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases.
[Android.Runtime.Register("getPropertyValueEnum", "(ILjava/lang/CharSequence;)I", "", ApiSince=24)]
public static int GetPropertyValueEnum (int property, Java.Lang.ICharSequence? valueAlias);
[<Android.Runtime.Register("getPropertyValueEnum", "(ILjava/lang/CharSequence;)I", "", ApiSince=24)>]
static member GetPropertyValueEnum : int * Java.Lang.ICharSequence -> int
Parameters
- property
- Int32
UProperty selector constant. UProperty.INT_START <= property < UProperty.INT_LIMIT or UProperty.BINARY_START <= property < UProperty.BINARY_LIMIT or UProperty.MASK_START < = property < UProperty.MASK_LIMIT. Only these properties can be enumerated.
- valueAlias
- ICharSequence
the value name to be matched. The name is compared using "loose matching" as described in PropertyValueAliases.txt.
Returns
a value integer. Note: UProperty.GENERAL_CATEGORY values are mask values produced by left-shifting 1 by UCharacter.getType(). This allows grouped categories such as [:L:] to be represented.
- Attributes
Remarks
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases.txt. Short, long, and any other variants are recognized.
Note: Some of the names in PropertyValueAliases.txt will only be recognized with UProperty.GENERAL_CATEGORY_MASK, not UProperty.GENERAL_CATEGORY. These include: "C" / "Other", "L" / "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
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.
Applies to
GetPropertyValueEnum(Int32, String)
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases.
public static int GetPropertyValueEnum (int property, string? valueAlias);
static member GetPropertyValueEnum : int * string -> int
Parameters
- property
- Int32
UProperty selector constant. UProperty.INT_START <= property < UProperty.INT_LIMIT or UProperty.BINARY_START <= property < UProperty.BINARY_LIMIT or UProperty.MASK_START < = property < UProperty.MASK_LIMIT. Only these properties can be enumerated.
- valueAlias
- String
the value name to be matched. The name is compared using "loose matching" as described in PropertyValueAliases.txt.
Returns
a value integer. Note: UProperty.GENERAL_CATEGORY values are mask values produced by left-shifting 1 by UCharacter.getType(). This allows grouped categories such as [:L:] to be represented.
Remarks
<strong>[icu]</strong> Return the property value integer for a given value name, as specified in the Unicode database file PropertyValueAliases.txt. Short, long, and any other variants are recognized.
Note: Some of the names in PropertyValueAliases.txt will only be recognized with UProperty.GENERAL_CATEGORY_MASK, not UProperty.GENERAL_CATEGORY. These include: "C" / "Other", "L" / "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
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.