Udostępnij za pośrednictwem


Character.IsUnicodeIdentifierPart Method

Definition

Overloads

IsUnicodeIdentifierPart(Int32)

Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.

IsUnicodeIdentifierPart(Char)

Determines if the specified character may be part of a Unicode identifier as other than the first character.

IsUnicodeIdentifierPart(Int32)

Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character may be part of a Unicode identifier; false otherwise.

Attributes

Remarks

Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.

A character may be part of a Unicode identifier if and only if one of the following statements is true: <ul> <li> it is a letter <li> it is a connecting punctuation character (such as '_') <li> it is a digit <li> it is a numeric letter (such as a Roman numeral character) <li> it is a combining mark <li> it is a non-spacing mark <li> isIdentifierIgnorable returns true for this character. <li> it is an Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start character. <li> it is an Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue character. </ul>

This method conforms to UAX31-R1: Default Identifiers requirement of the Unicode Standard, with the following profile of UAX31:

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

ignorable is added to Continue for backward compatibility.

Added in 1.5.

Java documentation for java.lang.Character.isUnicodeIdentifierPart(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

IsUnicodeIdentifierPart(Char)

Determines if the specified character may be part of a Unicode identifier as other than the first character.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character may be part of a Unicode identifier; false otherwise.

Attributes

Remarks

Determines if the specified character may be part of a Unicode identifier as other than the first character.

A character may be part of a Unicode identifier if and only if one of the following statements is true: <ul> <li> it is a letter <li> it is a connecting punctuation character (such as '_') <li> it is a digit <li> it is a numeric letter (such as a Roman numeral character) <li> it is a combining mark <li> it is a non-spacing mark <li> isIdentifierIgnorable returns true for this character. <li> it is an Other_ID_Starthttp://www.unicode.org/reports/tr44/#Other_ID_Start character. <li> it is an Other_ID_Continuehttp://www.unicode.org/reports/tr44/#Other_ID_Continue character. </ul>

This method conforms to UAX31-R1: Default Identifiers requirement of the Unicode Standard, with the following profile of UAX31:

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

ignorable is added to Continue for backward compatibility.

<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #isUnicodeIdentifierPart(int) method.

Added in 1.1.

Java documentation for java.lang.Character.isUnicodeIdentifierPart(char).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to