語言

UCharacter.GetPropertyEnum 方法

定義

多載

名稱 Description
GetPropertyEnum(ICharSequence)

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,依 Unicode 資料庫檔案 PropertyAliases 中指定的。

GetPropertyEnum(String)

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,依 Unicode 資料庫檔案 PropertyAliases 中指定的。

GetPropertyEnum(ICharSequence)

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,依 Unicode 資料庫檔案 PropertyAliases 中指定的。

[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的枚舉。

屬性

備註

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,該名稱依 Unicode 資料庫檔案 PropertyAliases.txt。 短、長及其他變體皆可識別。

此外,此函式會將合成名稱「gcm」/「General_Category_Mask」映射到屬性 UProperty.GENERAL_CATEGORY_MASK。 這些名字不在 PropertyAliases.txt。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetPropertyEnum(String)

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,依 Unicode 資料庫檔案 PropertyAliases 中指定的。

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

參數

propertyAlias
String

待匹配的房產名稱。 名稱是透過「鬆散匹配」進行比較,詳見 PropertyAliases.txt。

傳回

一個UProperty的枚舉。

備註

<strong>[icu]</strong> 回傳給定屬性名稱的 UProperty 選擇器,該名稱依 Unicode 資料庫檔案 PropertyAliases.txt。 短、長及其他變體皆可識別。

此外,此函式會將合成名稱「gcm」/「General_Category_Mask」映射到屬性 UProperty.GENERAL_CATEGORY_MASK。 這些名字不在 PropertyAliases.txt。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於