2012-07-10 16:21:35 -07:00
|
|
|
#ifndef UTF8_H
|
|
|
|
#define UTF8_H
|
|
|
|
|
2015-02-08 14:26:07 +08:00
|
|
|
typedef unsigned int unicode_t ;
|
2012-07-10 16:21:35 -07:00
|
|
|
|
2019-11-06 11:24:18 +08:00
|
|
|
unsigned utf8_width( unicode_t c) ;
|
2019-08-13 09:14:08 +08:00
|
|
|
unsigned utf8_to_unicode( const char *line, unsigned index, unsigned len,
|
2015-02-08 14:26:07 +08:00
|
|
|
unicode_t *res) ;
|
2019-08-12 21:41:51 +08:00
|
|
|
unsigned utf8_revdelta( unsigned char *buf, unsigned pos) ;
|
2015-02-08 14:26:07 +08:00
|
|
|
unsigned unicode_to_utf8( unicode_t c, char *utf8) ;
|
2012-07-10 16:21:35 -07:00
|
|
|
|
|
|
|
#endif
|