Share via


Character.IsJavaLetter(Char) Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("isJavaLetter", "(C)Z", "")]
[System.Obsolete("deprecated")]
public static bool IsJavaLetter (char ch);
[<Android.Runtime.Register("isJavaLetter", "(C)Z", "")>]
[<System.Obsolete("deprecated")>]
static member IsJavaLetter : 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>

Added in 1.0.2.

This member is deprecated. Replaced by isJavaIdentifierStart(char).

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