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

NAME

6       stringprep_ucs4_to_utf8 - API function
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 deal‐
34       located by the caller.  If an error occurs, NULL will be returned.
35

REPORTING BUGS

37       Report  bugs  to   <bug-libidn@gnu.org>.    GNU   Libidn   home   page:
38       http://www.gnu.org/software/libidn/  General  help  using GNU software:
39       http://www.gnu.org/gethelp/
40
42       Copyright © 2002-2013 Simon Josefsson.
43       Copying and distribution of this file, with  or  without  modification,
44       are  permitted  in  any  medium  without royalty provided the copyright
45       notice and this notice are preserved.
46

SEE ALSO

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