共用方式為


UCharacter.GetPropertyValueEnum Method

Definition

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 &lt;= property &lt; UProperty.INT_LIMIT or UProperty.BINARY_START &lt;= property &lt; UProperty.BINARY_LIMIT or UProperty.MASK_START &lt; = property &lt; 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".

Java documentation for android.icu.lang.UCharacter.getPropertyValueEnum(int, java.lang.CharSequence).

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 &lt;= property &lt; UProperty.INT_LIMIT or UProperty.BINARY_START &lt;= property &lt; UProperty.BINARY_LIMIT or UProperty.MASK_START &lt; = property &lt; 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".

Java documentation for android.icu.lang.UCharacter.getPropertyValueEnum(int, java.lang.CharSequence).

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