System::Char::ConvertToUtf32 method

Char::ConvertToUtf32(char_t, char_t) method

Converts the specified UTF-16 surrogate pair into UTF-32 code unit.

static int System::Char::ConvertToUtf32(char_t highSurrogate, char_t lowSurrogate)
ParameterTypeDescription
highSurrogatechar_tThe high surrogate of the UTF-16 surrogate pair to convert
lowSurrogatechar_tThe low surrogate of the UTF-16 surrogate pair to convert

ReturnValue

A UTF-32 code unit resulting from conversion

See Also

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

Converts the value of a UTF-16 encoded character or surrogate pair at a specified position in a string into UTF-32 code unit.

static int System::Char::ConvertToUtf32(const String &s, int index)
ParameterTypeDescription
sconst String&A string that contains a character or surrogate pair
indexintThe index position of the character or surrogate pair in specified string

ReturnValue

A UTF-32 code unit resulting from conversion

See Also