語言

Character.IsUnicodeIdentifierStart 方法

定義

多載

名稱 Description
IsUnicodeIdentifierStart(Char)

判斷指定的字元是否允許作為 Unicode 識別碼的第一個字元。

IsUnicodeIdentifierStart(Int32)

判斷指定的字元(Unicode 代碼點)是否允許作為 Unicode 識別碼的第一個字元。

IsUnicodeIdentifierStart(Char)

判斷指定的字元是否允許作為 Unicode 識別碼的第一個字元。

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

參數

ch
Char

那個要被考驗的角色。

傳回

true 如果該字元可以以 Unicode 識別碼開頭; false 否則。

屬性

備註

判斷指定的字元是否允許作為 Unicode 識別碼的第一個字元。

字元可啟動 Unicode 識別碼,當且僅當以下條件之一成立:<ul><li>#isLetter(char) isLetter(ch) 返回 true<>#getType(char) getType(ch)LETTER_NUMBER li 返回 。 <李> ,它是一個 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 </ul>

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

Start := ID_Start + 'VERTICAL TILDE' (U+2E2F)

'VERTICAL TILDE'為向後相容而加入。Start

注意: 此方法無法處理補充字元。 若要支援所有 Unicode 字元,包括補充字元,請使用此 #isUnicodeIdentifierStart(int) 方法。

在 1.1 版本中加入。

Java 文件 java.lang.Character.isUnicodeIdentifierStart(char)。

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

適用於

IsUnicodeIdentifierStart(Int32)

判斷指定的字元(Unicode 代碼點)是否允許作為 Unicode 識別碼的第一個字元。

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

參數

codePoint
Int32

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

傳回

true 如果該字元可以以 Unicode 識別碼開頭; false 否則。

屬性

備註

判斷指定的字元(Unicode 代碼點)是否允許作為 Unicode 識別碼的第一個字元。

字元可啟動 Unicode 識別碼,當且僅當以下條件之一成立:<ul><li>#isLetter(int) isLetter(codePoint) 返回 true<>#getType(int) getType(codePoint)LETTER_NUMBER li 返回 。 <李> ,它是一個 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 </ul>

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

Start := ID_Start + 'VERTICAL TILDE' (U+2E2F)

'VERTICAL TILDE'為向後相容而加入。Start

已在1.5中新增。

Java 文件 java.lang.Character.isUnicodeIdentifierStart(int)。

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

適用於