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
32       Return  value: a pointer to a newly allocated UTF-8 string.  This value
33       must be deallocated by the caller.  If an error occurs,  NULL  will  be
34       returned.
35

REPORTING BUGS

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

SEE ALSO

49       The  full  documentation  for libidn is maintained as a Texinfo manual.
50       If the info and libidn programs are properly installed  at  your  site,
51       the command
52
53              info libidn
54
55       should  give  you access to the complete manual.  As an alternative you
56       may obtain the manual from:
57
58              http://www.gnu.org/software/libidn/manual/
59
60libidn                               1.35           stringprep_ucs4_to_utf8(3)
Impressum