diff options
-rw-r--r-- | utf.c | 6 | ||||
-rw-r--r-- | utf.h | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ #include "utf.h" size_t -utf8enc(uint_least32_t c, char *s) +utf8enc(unsigned char *s, uint_least32_t c) { if (c < 0x80) { s[0] = c; @@ -31,7 +31,7 @@ utf8enc(uint_least32_t c, char *s) } size_t -utf8dec(const char *s, size_t n, uint_least32_t *c) +utf8dec(uint_least32_t *c, const char *s, size_t n) { size_t i, l; unsigned char b; @@ -67,7 +67,7 @@ utf8dec(const char *s, size_t n, uint_least32_t *c) } size_t -utf16enc(uint_least32_t c, uint_least16_t *s) +utf16enc(uint_least16_t *s, uint_least32_t c) { if (c < 0xd800 || c - 0xe000 < 0x2000) { s[0] = c; @@ -1,3 +1,3 @@ -size_t utf8enc(uint_least32_t, char *); -size_t utf8dec(const char *, size_t, uint_least32_t *); -size_t utf16enc(uint_least32_t, uint_least16_t *); +size_t utf8enc(unsigned char *, uint_least32_t); +size_t utf8dec(uint_least32_t *, const char *, size_t); +size_t utf16enc(uint_least16_t *, uint_least32_t); |