s3:lib/charcnv: add next_codepoint_ext() that accepts input charset.
authorMichael Adam <obnox@samba.org>
Fri, 29 Oct 2010 20:06:05 +0000 (22:06 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 3 Nov 2010 22:45:19 +0000 (22:45 +0000)
commitd41d05ec7b5650759b8b6b388d34516daf0eed83
treec021d8bb12e4712437974350a51d4a48393b6043
parentf14d84e2f233dd337bbd9bb0166f8bf0cc8f7a82
s3:lib/charcnv: 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.
source3/include/proto.h
source3/lib/charcnv.c