mirror of https://github.com/AxioDL/nod.git
Fix OSUTF8to32
This commit is contained in:
parent
0396cf467b
commit
2288e71605
|
@ -3106,6 +3106,7 @@ const char8_t* OSUTF8To32(const char8_t* utf8, char32_t* utf32) {
|
||||||
len = 0;
|
len = 0;
|
||||||
} else if ((chr & 0xe0) == 0xc0) {
|
} else if ((chr & 0xe0) == 0xc0) {
|
||||||
outChar = chr & 0x1F;
|
outChar = chr & 0x1F;
|
||||||
|
len = 1;
|
||||||
} else if ((chr & 0xf0) == 0xe0) {
|
} else if ((chr & 0xf0) == 0xe0) {
|
||||||
outChar = chr & 0xf;
|
outChar = chr & 0xf;
|
||||||
len = 2;
|
len = 2;
|
||||||
|
|
Loading…
Reference in New Issue