Sdílet prostřednictvím


UCharacter.CharCount(Int32) Method

Definition

Same as Character#charCount.

[Android.Runtime.Register("charCount", "(I)I", "", ApiSince=24)]
public static int CharCount (int cp);
[<Android.Runtime.Register("charCount", "(I)I", "", ApiSince=24)>]
static member CharCount : int -> int

Parameters

cp
Int32

the code point to check

Returns

the number of chars needed to represent the code point

Attributes

Remarks

Same as Character#charCount. Returns the number of chars needed to represent the code point (1 or 2). This does not check the code point for validity.

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