System::Char::IsSurrogate method

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)
ParameterTypeDescription
cchar_tA character

ReturnValue

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

See Also

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)
ParameterTypeDescription
sconst String&A string
indexintThe index of the character in the specified string

ReturnValue

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

See Also