1stringprep_ucs4_to_utf8(3)          libidn          stringprep_ucs4_to_utf8(3)
2
3
4

NAME

6       stringprep_ucs4_to_utf8 - convert UCS-4 string to UTF-8
7

SYNOPSIS

9       #include <stringprep.h>
10
11       char  *  stringprep_ucs4_to_utf8(const  uint32_t  *  str,  ssize_t len,
12       size_t * items_read, size_t * items_written);
13

ARGUMENTS

15       const uint32_t * str
16                   a UCS-4 encoded string
17
18       ssize_t len the maximum length of str to use. If  len  <  0,  then  the
19                   string is terminated with a 0 character.
20
21       size_t * items_read
22                   location to store number of characters read read, or NULL.
23
24       size_t * items_written
25                   location  to  store  number  of bytes written or NULL.  The
26                   value here stored does not include the trailing 0 byte.
27

DESCRIPTION

29       Convert a string from a 32-bit fixed width representation as UCS-4.  to
30       UTF-8. The result will be terminated with a 0 byte.
31

RETURN VALUE

33       a  pointer to a newly allocated UTF-8 string.  This value must be freed
34       with free(). If an error occurs, NULL will be returned and error set.
35

REPORTING BUGS

37       Report bugs to <bug-libidn@gnu.org>.
38
40       Copyright © 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
41       Permission is granted to make and distribute verbatim  copies  of  this
42       manual  provided  the  copyright  notice and this permission notice are
43       preserved on all copies.
44

SEE ALSO

46       The full documentation for libidn is maintained as  a  Texinfo  manual.
47       If  the  info  and libidn programs are properly installed at your site,
48       the command
49
50              info libidn
51
52       should give you access to the complete manual.
53
54
55
56libidn                               0.6.8          stringprep_ucs4_to_utf8(3)
Impressum