Sdílet prostřednictvím


Character.IsLetter Method

Definition

Overloads

IsLetter(Char)

Determines if the specified character is a letter.

IsLetter(Int32)

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

IsLetter(Char)

Determines if the specified character is a letter.

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

Parameters

ch
Char

the character to be tested.

Returns

true if the character is a letter; false otherwise.

Attributes

Remarks

Determines if the specified character is a letter.

A character is considered to be a letter if its general category type, provided by Character.getType(ch), is any of the following: <ul> <li> UPPERCASE_LETTER<li> LOWERCASE_LETTER<li> TITLECASE_LETTER<li> MODIFIER_LETTER<li> OTHER_LETTER</ul>

Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase.

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

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

IsLetter(Int32)

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

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

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

true if the character is a letter; false otherwise.

Attributes

Remarks

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

A character is considered to be a letter if its general category type, provided by Character#getType(int) getType(codePoint), is any of the following: <ul> <li> UPPERCASE_LETTER<li> LOWERCASE_LETTER<li> TITLECASE_LETTER<li> MODIFIER_LETTER<li> OTHER_LETTER</ul>

Not all letters have case. Many characters are letters but are neither uppercase nor lowercase nor titlecase.

Added in 1.5.

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