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