lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.
commit4a4a4c2c1a242d5c067a40e2f38ee4a5993b29bf
authorMichael Adam <obnox@samba.org>
Sun, 31 Oct 2010 01:18:46 +0000 (31 02:18 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 4 Nov 2010 03:09:05 +0000 (4 04:09 +0100)
treeb67408c7afa69e67417b618bf845104899080f02
parent00a163072e6162b0d50139a94356ef2f3256307d
lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.

next_codepoint() takes as string in CH_UNIX encoding and returns the
unicode codepoint of the next (possibly multibyte) character of the
input string.

The new next_codepoint_ext() function adds the encoding of the input
string as a parameter. next_codepoint() now only calls next_codepoint_ext()
with CH_UNIX als src_charset argument.
lib/util/charset/charset.h
lib/util/charset/util_unistr.c