1tld_check_4tz(3) libidn tld_check_4tz(3)
2
3
4
6 tld_check_4tz - verify that characters are permitted
7
9 #include <tld.h>
10
11 int tld_check_4tz(const uint32_t * in, size_t * errpos, const Tld_table
12 * tld);
13
15 const uint32_t * in
16 Zero terminated array of unicode code points to process.
17
18 size_t * errpos
19 Position of offending character is returned here.
20
21 const Tld_table * tld
22 A Tld_table data structure representing the restrictions
23 for which the input should be tested.
24
26 Test each of the code points in in for whether or not they are allowed
27 by the data structure in tld, return the position of the first charac‐
28 ter for which this is not the case in errpos.
29
31 Returns the Tld_rc value TLD_SUCCESS if all code points are valid or
32 when tld is null, TLD_INVALID if a character is not allowed, or addi‐
33 tional error codes on general failure conditions.
34
36 Report bugs to <bug-libidn@gnu.org>.
37
39 Copyright © 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
40 Permission is granted to make and distribute verbatim copies of this
41 manual provided the copyright notice and this permission notice are
42 preserved on all copies.
43
45 The full documentation for libidn is maintained as a Texinfo manual.
46 If the info and libidn programs are properly installed at your site,
47 the command
48
49 info libidn
50
51 should give you access to the complete manual.
52
53
54
55libidn 0.6.8 tld_check_4tz(3)