1stringprep_utf8_to_ucs4(3) libidn stringprep_utf8_to_ucs4(3)
2
3
4
6 stringprep_utf8_to_ucs4 - API function
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 deal‐
32 located by the caller.
33
35 Report bugs to <bug-libidn@gnu.org>. GNU Libidn home page:
36 http://www.gnu.org/software/libidn/ General help using GNU software:
37 http://www.gnu.org/gethelp/
38
40 Copyright © 2002-2013 Simon Josefsson.
41 Copying and distribution of this file, with or without modification,
42 are permitted in any medium without royalty provided the copyright
43 notice and this notice are preserved.
44
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.
53
54
55
56libidn 1.28 stringprep_utf8_to_ucs4(3)