Character.IsSurrogatePair(Char, Char) Method

Definition

Determines whether the specified pair of char values is a valid Unicode surrogate pair.

[Android.Runtime.Register("isSurrogatePair", "(CC)Z", "")]
public static bool IsSurrogatePair (char high, char low);
[<Android.Runtime.Register("isSurrogatePair", "(CC)Z", "")>]
static member IsSurrogatePair : char * char -> bool

Parameters

high
Char

the high-surrogate code value to be tested

low
Char

the low-surrogate code value to be tested

Returns

true if the specified high and low-surrogate code values represent a valid surrogate pair; false otherwise.

Attributes

Remarks

Determines whether the specified pair of char values is a valid Unicode surrogate pair.

This method is equivalent to the expression: <blockquote>

{@code
            isHighSurrogate(high) && isLowSurrogate(low)
            }

</blockquote>

Added in 1.5.

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