lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.
commit72f83368653832a7630e9fbda02e516e1aa7faff
authorMichael Adam <obnox@samba.org>
Sun, 31 Oct 2010 01:18:46 +0000 (31 02:18 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 3 Nov 2010 22:45:20 +0000 (3 22:45 +0000)
treee639300fcbf04fede9b138dc37c633c2a9f5fc66
parent7a2b03964cdd12733e7ae812d463351b968d16ac
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