/* * utf8.h * * Copyright (c) Chris Putnam 2004-2018 * * Source code released under the GPL version 2 * */ #ifndef UTF8_H #define UTF8_H #include int utf8_encode( unsigned int value, unsigned char out[6] ); void utf8_encode_str( unsigned int value, char outstr[7] ); unsigned int utf8_decode( char *s, unsigned int *pi ); void utf8_writebom( FILE *outptr ); int utf8_is_bom( char *p ); int utf8_is_emdash( char *p ); int utf8_is_endash( char *p ); #endif