diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-11 02:46:54 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-04-11 02:46:54 +0200 |
commit | 2b6179194183abd250f9f0f3757c9b6b986feece (patch) | |
tree | 1eadb4d5cb2fe5e71f5df5f4191bc916e06163e6 /doc/uniconv.texi | |
parent | cda0a8cfd9ce482dc2bc2ed262a97b2aa805cb0a (diff) | |
download | libunistring-2b6179194183abd250f9f0f3757c9b6b986feece.tar.gz |
Document the 'enum iconv_ilseq_handler'.
Diffstat (limited to 'doc/uniconv.texi')
-rw-r--r-- | doc/uniconv.texi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/uniconv.texi b/doc/uniconv.texi index 08197c5..e10db67 100644 --- a/doc/uniconv.texi +++ b/doc/uniconv.texi @@ -21,6 +21,27 @@ around the native @code{iconv_open} function. It may not work as an argument to the native @code{iconv_open} function directly. @end deftypefun +The handling of unconvertible characters during thre conversions can be +parametrized through the following enumeration type: + +@deftp Type {enum iconv_ilseq_handler} +This type specifies how unconvertible characters in the input are handled. +@end deftp + +@deftypevr Constant {enum iconv_ilseq_handler} iconveh_error +This handler causes the function to return with @code{errno} set to +@code{EILSEQ}. +@end deftypevr + +@deftypevr Constant {enum iconv_ilseq_handler} iconveh_question_mark +This handler produces one question mark @samp{?} per unconvertible character. +@end deftypevr + +@deftypevr Constant {enum iconv_ilseq_handler} iconveh_escape_sequence +This handler produces an escape sequence @code{\u@var{xxxx}} or +@code{\U@var{xxxxxxxx}} for each unconvertible character. +@end deftypevr + @cindex converting The following functions convert between strings in a specified encoding and Unicode strings. |