語言

Character.IsUnicodeIdentifierPart 方法

定義

多載

名稱 Description
IsUnicodeIdentifierPart(Char)

判斷指定的字元是否可作為 Unicode 識別碼以外的其他符號。

IsUnicodeIdentifierPart(Int32)

判斷指定的字元(Unicode 代碼點)是否可以作為 Unicode 識別碼以外的部分。

IsUnicodeIdentifierPart(Char)

判斷指定的字元是否可作為 Unicode 識別碼以外的其他符號。

[Android.Runtime.Register("isUnicodeIdentifierPart", "(C)Z", "")]
public static bool IsUnicodeIdentifierPart(char ch);
[<Android.Runtime.Register("isUnicodeIdentifierPart", "(C)Z", "")>]
static member IsUnicodeIdentifierPart : char -> bool

參數

ch
Char

那個要被考驗的角色。

傳回

true 如果該字元可以是 Unicode 識別碼的一部分; false 否則,

屬性

備註

判斷指定的字元是否可作為 Unicode 識別碼以外的其他符號。

一個字元可以成為 Unicode 識別碼的一部分,當且僅當以下陳述之一為真時:ul<li 是字母 >li<,是連接標點符號(例如 >),<>是數字 '_'li<,是數字字母(例如羅馬數字),>li< 是組合標記 >li<,是非空格標記 >li<>,此字元回傳。<>isIdentifierIgnorabletrue <李> ,這只是個 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 <李> ,這只是個 Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue 角色。 </ul>

此方法符合 Unicode 標準的 UAX31-R1:預設識別碼 要求,並具備以下 UAX31 的規範:

Continue := Start + ID_Continue + ignorable
            Medial := empty
            ignorable := isIdentifierIgnorable(char) returns true for the character

ignorable 是為了向下相容而加入 Continue 的。

<b>註:</b> 此方法無法處理補充字元。 若要支援所有 Unicode 字元,包括補充字元,請使用此 #isUnicodeIdentifierPart(int) 方法。

在 1.1 版本中加入。

的 java.lang.Character.isUnicodeIdentifierPart(char)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

IsUnicodeIdentifierPart(Int32)

判斷指定的字元(Unicode 代碼點)是否可以作為 Unicode 識別碼以外的部分。

[Android.Runtime.Register("isUnicodeIdentifierPart", "(I)Z", "")]
public static bool IsUnicodeIdentifierPart(int codePoint);
[<Android.Runtime.Register("isUnicodeIdentifierPart", "(I)Z", "")>]
static member IsUnicodeIdentifierPart : int -> bool

參數

codePoint
Int32

要測試的字元(Unicode 代碼點)。

傳回

true 如果該字元可以是 Unicode 識別碼的一部分; false 否則,

屬性

備註

判斷指定的字元(Unicode 代碼點)是否可以作為 Unicode 識別碼以外的部分。

一個字元可以成為 Unicode 識別碼的一部分,當且僅當以下陳述之一為真時:ul<li 是字母 >li<,是連接標點符號(例如 >),<>是數字 '_'li<,是數字字母(例如羅馬數字),>li< 是組合標記 >li<,是非空格標記 >li<>,此字元回傳。<>isIdentifierIgnorabletrue <李> ,這只是個 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 <李> ,這只是個 Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue 角色。 </ul>

此方法符合 Unicode 標準的 UAX31-R1:預設識別碼 要求,並具備以下 UAX31 的規範:

Continue := Start + ID_Continue + ignorable
            Medial := empty
            ignorable := isIdentifierIgnorable(int) returns true for the character

ignorable 是為了向下相容而加入 Continue 的。

已在1.5中新增。

的 java.lang.Character.isUnicodeIdentifierPart(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於