bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainenutf8only_charset_to_utf8_begin(const char *charset,
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen /* no support for charsets that need translation */
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainenstatic void utf8only_charset_to_utf8_end(struct charset_translation *t)
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainenutf8only_charset_to_utf8_reset(struct charset_translation *t ATTR_UNUSED)
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainenutf8only_charset_to_utf8(struct charset_translation *t,
5b9bacdb850fd0491c32116f212d6e165aec5127Timo Sirainen return charset_utf8_to_utf8(t->normalizer, src, src_size, dest);
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainenconst struct charset_utf8_vfuncs charset_utf8only = {
9c675d5e57363a903e95c6acda3e3971cc7a221fTimo Sirainen .to_utf8_begin = utf8only_charset_to_utf8_begin,