Udostępnij za pośrednictwem


Character.ToCodePoint(Char, Char) Method

Definition

Converts the specified surrogate pair to its supplementary code point value.

[Android.Runtime.Register("toCodePoint", "(CC)I", "")]
public static int ToCodePoint (char high, char low);
[<Android.Runtime.Register("toCodePoint", "(CC)I", "")>]
static member ToCodePoint : char * char -> int

Parameters

high
Char

the high-surrogate code unit

low
Char

the low-surrogate code unit

Returns

the supplementary code point composed from the specified surrogate pair.

Attributes

Remarks

Converts the specified surrogate pair to its supplementary code point value. This method does not validate the specified surrogate pair. The caller must validate it using #isSurrogatePair(char, char) isSurrogatePair if necessary.

Added in 1.5.

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

See also

  • <xref:Java.Lang.Character.IsSurrogatePair(System.Char%2c+System.Char)>