#ifndef CHARSET_UTF8_H
#define CHARSET_UTF8_H
#include "unichar.h"
/* Max number of bytes that iconv can require for a single character.
UTF-8 takes max 6 bytes per character. Not sure about others, but I'd think
10 is more than enough for everyone.. */
struct charset_translation;
enum charset_result {
};
/* Begin translation to UTF-8. Returns -1 if charset is unknown. */
struct charset_translation **t_r)
ATTR_NULL(2);
/* Translate UTF-8 to UTF-8 while validating the input. */
struct charset_translation *
void charset_to_utf8_end(struct charset_translation **t);
void charset_to_utf8_reset(struct charset_translation *t);
/* Returns TRUE if charset is UTF-8 or ASCII */
/* Translate src to UTF-8. src_size is updated to contain the number of
characters actually translated from src. The src_size should never shrink
more than CHARSET_MAX_PENDING_BUF_SIZE bytes.
If src contains invalid input, UNICODE_REPLACEMENT_CHAR is placed in such
positions and the invalid input is skipped over. Return value is also
CHARSET_RET_INCOMPLETE_INPUT in that case. */
enum charset_result
charset_to_utf8(struct charset_translation *t,
/* Translate a single string to UTF8. */
/* INTERNAL: */
enum charset_result
#endif