1idn2_to_ascii_4i(3)                 libidn2                idn2_to_ascii_4i(3)
2
3
4

NAME

6       idn2_to_ascii_4i - API function
7

SYNOPSIS

9       #include <idn2.h>
10
11       int  idn2_to_ascii_4i(const uint32_t * input, size_t inlen, char * out‐
12       put, int flags);
13

ARGUMENTS

15       const uint32_t * input
16                   zero terminated input Unicode (UCS-4) string.
17
18       size_t inlen
19                   number of elements in  input .
20
21       char * output
22                   output zero terminated string that must have  room  for  at
23                   least 63 characters plus the terminating zero.
24
25       int flags   optional idn2_flags to modify behaviour.
26

DESCRIPTION

28       THIS   FUNCTION   HAS  BEEN  DEPRECATED  DUE  TO  A  DESIGN  FLAW.  USE
29       idn2_to_ascii_4i2() INSTEAD !
30
31       The ToASCII operation takes a sequence of Unicode code points that make
32       up one domain label and transforms it into a sequence of code points in
33       the ASCII range (0..7F). If ToASCII succeeds, the original sequence and
34       the resulting sequence are equivalent labels.
35
36       It  is  important to note that the ToASCII operation can fail.  ToASCII
37       fails if any step of it fails. If any step  of  the  ToASCII  operation
38       fails  on any label in a domain name, that domain name MUST NOT be used
39       as an internationalized domain name.  The method for dealing with  this
40       failure is application-specific.
41
42       The inputs to ToASCII are a sequence of code points.
43
44       ToASCII  never  alters  a  sequence  of code points that are all in the
45       ASCII range to begin  with  (although  it  could  fail).  Applying  the
46       ToASCII operation multiple effect as applying it just once.
47
48       The default behavior of this function (when flags are zero) is to apply
49       the IDNA2008 rules without the TR46 amendments. As the TR46 non-transi‐
50       tional  processing  is  nowadays  ubiquitous, when unsure, it is recom‐
51       mended to call this function  with  the  IDN2_NONTRANSITIONAL  and  the
52       IDN2_NFC_INPUT flags for compatibility with other software.
53
54       Return value: Returns IDN2_OK on success, or error code.
55

SINCE

57       2.0.0
58

DEPRECATED

60       2.1.1: Use idn2_to_ascii_4i2().
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.1.48-1925             idn2_to_ascii_4i(3)
Impressum