lib/util/charset/util_unistr: add strlen_m_ext that takes input and output charset
commit8a9fbf594a3d1ab9a4e6efb663ae7e58f8213592
authorMichael Adam <obnox@samba.org>
Sat, 30 Oct 2010 00:03:02 +0000 (30 02:03 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 4 Nov 2010 03:09:06 +0000 (4 04:09 +0100)
treedcb6fbe38fd263f81ac6b3c1d60cc13b400abdaf
parent4a4a4c2c1a242d5c067a40e2f38ee4a5993b29bf
lib/util/charset/util_unistr: add strlen_m_ext that takes input and output charset

The function calculates the number of units (8 or 16-bit, depending
on the destination charset), that would be needed to convert the
input string which is expected to be in in src_charset encoding
to the dst_charset (which should be a unicode charset).
lib/util/charset/charset.h
lib/util/charset/util_unistr.c