IsHighSurrogate()

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

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

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

Arguments

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

Return Value

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

Char::IsHighSurrogate(const char_t *, int) method

Determines whether the character at the specified index in the specified character buffer is a high surrogate.

static bool System::Char::IsHighSurrogate(const char_t *str, int idx)

Arguments

ParameterTypeDescription
strconst char_t *Pointer to the beginning of the character buffer
idxintA zero-based index in the specified buffer of the character to test

Return Value

True if the character at the specified index is a high surrogate, otherwise - false

Char::IsHighSurrogate(char_t) method

Determines whether the specified character is a high surrogate.

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

Arguments

ParameterTypeDescription
cchar_tThe character to test

Return Value

True if the specified character is a high surrogate, otherwise - false

See Also