summaryrefslogtreecommitdiff
path: root/lib/util/charset/charset.h
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
commit5829cb0a984b6f3ee2ef114a4d2ff85f1a5a592b (patch)
treee44cbf22f6c4ddfe17e95d8af4950b451db88a16 /lib/util/charset/charset.h
parenta50d3638a7440e30a0cbfb3bffe4712ff68e350a (diff)
downloadsamba-5829cb0a984b6f3ee2ef114a4d2ff85f1a5a592b.tar.gz
samba-5829cb0a984b6f3ee2ef114a4d2ff85f1a5a592b.tar.bz2
samba-5829cb0a984b6f3ee2ef114a4d2ff85f1a5a592b.zip
lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input charset.
next_codepoint_convenience() 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_convenience_ext() function adds the encoding of the input string as a parameter. next_codepoint_convenience() now only calls next_codepoint_convenience_ext() with CH_UNIX als src_charset argument.
Diffstat (limited to 'lib/util/charset/charset.h')
-rw-r--r--lib/util/charset/charset.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util/charset/charset.h b/lib/util/charset/charset.h
index a66e24f2b9..7960631484 100644
--- a/lib/util/charset/charset.h
+++ b/lib/util/charset/charset.h
@@ -172,6 +172,9 @@ codepoint_t next_codepoint(const char *str, size_t *size);
ssize_t push_codepoint(char *str, codepoint_t c);
/* codepoints */
+codepoint_t next_codepoint_convenience_ext(struct smb_iconv_convenience *ic,
+ const char *str, charset_t src_charset,
+ size_t *size);
codepoint_t next_codepoint_convenience(struct smb_iconv_convenience *ic,
const char *str, size_t *size);
ssize_t push_codepoint_convenience(struct smb_iconv_convenience *ic,