1stringprep_utf8_to_ucs4(3) libidn stringprep_utf8_to_ucs4(3)
2
3
4
6 stringprep_utf8_to_ucs4 - convert UTF-8 string to UCS-4
7
9 #include <stringprep.h>
10
11 uint32_t * stringprep_utf8_to_ucs4(const char * str, ssize_t len,
12 size_t * items_written);
13
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
26 Convert a string from UTF-8 to a 32-bit fixed width representation as
27 UCS-4, assuming valid UTF-8 input. This function does no error check‐
28 ing on the input.
29
31 a pointer to a newly allocated UCS-4 string. This value must be freed
32 with free().
33
35 Report bugs to <bug-libidn@gnu.org>.
36
38 Copyright © 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
39 Permission is granted to make and distribute verbatim copies of this
40 manual provided the copyright notice and this permission notice are
41 preserved on all copies.
42
44 The full documentation for libidn is maintained as a Texinfo manual.
45 If the info and libidn programs are properly installed at your site,
46 the command
47
48 info libidn
49
50 should give you access to the complete manual.
51
52
53
54libidn 0.6.8 stringprep_utf8_to_ucs4(3)