Sdílet prostřednictvím


UCharacter.ToChars Method

Definition

Overloads

ToChars(Int32)

Same as Character#toChars(int).

ToChars(Int32, Char[], Int32)

Same as Character#toChars(int, char[], int).

ToChars(Int32)

Same as Character#toChars(int).

[Android.Runtime.Register("toChars", "(I)[C", "", ApiSince=24)]
public static char[]? ToChars (int cp);
[<Android.Runtime.Register("toChars", "(I)[C", "", ApiSince=24)>]
static member ToChars : int -> char[]

Parameters

cp
Int32

the code point to convert

Returns

Char[]

an array containing the char(s) representing the code point

Attributes

Remarks

Same as Character#toChars(int). Returns a char array representing the code point.

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

ToChars(Int32, Char[], Int32)

Same as Character#toChars(int, char[], int).

[Android.Runtime.Register("toChars", "(I[CI)I", "", ApiSince=24)]
public static int ToChars (int cp, char[]? dst, int dstIndex);
[<Android.Runtime.Register("toChars", "(I[CI)I", "", ApiSince=24)>]
static member ToChars : int * char[] * int -> int

Parameters

cp
Int32

the code point to convert

dst
Char[]

the destination array into which to put the char(s) representing the code point

dstIndex
Int32

the index at which to put the first (or only) char

Returns

the count of the number of chars written (1 or 2)

Attributes

Remarks

Same as Character#toChars(int, char[], int). Writes the chars representing the code point into the destination at the given index.

Java documentation for android.icu.lang.UCharacter.toChars(int, char[], 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