2 * Sherlock Library -- Character Conversion with Allocation on a Memory Pool
4 * (c) 2006 Pavel Charvat <pchar@ucw.cz>
7 #ifndef _CHARSET_MP_CHARCONV_H
8 #define _CHARSET_MP_CHARCONV_H
10 #include "lib/mempool.h"
11 #include "charset/charconv.h"
13 byte *mp_conv(struct mempool *mp, byte *s, uns cs_in, uns cs_out);
16 mp_conv_to_utf8(struct mempool *mp, byte *s, uns cs_in)
17 { return mp_conv(mp, s, cs_in, CONV_CHARSET_UTF8); }
20 mp_conv_from_utf8(struct mempool *mp, byte *s, uns cs_out)
21 { return mp_conv(mp, s, CONV_CHARSET_UTF8, cs_out); }