diff --git a/cucul/charset.c b/cucul/charset.c index 4c88691..f8b43d6 100644 --- a/cucul/charset.c +++ b/cucul/charset.c @@ -280,46 +280,3 @@ int cucul_utf32_is_fullwidth(unsigned long int ch) return 0; } -/* - * XXX: The following functions are local. - */ - -unsigned int _cucul_strlen_utf8(char const *s) -{ - int len = 0; - char const *parser = s; - - while(*parser) - { - int i; - int bytes = 1 + trailing[(int)(unsigned char)*parser]; - - for(i = 1; i < bytes; i++) - if(!parser[i]) - return len; - parser += bytes; - len++; - } - - return len; -} - -char const *_cucul_skip_utf8(char const *s, unsigned int x) -{ - char const *parser = s; - - while(x) - { - int i; - int bytes = 1 + trailing[(int)(unsigned char)*parser]; - - for(i = 1; i < bytes; i++) - if(!parser[i]) - return parser; - parser += bytes; - x--; - } - - return parser; -} - diff --git a/cucul/cucul_internals.h b/cucul/cucul_internals.h index 7e675be..7f5b548 100644 --- a/cucul/cucul_internals.h +++ b/cucul/cucul_internals.h @@ -48,10 +48,6 @@ struct cucul_buffer /* Canvas functions */ extern int _cucul_set_canvas_size(cucul_canvas_t *, unsigned int, unsigned int); -/* Charset functions */ -extern unsigned int _cucul_strlen_utf8(char const *); -extern char const *_cucul_skip_utf8(char const *, unsigned int); - /* Colour functions */ extern uint16_t _cucul_attr_to_rgb12fg(uint32_t); extern uint16_t _cucul_attr_to_rgb12bg(uint32_t);