summaryrefslogtreecommitdiff
path: root/source3/include
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:19 +0000
commit288d55b511bcfd5ed3d6b464046808ce82aedaec (patch)
tree7d1afb502a4470e1b38f7c94d266ba5fa115dda7 /source3/include
parent4579d7ea2920bda8de2339c6ecd190e65454fa43 (diff)
downloadsamba-288d55b511bcfd5ed3d6b464046808ce82aedaec.tar.gz
samba-288d55b511bcfd5ed3d6b464046808ce82aedaec.tar.bz2
samba-288d55b511bcfd5ed3d6b464046808ce82aedaec.zip
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).
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 89aa623314..5e88476e44 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1433,6 +1433,8 @@ char *strnrchr_m(const char *s, char c, unsigned int n);
char *strstr_m(const char *src, const char *findstr);
void strlower_m(char *s);
void strupper_m(char *s);
+size_t strlen_m_ext(const char *s, const charset_t src_charset,
+ const charset_t dst_charset);
size_t strlen_m(const char *s);
size_t strlen_m_term(const char *s);
size_t strlen_m_term_null(const char *s);