Udostępnij za pośrednictwem


Character.GetType Method

Definition

Overloads

GetType(Char)

Returns a value indicating a character's general category.

GetType(Int32)

Returns a value indicating a character's general category.

GetType(Char)

Returns a value indicating a character's general category.

[Android.Runtime.Register("getType", "(C)I", "")]
public static int GetType (char ch);
[<Android.Runtime.Register("getType", "(C)I", "")>]
static member GetType : char -> int

Parameters

ch
Char

the character to be tested.

Returns

a value of type int representing the character's general category.

Attributes

Remarks

Returns a value indicating a character's general category.

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

Added in 1.1.

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

GetType(Int32)

Returns a value indicating a character's general category.

[Android.Runtime.Register("getType", "(I)I", "")]
public static int GetType (int codePoint);
[<Android.Runtime.Register("getType", "(I)I", "")>]
static member GetType : int -> int

Parameters

codePoint
Int32

the character (Unicode code point) to be tested.

Returns

a value of type int representing the character's general category.

Attributes

Remarks

Returns a value indicating a character's general category.

Added in 1.5.

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