语言

UCharacter.GetPropertyEnum 方法

定义

重载

名称 说明
GetPropertyEnum(ICharSequence)

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。

GetPropertyEnum(String)

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。

GetPropertyEnum(ICharSequence)

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。

[Android.Runtime.Register("getPropertyEnum", "(Ljava/lang/CharSequence;)I", "", ApiSince=24)]
public static int GetPropertyEnum(Java.Lang.ICharSequence? propertyAlias);
[<Android.Runtime.Register("getPropertyEnum", "(Ljava/lang/CharSequence;)I", "", ApiSince=24)>]
static member GetPropertyEnum : Java.Lang.ICharSequence -> int

参数

propertyAlias
ICharSequence

要匹配的属性名称。 使用 PropertyAliases.txt中所述的“松散匹配”来比较名称。

返回

UProperty 枚举。

特性

注解

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。 可以识别短、长和任何其他变体。

此外,此函数将合成名称“gcm”/“General_Category_Mask”映射到属性UProperty.GENERAL_CATEGORY_MASK。 这些名称不在 PropertyAliases.txt中。

Java文档android.icu.lang.UCharacter.getPropertyEnum(java.lang.CharSequence)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

GetPropertyEnum(String)

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。

public static int GetPropertyEnum(string? propertyAlias);
static member GetPropertyEnum : string -> int

参数

propertyAlias
String

要匹配的属性名称。 使用 PropertyAliases.txt中所述的“松散匹配”来比较名称。

返回

UProperty 枚举。

注解

[icu] 返回给定属性名称的 UProperty 选择器,如 Unicode 数据库文件 PropertyAliases.txt中指定的。 可以识别短、长和任何其他变体。

此外,此函数将合成名称“gcm”/“General_Category_Mask”映射到属性UProperty.GENERAL_CATEGORY_MASK。 这些名称不在 PropertyAliases.txt中。

Java文档android.icu.lang.UCharacter.getPropertyEnum(java.lang.CharSequence)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于