Sdílet prostřednictvím


Character.IsJavaLetterOrDigit(Char) Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("isJavaLetterOrDigit", "(C)Z", "")]
[System.Obsolete("deprecated")]
public static bool IsJavaLetterOrDigit (char ch);
[<Android.Runtime.Register("isJavaLetterOrDigit", "(C)Z", "")>]
[<System.Obsolete("deprecated")>]
static member IsJavaLetterOrDigit : char -> bool

Parameters

ch
Char

the character to be tested.

Returns

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

Attributes

Remarks

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

A character may be part of a Java identifier if and only if one of the following conditions is true: <ul> <li> it is a letter <li> it is a currency symbol (such as '$') <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 the character. </ul>

Added in 1.0.2.

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

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