The little Christmas candy bar: allow utf-8 chars in Tochars \o/
[apps/madmutt.git] / lib-lib / utf8.c
index 7c928a6..7ac3e23 100644 (file)
@@ -42,7 +42,7 @@ static const uint8_t __utf8_mark[7] = {
     0x00, 0x00, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc
 };
 
-static inline int ustrlen(const char *s)
+int m_ustrlen(const char *s)
 {
     int len = 0;
 
@@ -53,7 +53,7 @@ static inline int ustrlen(const char *s)
     return len;
 }
 
-static inline int ustrgetc(const char *s, const char **outp)
+int m_ustrgetc(const char *s, const char **outp)
 {
     uint32_t ret = 0;
     int trail = __utf8_trail[(unsigned char)*s];
@@ -72,7 +72,7 @@ static inline int ustrgetc(const char *s, const char **outp)
     return ret - __utf8_offs[trail];
 }
 
-static inline int ustrputc(char *dst, ssize_t n, int c)
+int m_ustrputc(char *dst, ssize_t n, int c)
 {
     int bytes = 1 + (c >= 0x80) + (c >= 0x800) + (c >= 0x10000);