Char: ConvertToUtf32Str

ConvertToUtf32Str

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



 Public Function ConvertToUtf32Str(
	  ByRef s As String,
	  ByVal Index As Long ) As Long

Parameters

s
[ByRef] String. A string that contains a character or surrogate pair.
Index
[ByVal] Long. The index position of the character or surrogate pair in s.

Return Values

Long -  The 21-bit Unicode code point represented by the character or surrogate pair at the position in the s parameter specified by the index parameter.

Exceptions

ExceptionCondition
ArgumentOutOfRangeException index is not a position within s.
ArgumentException The specified index position contains a surrogate pair, and either the first character in the pair is not a valid high surrogate or the second character in the pair is not a valid low surrogate.

See Also

Project CorLib Overview

Class Char Overview

ConvertToUtf32

ConvertFromUtf32