X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=charset%2Fmp-charconv.h;h=97604983ea4320645ea74b594bf2e3d4963074e6;hb=86b74f27a95b617008575a9088e4c675e9f956d6;hp=6519535a38504bdf86d5ad10adb542119cc39b91;hpb=7af80cdb684884505ceeb2d71414b2b9c24ab02b;p=libucw.git diff --git a/charset/mp-charconv.h b/charset/mp-charconv.h index 6519535a..97604983 100644 --- a/charset/mp-charconv.h +++ b/charset/mp-charconv.h @@ -1,24 +1,26 @@ /* - * Sherlock Library -- Character Conversion with Allocation on a Memory Pool + * Sherlock Library -- Character Conversion with Allocation on a Memory Pool * * (c) 2006 Pavel Charvat + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ -#ifndef _MP_CHARCONV_H -#define _MP_CHARCONV_H +#ifndef _CHARSET_MP_CHARCONV_H +#define _CHARSET_MP_CHARCONV_H -#include "lib/mempool.h" +#include "ucw/mempool.h" #include "charset/charconv.h" -byte * -mp_conv(struct mempool *mp, byte *s, uns cs_in, uns cs_out); +byte *mp_strconv(struct mempool *mp, const byte *s, uns cs_in, uns cs_out); static inline byte * -mp_conv_to_utf8(struct mempool *mp, byte *s, uns cs_in) -{ return mp_conv(mp, s, cs_in, CONV_CHARSET_UTF8); } +mp_strconv_to_utf8(struct mempool *mp, const byte *s, uns cs_in) +{ return mp_strconv(mp, s, cs_in, CONV_CHARSET_UTF8); } static inline byte * -mp_conv_from_utf8(struct mempool *mp, byte *s, uns cs_out) -{ return mp_conv(mp, s, CONV_CHARSET_UTF8, cs_out); } +mp_strconv_from_utf8(struct mempool *mp, const byte *s, uns cs_out) +{ return mp_strconv(mp, s, CONV_CHARSET_UTF8, cs_out); } #endif