ConvertToUtf32()

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)

Arguments

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

Return Value

A UTF-32 code unit resulting from conversion

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)

Arguments

ParameterTypeDescription
sconst String&A string that contains a character or surrogate pair
indexintThe index position of the character or surrogate pair in specified string

Return Value

A UTF-32 code unit resulting from conversion

See Also