IsSurrogate()

Char::IsSurrogate(char_t) method

Determines if the specified character is a UTF-16 surrogate code unit.

static bool System::Char::IsSurrogate(char_t c)

Arguments

ParameterTypeDescription
cchar_tA character

Return Value

True if the specified character is a UTF-16 surrogate code unit, otherwise - false

Char::IsSurrogate(const String&, int) method

Determines whether the character at the specified index in the specified string is UTF-16 surrogate code unit.

static bool System::Char::IsSurrogate(const String &s, int index)

Arguments

ParameterTypeDescription
sconst String&A string
indexintThe index of the character in the specified string

Return Value

True if the character at the specified index is a UTF-16 surrogate code unit, otherwise - false

See Also