Character.IsUnicodeIdentifierStart 方法

定义

重载

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 标识符中的第一个字符。

如果以下条件之一为 true,则字符可以启动 Unicode 标识符:<ul><li#isLetter(char) isLetter(ch)> 返回 true<li>#getType(char) getType(ch) 返回。LETTER_NUMBER <李> 这是一个 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 </ul>

此方法符合 UAX31-R1:Unicode 标准的默认标识符 要求,具有以下 UAX31 配置文件:

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

'VERTICAL TILDE' 为向后兼容性添加了 Start /&a0>。

<b>注意:</b> 此方法无法处理补充字符。 若要支持所有 Unicode 字符(包括补充字符),请使用此方法 #isUnicodeIdentifierStart(int)

在 1.1 中添加。

适用于 . 的 java.lang.Character.isUnicodeIdentifierStart(char)Java 文档

本页的某些部分是根据 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 标识符中的第一个字符。

如果以下条件之一为 true,则字符可以启动 Unicode 标识符:<ul><li#isLetter(int) isLetter(codePoint)> 返回 true<li>#getType(int) getType(codePoint) 返回。LETTER_NUMBER <李> 这是一个 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 </ul>

此方法符合 UAX31-R1:Unicode 标准的默认标识符 要求,具有以下 UAX31 配置文件:

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

'VERTICAL TILDE' 为向后兼容性添加了 Start /&a0>。

在 1.5 中添加。

适用于 . 的 java.lang.Character.isUnicodeIdentifierStart(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于