1idn2_register_ul(3)                 libidn2                idn2_register_ul(3)
2
3
4

NAME

6       idn2_register_ul - API function
7

SYNOPSIS

9       #include <idn2.h>
10
11       int  idn2_register_ul(const char * ulabel, const char * alabel, char **
12       insertname, int flags);
13

ARGUMENTS

15       const char * ulabel
16                   input zero-terminated locale encoded string, or NULL.
17
18       const char * alabel
19                   input zero-terminated ACE encoded string (xn--), or NULL.
20
21       char ** insertname
22                   newly allocated output variable with name  to  register  in
23                   DNS.
24
25       int flags   optional idn2_flags to modify behaviour.
26

DESCRIPTION

28       Perform IDNA2008 register string conversion on domain label  ulabel and
29       alabel , as described in section 4 of RFC 5891.  Note  that  the  input
30       ulabel  is assumed to be encoded in the locale's default coding system,
31       and will be transcoded to UTF-8 and NFC normalized by this function.
32
33       It is recommended to supply both  ulabel and  alabel for  better  error
34       checking,  but  supplying  just one of them will work.  Passing in only
35       alabel is better than only  ulabel .  See RFC 5891 section 4  for  more
36       information.
37
38       After  version 0.11:  insertname may be NULL to test conversion of  src
39       without allocating memory.
40

RETURNS

42       On successful conversion IDN2_OK is returned, when  the  given   ulabel
43       and   alabel  does  not  match  each other IDN2_UALABEL_MISMATCH is re‐
44       turned, when either of the input labels are too long IDN2_TOO_BIG_LABEL
45       is  returned,  when  alabel does does not appear to be a proper A-label
46       IDN2_INVALID_ALABEL is returned, when  ulabel locale to  UTF-8  conver‐
47       sion  failed  IDN2_ICONV_FAIL is returned, or another error code is re‐
48       turned.
49

REPORTING BUGS

51       Report bugs to <help-libidn@gnu.org>.
52       General guidelines for reporting bugs: https://www.gnu.org/gethelp/
53       Libidn2 home page: https://www.gnu.org/software/libidn2/
54
55
57       Copyright © 2002-2022 Simon Josefsson.
58       Copying and distribution of this file, with  or  without  modification,
59       are  permitted in any medium without royalty provided the copyright no‐
60       tice and this notice are preserved.
61

SEE ALSO

63       The full documentation for libidn2 is maintained as a  Texinfo  manual.
64       If  the  info and libidn2 programs are properly installed at your site,
65       the command
66
67              info libidn2
68
69       should give you access to the complete manual.  As an  alternative  you
70       may obtain the manual from:
71
72              https://www.gnu.org/software/libidn/libidn2/manual/
73
74libidn2                              2.3.3                 idn2_register_ul(3)
Impressum