Character.IsUnicodeIdentifierPart 方法

定义

重载

IsUnicodeIdentifierPart(Int32)

确定指定的字符(Unicode 码位)是否可能是 Unicode 标识符的一部分,而不是第一个字符。

IsUnicodeIdentifierPart(Char)

确定指定字符是否可以是 Unicode 标识符的一部分,而不是第一个字符。

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 标识符的一部分,而不是第一个字符。

如果以下语句之一为 true,则字符可能是 Unicode 标识符的一部分:<ul><li 它是一个字母 <li>>,它是连接标点符号(如'_') <li> 它是<数字 li>,它是数字字母(如罗马数字字符)<li>,它是组合标记 <li>,它是此字符返回true的非间距标记 <li>isIdentifierIgnorable。 <李> 这是一个 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 <李> 这是一个 Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue 角色。 </ul>

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

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

ignorable 为向后兼容性添加了 Continue /&a0>。

在 1.5 中添加。

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

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

适用于

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 标识符的一部分,而不是第一个字符。

如果以下语句之一为 true,则字符可能是 Unicode 标识符的一部分:<ul><li 它是一个字母 <li>>,它是连接标点符号(如'_') <li> 它是<数字 li>,它是数字字母(如罗马数字字符)<li>,它是组合标记 <li>,它是此字符返回true的非间距标记 <li>isIdentifierIgnorable。 <李> 这是一个 Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start 角色。 <李> 这是一个 Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue 角色。 </ul>

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

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

ignorable 为向后兼容性添加了 Continue /&a0>。

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

在 1.1 中添加。

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

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

适用于