X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=charset%2Fmp-charconv.h;h=ab6f65d924f71708bf6723afb296c0ebe45558a6;hb=bced8a6555af8e0c34d8eb852a2b5ffa33f9006a;hp=0c34c46927eed0b636beaa01812a9f8870b70111;hpb=13499b70e642fa92ae3152ed8b17bebd778a8ac0;p=libucw.git diff --git a/charset/mp-charconv.h b/charset/mp-charconv.h index 0c34c469..ab6f65d9 100644 --- a/charset/mp-charconv.h +++ b/charset/mp-charconv.h @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Character Conversion with Allocation on a Memory Pool + * Sherlock Library -- Character Conversion with Allocation on a Memory Pool * * (c) 2006 Pavel Charvat * @@ -13,14 +13,14 @@ #include "lib/mempool.h" #include "charset/charconv.h" -byte *mp_strconv(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_strconv_to_utf8(struct mempool *mp, byte *s, uns cs_in) +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_strconv_from_utf8(struct mempool *mp, byte *s, uns 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