From cad2e6c4c13ccd02587e47d13e897e0a327b58eb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Aug 2008 17:49:34 +1000 Subject: [PATCH] added some comments at the request of a frustrated abartlet --- source/lib/charset/iconv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/lib/charset/iconv.c b/source/lib/charset/iconv.c index 4f4bc8fd2da..d4f930b4622 100644 --- a/source/lib/charset/iconv.c +++ b/source/lib/charset/iconv.c @@ -469,6 +469,9 @@ static size_t iconv_copy(void *cd, const char **inbuf, size_t *inbytesleft, return 0; } +/* + this takes a UTF8 sequence and produces a UTF16 sequence + */ static size_t utf8_pull(void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { @@ -586,6 +589,10 @@ error: return -1; } + +/* + this takes a UTF16 sequence and produces a UTF8 sequence + */ static size_t utf8_push(void *cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { -- 2.47.2