1stringprep_4i(3) libidn stringprep_4i(3)
2
3
4
6 stringprep_4i - API function
7
9 #include <stringprep.h>
10
11 int stringprep_4i(uint32_t * ucs4, size_t * len, size_t maxucs4len,
12 Stringprep_profile_flags flags, const Stringprep_profile * profile);
13
15 uint32_t * ucs4
16 input/output array with string to prepare.
17
18 size_t * len
19 on input, length of input array with Unicode code points,
20 on exit, length of output array with Unicode code points.
21
22 size_t maxucs4len
23 maximum length of input/output array.
24
25 Stringprep_profile_flags flags
26 a Stringprep_profile_flags value, or 0.
27
28 const Stringprep_profile * profile
29 pointer to Stringprep_profile to use.
30
32 Prepare the input UCS-4 string according to the stringprep profile, and
33 write back the result to the input string.
34
35 The input is not required to be zero terminated (ucs4[len] = 0). The
36 output will not be zero terminated unless ucs4[len] = 0. Instead, see
37 stringprep_4zi() if your input is zero terminated or if you want the
38 output to be.
39
40 Since the stringprep operation can expand the string, maxucs4len indi‐
41 cate how large the buffer holding the string is. This function will
42 not read or write to code points outside that size.
43
44 The flags are one of Stringprep_profile_flags values, or 0.
45
46 The profile contain the Stringprep_profile instructions to perform.
47 Your application can define new profiles, possibly re-using the generic
48 stringprep tables that always will be part of the library, or use one
49 of the currently supported profiles.
50
52 Returns STRINGPREP_OK iff successful, or an Stringprep_rc error code.
53
55 Report bugs to <bug-libidn@gnu.org>. GNU Libidn home page:
56 http://www.gnu.org/software/libidn/ General help using GNU software:
57 http://www.gnu.org/gethelp/
58
60 Copyright © 2002-2013 Simon Josefsson.
61 Copying and distribution of this file, with or without modification,
62 are permitted in any medium without royalty provided the copyright
63 notice and this notice are preserved.
64
66 The full documentation for libidn is maintained as a Texinfo manual.
67 If the info and libidn programs are properly installed at your site,
68 the command
69
70 info libidn
71
72 should give you access to the complete manual.
73
74
75
76libidn 1.28 stringprep_4i(3)