mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-17 22:54:07 +00:00
add utf32 function
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@240 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -25,7 +25,7 @@ static int utf8_later(unsigned char c) {
|
||||
return 0x80 <= c && c < 0xc0;
|
||||
}
|
||||
|
||||
int MwUTF8ToUTF32(const char* input, int32_t* output) {
|
||||
int MwUTF8ToUTF32(const char* input, int* output) {
|
||||
const unsigned char* inbuf = (const unsigned char*)input;
|
||||
int b = utf8_count(inbuf[0]);
|
||||
if(b == 0) return 0;
|
||||
|
||||
Reference in New Issue
Block a user