[]
Convert surrogate pair to UTF32 code.
public static int ToUtf32(char highSurrogate, char lowSurrogate)
Type | Name | Description |
---|---|---|
char | highSurrogate | The high code (Unicode) of surrogate character. |
char | lowSurrogate | The high code (Unicode) of surrogate character. |
Type | Description |
---|---|
int | The UTF32 code. |
Convert text's character (maybe with surrogate pairs) to UTF32 code.
public static int ToUtf32(string text, int idx)
Type | Name | Description |
---|---|---|
string | text | The text string for test. |
int | idx | The index of text. |
Type | Description |
---|---|
int | The UTF32 code. |