Partager via


UCharacter.GetType(Int32) Method

Definition

Returns a value indicating a code point's Unicode category.

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

Parameters

ch
Int32

code point whose type is to be determined

Returns

category which is a value of UCharacterCategory

Attributes

Remarks

Returns a value indicating a code point's Unicode category. Up-to-date Unicode implementation of java.lang.Character.getType() except for the above mentioned code points that had their category changed.<br> Return results are constants from the interface UCharacterCategory<br> <em>NOTE:</em> the UCharacterCategory values are <em>not</em> compatible with those returned by java.lang.Character.getType. UCharacterCategory values match the ones used in ICU4C, while java.lang.Character type values, though similar, skip the value 17.

Java documentation for android.icu.lang.UCharacter.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