summaryrefslogtreecommitdiff
path: root/lib/striconveh.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-31 21:01:29 +0000
committerBruno Haible <bruno@clisp.org>2007-03-31 21:01:29 +0000
commit2ec42242c58ea05c1d31ff199d8436420049e189 (patch)
tree29c604db7ad396e71821a1bd2f0580632ae1325f /lib/striconveh.h
parent455a36f0f1ea2fe0ab925bfe74f6e0cf7c6292f5 (diff)
downloadgnulib-2ec42242c58ea05c1d31ff199d8436420049e189.tar.gz
Do an indirect conversion if iconv_open does not support a direct conversion.
Diffstat (limited to 'lib/striconveh.h')
-rw-r--r--lib/striconveh.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/striconveh.h b/lib/striconveh.h
index 1e833a053c..97a377a653 100644
--- a/lib/striconveh.h
+++ b/lib/striconveh.h
@@ -42,7 +42,8 @@ enum iconv_ilseq_handler
/* Convert an entire string from one encoding to another, using iconv.
The original string is at [SRC,...,SRC+SRCLEN-1].
- The conversion descriptor from FROMCODE to TOCODE is passed as CD.
+ CD is the conversion descriptor from FROMCODE to TOCODE, or (iconv_t)(-1) if
+ the system does not support a direct conversion from FROMCODE to TOCODE.
CD1 is the conversion descriptor from FROM_CODESET to UTF-8 (or
(iconv_t)(-1) if FROM_CODESET is UTF-8).
CD2 is the conversion descriptor from UTF-8 to TO_CODESET (or (iconv_t)(-1)
@@ -67,9 +68,10 @@ extern int
/* Convert an entire string from one encoding to another, using iconv.
The original string is the NUL-terminated string starting at SRC.
- The conversion descriptor is passed as CD. Both the "from" and the "to"
- encoding must use a single NUL byte at the end of the string (i.e. not
- UCS-2, UCS-4, UTF-16, UTF-32).
+ CD is the conversion descriptor from FROMCODE to TOCODE, or (iconv_t)(-1) if
+ the system does not support a direct conversion from FROMCODE to TOCODE.
+ Both the "from" and the "to" encoding must use a single NUL byte at the end
+ of the string (i.e. not UCS-2, UCS-4, UTF-16, UTF-32).
CD1 is the conversion descriptor from FROM_CODESET to UTF-8 (or
(iconv_t)(-1) if FROM_CODESET is UTF-8).
CD2 is the conversion descriptor from UTF-8 to TO_CODESET (or (iconv_t)(-1)