charset-utf8.c revision d9076f5939edf5d20a261494b1a861dcbb0d32e2
/* Copyright (c) 2002-2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "str.h"
#include "unichar.h"
#include "charset-utf8.h"
#include <ctype.h>
bool charset_is_utf8(const char *charset)
{
}
enum charset_result *result_r)
{
struct charset_translation *t;
return -1;
charset_to_utf8_end(&t);
return 0;
}
#ifndef HAVE_ICONV
struct charset_translation {
};
struct charset_translation **t_r)
{
struct charset_translation *t;
if (!charset_is_utf8(charset)) {
/* no support for charsets that need translation */
return -1;
}
t->normalizer = normalizer;
*t_r = t;
return 0;
}
{
struct charset_translation *t = *_t;
i_free(t);
}
{
}
enum charset_result
charset_to_utf8(struct charset_translation *t,
{
if (t->normalizer != NULL) {
return CHARSET_RET_INVALID_INPUT;
return CHARSET_RET_INVALID_INPUT;
} else {
}
return CHARSET_RET_OK;
}
#endif