From 2a8f0bbe28a9af7f0ea606b579cf627bff6b90b6 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Thu, 9 Oct 2025 10:47:36 +0000 Subject: [PATCH] add utf32 function git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@240 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Mw/Unicode.h | 2 +- src/unicode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Mw/Unicode.h b/include/Mw/Unicode.h index 62794f3..3ac23a4 100644 --- a/include/Mw/Unicode.h +++ b/include/Mw/Unicode.h @@ -19,7 +19,7 @@ extern "C" { * %brief output Output * %return Bytes this multibyte takes */ -MWDECL int MwUTF8ToUTF32(const char* input, int32_t* output); +MWDECL int MwUTF8ToUTF32(const char* input, int* output); #ifdef __cplusplus } diff --git a/src/unicode.c b/src/unicode.c index 940a941..e557dd1 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -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;