From d41d05ec7b5650759b8b6b388d34516daf0eed83 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 29 Oct 2010 22:06:05 +0200 Subject: 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. --- source3/include/proto.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/include') 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 */ -- cgit