Sdílet prostřednictvím


Character.IsJavaIdentifierStart Method

Definition

Overloads

IsJavaIdentifierStart(Int32)

Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.

IsJavaIdentifierStart(Char)

Determines if the specified character is permissible as the first character in a Java identifier.

IsJavaIdentifierStart(Int32)

Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character may start a Java identifier; false otherwise.

Attributes

Remarks

Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.

A character may start a Java identifier if and only if one of the following conditions is true: <ul> <li> #isLetter(int) isLetter(codePoint) returns true<li> #getType(int) getType(codePoint) returns LETTER_NUMBER<li> the referenced character is a currency symbol (such as '$') <li> the referenced character is a connecting punctuation character (such as '_'). </ul>

Added in 1.5.

Java documentation for java.lang.Character.isJavaIdentifierStart(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

IsJavaIdentifierStart(Char)

Determines if the specified character is permissible as the first character in a Java identifier.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character may start a Java identifier; false otherwise.

Attributes

Remarks

Determines if the specified character is permissible as the first character in a Java identifier.

A character may start a Java identifier if and only if one of the following conditions is true: <ul> <li> #isLetter(char) isLetter(ch) returns true<li> #getType(char) getType(ch) returns LETTER_NUMBER<li> ch is a currency symbol (such as '$') <li> ch is a connecting punctuation character (such as '_'). </ul>

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

Added in 1.1.

Java documentation for java.lang.Character.isJavaIdentifierStart(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