Sdílet prostřednictvím


Character.IsLetterOrDigit Method

Definition

Overloads

IsLetterOrDigit(Char)

Determines if the specified character is a letter or digit.

IsLetterOrDigit(Int32)

Determines if the specified character (Unicode code point) is a letter or digit.

IsLetterOrDigit(Char)

Determines if the specified character is a letter or digit.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character is a letter or digit; false otherwise.

Attributes

Remarks

Determines if the specified character is a letter or digit.

A character is considered to be a letter or digit if either Character.isLetter(char ch) or Character.isDigit(char ch) returns true for the character.

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

Added in 1.0.2.

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

IsLetterOrDigit(Int32)

Determines if the specified character (Unicode code point) is a letter or digit.

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character is a letter or digit; false otherwise.

Attributes

Remarks

Determines if the specified character (Unicode code point) is a letter or digit.

A character is considered to be a letter or digit if either #isLetter(int) isLetter(codePoint) or #isDigit(int) isDigit(codePoint) returns true for the character.

Added in 1.5.

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