s3:lib/util_str: 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:19 +0000 (22:45 +0000)
commit288d55b511bcfd5ed3d6b464046808ce82aedaec
tree7d1afb502a4470e1b38f7c94d266ba5fa115dda7
parent4579d7ea2920bda8de2339c6ecd190e65454fa43
s3:lib/util_str: 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).
source3/include/proto.h
source3/lib/util_str.c