idna_to_ascii_4i(3) libidn idna_to_ascii_4i(3) NNAAMMEE idna_to_ascii_4i - API function SSYYNNOOPPSSIISS ##iinncclluuddee <> iinntt iiddnnaa__ttoo__aasscciiii__44ii((ccoonnsstt uuiinntt3322__tt ** _i_n,, ssiizzee__tt _i_n_l_e_n,, cchhaarr ** _o_u_t,, iinntt _f_l_a_g_s));; AARRGGUUMMEENNTTSS const uint32_t * in input array with unicode code points. size_t inlen length of input array with unicode code points. char * out output zero terminated string that must have room for at least 63 characters plus the terminating zero. int flags an IIddnnaa__ffllaaggss value, e.g., IIDDNNAA__AALLLLOOWW__UUNNAASSSSIIGGNNEEDD or IIDDNNAA__UUSSEE__SSTTDD33__AASSCCIIII__RRUULLEESS. DDEESSCCRRIIPPTTIIOONN The ToASCII operation takes a sequence of Unicode code points that make up one domain label and transforms it into a sequence of code points in the ASCII range (0..7F). If ToASCII succeeds, the original sequence and the resulting sequence are equivalent labels. It is important to note that the ToASCII operation can fail. ToASCII fails if any step of it fails. If any step of the ToASCII operation fails on any label in a domain name, that domain name MUST NOT be used as an internationalized domain name. The method for deadling with this failure is application-specific. The inputs to ToASCII are a sequence of code points, the AllowUnas- signed flag, and the UseSTD3ASCIIRules flag. The output of ToASCII is either a sequence of ASCII code points or a failure condition. ToASCII never alters a sequence of code points that are all in the ASCII range to begin with (although it could fail). Applying the ToASCII operation multiple times has exactly the same effect as apply- ing it just once. Return value: Returns 0 on success, or an IIddnnaa__rrcc error code. RREEPPOORRTTIINNGG BBUUGGSS Report bugs to . General guidelines for reporting bugs: http://www.gnu.org/gethelp/ GNU Libidn home page: http://www.gnu.org/software/libidn/ CCOOPPYYRRIIGGHHTT Copyright (C) 2002-2021 Simon Josefsson. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. SSEEEE AALLSSOO The full documentation for lliibbiiddnn is maintained as a Texinfo manual. If the iinnffoo and lliibbiiddnn programs are properly installed at your site, the command iinnffoo lliibbiiddnn should give you access to the complete manual. As an alternative you may obtain the manual from: hhttttpp::////wwwwww..ggnnuu..oorrgg//ssooffttwwaarree//lliibbiiddnn//mmaannuuaall// libidn 1.38 idna_to_ascii_4i(3)