1stringprep_utf8_to_ucs4(3)          libidn          stringprep_utf8_to_ucs4(3)
2
3
4

NAME

6       stringprep_utf8_to_ucs4 - API function
7

SYNOPSIS

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

ARGUMENTS

15       const char * str
16                   a UTF-8 encoded string
17
18       ssize_t len the maximum length of  str to use. If  len <  0,  then  the
19                   string is nul-terminated.
20
21       size_t * items_written
22                   location  to  store the number of characters in the result,
23                   or NULL.
24

DESCRIPTION

26       Convert a string from UTF-8 to a 32-bit fixed width  representation  as
27       UCS-4.   The  function  now  performs error checking to verify that the
28       input is valid UTF-8 (before it was documented to not do  error  check‐
29       ing).
30
31       Return  value: a pointer to a newly allocated UCS-4 string.  This value
32       must be deallocated by the caller.
33

REPORTING BUGS

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

SEE ALSO

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