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 in‐
28       put is valid UTF-8 (before it was documented to not do error checking).
29
30       Return value: a pointer to a newly allocated UCS-4 string.  This  value
31       must be deallocated by the caller.
32

REPORTING BUGS

34       Report bugs to <help-libidn@gnu.org>.
35       General guidelines for reporting bugs: http://www.gnu.org/gethelp/
36       GNU Libidn home page: http://www.gnu.org/software/libidn/
37
38
40       Copyright © 2002-2021 Simon Josefsson.
41       Copying  and  distribution  of this file, with or without modification,
42       are permitted in any medium without royalty provided the copyright  no‐
43       tice and this notice are preserved.
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.  As an alternative you
53       may obtain the manual from:
54
55              http://www.gnu.org/software/libidn/manual/
56
57libidn                               1.38           stringprep_utf8_to_ucs4(3)
Impressum