[]
        
(Showing Draft Content)

C1.Win.Util.CodeRange.ToUtf32

ToUtf32 Method

ToUtf32(char, char)

Convert surrogate pair to UTF32 code.

Declaration
public static int ToUtf32(char highSurrogate, char lowSurrogate)
Parameters
Type Name Description
char highSurrogate

The high code (Unicode) of surrogate character.

char lowSurrogate

The high code (Unicode) of surrogate character.

Returns
Type Description
int

The UTF32 code.

ToUtf32(string, int)

Convert text's character (maybe with surrogate pairs) to UTF32 code.

Declaration
public static int ToUtf32(string text, int idx)
Parameters
Type Name Description
string text

The text string for test.

int idx

The index of text.

Returns
Type Description
int

The UTF32 code.