summaryrefslogtreecommitdiff
path: root/lib/util/charset/charset.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-10-30 02:03:02 +0200
committerMichael Adam <obnox@samba.org>2010-11-03 22:45:20 +0000
commit82c8b31ebce2783e439399f662591b03ab5a1960 (patch)
treeb826ea1e69fcd262fe24310c0607bce550904b3d /lib/util/charset/charset.h
parent72f83368653832a7630e9fbda02e516e1aa7faff (diff)
downloadsamba-82c8b31ebce2783e439399f662591b03ab5a1960.tar.gz
samba-82c8b31ebce2783e439399f662591b03ab5a1960.tar.bz2
samba-82c8b31ebce2783e439399f662591b03ab5a1960.zip
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).
Diffstat (limited to 'lib/util/charset/charset.h')
-rw-r--r--lib/util/charset/charset.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h
index 283212dbff..8222a0586e 100644
--- a/lib/util/charset/charset.h
+++ b/lib/util/charset/charset.h
@@ -120,6 +120,7 @@ struct smb_iconv_convenience;
#define strupper(s) strupper_m(s)
char *strchr_m(const char *s, char c);
+size_t strlen_m_ext(const char *s, charset_t src_charset, charset_t dst_charset);
size_t strlen_m_term(const char *s);
size_t strlen_m_term_null(const char *s);
size_t strlen_m(const char *s);