Char: ConvertToUtf32

ConvertToUtf32

Converts the value of a UTF-16 encoded surrogate pair into a Unicode code point.



 Public Function ConvertToUtf32(
	  ByVal HighSurrogate As Long,
	  ByVal LowSurrogate As Long ) As Long

Parameters

HighSurrogate
[ByVal] Long. A high surrogate code unit (that is, a code unit ranging from U+D800 through U+DBFF).
LowSurrogate
[ByVal] Long. A low surrogate code unit (that is, a code unit ranging from U+DC00 through U+DFFF).

Return Values

Long -  The 21-bit Unicode code point represented by the highSurrogate and lowSurrogate parameters.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException HighSurrogate is not in the range U+D800 through U+DBFF, or LowSurrogate is not in the range U+DC00 through U+DFFF.

See Also

Project CorLib Overview

Class Char Overview

ConvertToUtf32Str

ConvertFromUtf32