X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lib%2Futf8.c;h=7ac3e233dda71f27df196557f96ee191f0ca6fff;hp=7c928a677db14b45de37eb06c9416fea022f2ef0;hb=2b9f5916b3aebd8d34903d420ce8160121171534;hpb=c2ac9f23deba034e50cd3babc843d589d0b62d1b diff --git a/lib-lib/utf8.c b/lib-lib/utf8.c index 7c928a6..7ac3e23 100644 --- a/lib-lib/utf8.c +++ b/lib-lib/utf8.c @@ -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);