summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-10-29 22:06:05 +0200
committerMichael Adam <obnox@samba.org>2010-11-03 22:45:19 +0000
commitd41d05ec7b5650759b8b6b388d34516daf0eed83 (patch)
treec021d8bb12e4712437974350a51d4a48393b6043 /source3/include
parentf14d84e2f233dd337bbd9bb0166f8bf0cc8f7a82 (diff)
downloadsamba-d41d05ec7b5650759b8b6b388d34516daf0eed83.tar.gz
samba-d41d05ec7b5650759b8b6b388d34516daf0eed83.tar.bz2
samba-d41d05ec7b5650759b8b6b388d34516daf0eed83.zip
s3:lib/charcnv: add next_codepoint_ext() that accepts input charset.
next_codepoint() takes as string in CH_UNIX encoding and returns the unicode codepoint of the next (possibly multibyte) character of the input string. The new next_codepoint_ext() function adds the encoding of the input string as a parameter. next_codepoint() now only calls next_codepoint_ext() with CH_UNIX als src_charset argument.
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 5095b1fde4..f76bc32aaa 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -480,6 +480,8 @@ size_t pull_string_talloc_fn(const char *function,
size_t src_len,
int flags);
size_t align_string(const void *base_ptr, const char *p, int flags);
+codepoint_t next_codepoint_ext(const char *str, charset_t src_charset,
+ size_t *size);
codepoint_t next_codepoint(const char *str, size_t *size);
/* The following definitions come from lib/clobber.c */