On Mon, Mar 04, 2002 at 03:37:55PM -0500, Michael B Allen wrote:
> int enc_mbscpy(const char *src, char **dst, const char *tocode);
> int enc_mbsncpy(const char *src, size_t sn, char **dst, size_t dn,
>                                     int wn, const char *tocode);
> 
> char *dec_mbscpy_new(char **src, const char *fromcode);
> char *dec_mbsncpy_new(char **src, size_t sn, size_t dn,
>                                     int wn, const char *fromcode);
> size_t dec_mbscpy(char **src, char *dst, const char *fromcode);
> size_t dec_mbsncpy(char **src, size_t sn, char *dst, size_t dn,
>                                     int wn, const char *fromcode);
> 
> for encodeing and decoding strings. The two main differences here are
> that we're converting to/from "many to one" where the "one" is the locale
> dependent multi-byte string encoding (e.g. UTF-8) and that in addition
> to contraining the operation by sn and dn bytes you can also contrain
> the operation by the number of characters wn. Mbsncpy_new is like a
> mbsndup and if dst is NULL for the dec_ functions it still works but

Why not call it dec_mbs[n]dup?  (I'd lean toward putting _dec/_enc at the
end, too, but that's just my habits.)

-- 
Glenn Maynard
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to