lib/util/charset/util_unistr: add strlen_m_ext that takes input and output charset
authorMichael Adam <obnox@samba.org>
Sat, 30 Oct 2010 00:03:02 +0000 (02:03 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 3 Nov 2010 22:45:20 +0000 (22:45 +0000)
commit82c8b31ebce2783e439399f662591b03ab5a1960
treeb826ea1e69fcd262fe24310c0607bce550904b3d
parent72f83368653832a7630e9fbda02e516e1aa7faff
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