charset-utf8.h revision 6ef7e31619edfaa17ed044b45861d106a86191ef
#ifndef __CHARSET_UTF8_H
#define __CHARSET_UTF8_H
enum charset_result {
CHARSET_RET_OK = 1,
};
/* Begin translation to UTF-8. */
bool *unknown_charset);
void charset_to_utf8_end(struct charset_translation *t);
void charset_to_utf8_reset(struct charset_translation *t);
/* Translate src to UTF-8. If src_size is updated to contain the number of
characters actually translated from src. */
enum charset_result
charset_to_ucase_utf8(struct charset_translation *t,
/* Simple wrappers for above functions. If utf8_size is non-NULL, it's set
to same as strlen(returned data). */
const char *
const char *
#endif