/
usr
/
include
/
/usr/include
mkdir
upload
Name
Size
Mode
Actions
arpa/
-
0755
rm
asm/
-
0755
rm
asm-generic/
-
0755
rm
bits/
-
0755
rm
bsock/
-
0755
rm
c++/
-
0755
rm
curl/
-
0755
rm
drm/
-
0755
rm
et/
-
0755
rm
finclude/
-
0755
rm
fwctl/
-
0755
rm
gdb/
-
0755
rm
gnu/
-
0755
rm
gssapi/
-
0755
rm
gssrpc/
-
0755
rm
kadm5/
-
0755
rm
krb5/
-
0755
rm
libxml2/
-
0755
rm
linux/
-
0755
rm
lzma/
-
0755
rm
misc/
-
0755
rm
mtd/
-
0755
rm
net/
-
0755
rm
netash/
-
0755
rm
netatalk/
-
0755
rm
netax25/
-
0755
rm
neteconet/
-
0755
rm
netinet/
-
0755
rm
netipx/
-
0755
rm
netiucv/
-
0755
rm
netpacket/
-
0755
rm
netrom/
-
0755
rm
netrose/
-
0755
rm
nfs/
-
0755
rm
nghttp2/
-
0755
rm
offload/
-
0755
rm
openssl/
-
0755
rm
pcp/
-
0755
rm
protocols/
-
0755
rm
python3.9/
-
0755
rm
rdma/
-
0755
rm
rpc/
-
0755
rm
sasl/
-
0755
rm
scsi/
-
0755
rm
selinux/
-
0755
rm
sepol/
-
0755
rm
sound/
-
0755
rm
sys/
-
0755
rm
video/
-
0755
rm
xen/
-
0755
rm
a.out.h
4351
0644
edit
dl
rm
aio.h
7738
0644
edit
dl
rm
aliases.h
2028
0644
edit
dl
rm
alloca.h
1203
0644
edit
dl
rm
ar.h
1731
0644
edit
dl
rm
argp.h
25548
0644
edit
dl
rm
argz.h
6051
0644
edit
dl
rm
assert.h
4562
0644
edit
dl
rm
byteswap.h
1449
0644
edit
dl
rm
complex.h
8140
0644
edit
dl
rm
com_err.h
2118
0644
edit
dl
rm
cpio.h
2268
0644
edit
dl
rm
cpuidle.h
931
0644
edit
dl
rm
crypt.h
11160
0644
edit
dl
rm
ctype.h
10969
0644
edit
dl
rm
dirent.h
12617
0644
edit
dl
rm
dlfcn.h
8802
0644
edit
dl
rm
elf.h
182542
0644
edit
dl
rm
endian.h
2299
0644
edit
dl
rm
envz.h
2867
0644
edit
dl
rm
err.h
2341
0644
edit
dl
rm
errno.h
1679
0644
edit
dl
rm
error.h
2416
0644
edit
dl
rm
execinfo.h
1523
0644
edit
dl
rm
fcntl.h
11442
0644
edit
dl
rm
features-time64.h
1404
0644
edit
dl
rm
features.h
18116
0644
edit
dl
rm
fenv.h
5788
0644
edit
dl
rm
FlexLexer.h
6893
0644
edit
dl
rm
fmtmsg.h
3240
0644
edit
dl
rm
fnmatch.h
2296
0644
edit
dl
rm
fpu_control.h
3584
0644
edit
dl
rm
fstab.h
3111
0644
edit
dl
rm
fts.h
9579
0644
edit
dl
rm
ftw.h
6343
0644
edit
dl
rm
gconv.h
4211
0644
edit
dl
rm
gelf.h
11406
0644
edit
dl
rm
GeoIP.h
17835
0644
edit
dl
rm
GeoIPCity.h
2298
0644
edit
dl
rm
getopt.h
1469
0644
edit
dl
rm
glob.h
7299
0644
edit
dl
rm
gnu-versions.h
2343
0644
edit
dl
rm
gnumake.h
2912
0644
edit
dl
rm
grp.h
6687
0644
edit
dl
rm
gshadow.h
4529
0644
edit
dl
rm
gssapi.h
181
0644
edit
dl
rm
iconv.h
1858
0644
edit
dl
rm
idn2.h
13891
0644
edit
dl
rm
ieee754.h
4916
0644
edit
dl
rm
ifaddrs.h
2841
0644
edit
dl
rm
inttypes.h
8337
0644
edit
dl
rm
kdb.h
64333
0644
edit
dl
rm
keyutils.h
11796
0644
edit
dl
rm
krad.h
8933
0644
edit
dl
rm
krb5.h
402
0644
edit
dl
rm
langinfo.h
17849
0644
edit
dl
rm
lastlog.h
126
0644
edit
dl
rm
lauxlib.h
9314
0644
edit
dl
rm
lber.h
15480
0644
edit
dl
rm
lber_types.h
1468
0644
edit
dl
rm
ldap.h
74100
0644
edit
dl
rm
ldap_cdefs.h
9466
0644
edit
dl
rm
ldap_features.h
1585
0644
edit
dl
rm
ldap_schema.h
9450
0644
edit
dl
rm
ldap_utf8.h
3468
0644
edit
dl
rm
ldif.h
4793
0644
edit
dl
rm
libelf.h
20795
0644
edit
dl
rm
libgen.h
1386
0644
edit
dl
rm
libintl.h
4580
0644
edit
dl
rm
liblsapi-sha1.h
569
0644
edit
dl
rm
libpsl.h
5792
0644
edit
dl
rm
libssh2.h
60665
0644
edit
dl
rm
libssh2_publickey.h
4942
0644
edit
dl
rm
libssh2_sftp.h
17369
0644
edit
dl
rm
limits.h
5706
0644
edit
dl
rm
link.h
7801
0644
edit
dl
rm
locale.h
7675
0644
edit
dl
rm
lsapidef.h
4889
0644
edit
dl
rm
lscapi.h
25229
0644
edit
dl
rm
lscapi_config.h
599
0644
edit
dl
rm
lua.h
15818
0644
edit
dl
rm
lua.hpp
191
0644
edit
dl
rm
luaconf-x86_64.h
21518
0644
edit
dl
rm
luaconf.h
1655
0644
edit
dl
rm
lualib.h
1116
0644
edit
dl
rm
lzma.h
9866
0644
edit
dl
rm
malloc.h
5912
0644
edit
dl
rm
math.h
48773
0644
edit
dl
rm
mcheck.h
2435
0644
edit
dl
rm
memory.h
956
0644
edit
dl
rm
mntent.h
3359
0644
edit
dl
rm
monetary.h
1966
0644
edit
dl
rm
mqueue.h
4603
0644
edit
dl
rm
mysql
-
0
edit
dl
rm
netdb.h
28461
0644
edit
dl
rm
nlist.h
1601
0644
edit
dl
rm
nl_types.h
1753
0644
edit
dl
rm
nss.h
14408
0644
edit
dl
rm
obstack.h
21307
0644
edit
dl
rm
openldap.h
964
0644
edit
dl
rm
paths.h
2977
0644
edit
dl
rm
pcre2.h
47257
0644
edit
dl
rm
pcre2posix.h
6677
0644
edit
dl
rm
poll.h
22
0644
edit
dl
rm
powercap.h
1660
0644
edit
dl
rm
printf.h
6875
0644
edit
dl
rm
proc_service.h
3477
0644
edit
dl
rm
profile.h
12154
0644
edit
dl
rm
pthread.h
48524
0644
edit
dl
rm
pty.h
1570
0644
edit
dl
rm
pwd.h
6317
0644
edit
dl
rm
regex.h
25904
0644
edit
dl
rm
regexp.h
1448
0644
edit
dl
rm
resolv.h
12387
0644
edit
dl
rm
re_comp.h
963
0644
edit
dl
rm
sched.h
5038
0644
edit
dl
rm
search.h
5450
0644
edit
dl
rm
semaphore.h
3464
0644
edit
dl
rm
setjmp.h
3190
0644
edit
dl
rm
sgtty.h
1344
0644
edit
dl
rm
shadow.h
5472
0644
edit
dl
rm
signal.h
13040
0644
edit
dl
rm
slapi-plugin.h
38352
0644
edit
dl
rm
spawn.h
8297
0644
edit
dl
rm
stab.h
264
0644
edit
dl
rm
stdc-predef.h
2290
0644
edit
dl
rm
stdint.h
8474
0644
edit
dl
rm
stdio.h
31411
0644
edit
dl
rm
stdio_ext.h
2800
0644
edit
dl
rm
stdlib.h
36316
0644
edit
dl
rm
string.h
19459
0644
edit
dl
rm
strings.h
4753
0644
edit
dl
rm
syscall.h
25
0644
edit
dl
rm
sysexits.h
5232
0644
edit
dl
rm
syslog.h
24
0644
edit
dl
rm
tar.h
3786
0644
edit
dl
rm
termio.h
214
0644
edit
dl
rm
termios.h
3599
0644
edit
dl
rm
tgmath.h
40180
0644
edit
dl
rm
threads.h
7686
0644
edit
dl
rm
thread_db.h
16024
0644
edit
dl
rm
time.h
14848
0644
edit
dl
rm
ttyent.h
2494
0644
edit
dl
rm
uchar.h
2002
0644
edit
dl
rm
ucontext.h
2037
0644
edit
dl
rm
ulimit.h
1584
0644
edit
dl
rm
unistd.h
44489
0644
edit
dl
rm
utime.h
1905
0644
edit
dl
rm
utmp.h
3223
0644
edit
dl
rm
utmpx.h
4100
0644
edit
dl
rm
values.h
1956
0644
edit
dl
rm
verto-module.h
6640
0644
edit
dl
rm
verto.h
19437
0644
edit
dl
rm
wait.h
22
0644
edit
dl
rm
wchar.h
32142
0644
edit
dl
rm
wctype.h
5549
0644
edit
dl
rm
wordexp.h
2502
0644
edit
dl
rm
zconf.h
16262
0644
edit
dl
rm
zdict.h
26433
0644
edit
dl
rm
zlib.h
96261
0644
edit
dl
rm
zstd.h
171378
0644
edit
dl
rm
zstd_errors.h
4532
0644
edit
dl
rm
Edit:
/usr/include/idn2.h
(13891B)
/* idn2.h - header file for idn2 Copyright (C) 2011-2017 Simon Josefsson Libidn2 is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. or * the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. or both in parallel, as here. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received copies of the GNU General Public License and the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef IDN2_H #define IDN2_H /* *INDENT-OFF* */ /* see https://www.gnu.org/software/gnulib/manual/html_node/Exported-Symbols-of-Shared-Libraries.html */ #ifndef _IDN2_API # if defined IDN2_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY # define _IDN2_API __attribute__((__visibility__("default"))) # elif defined IDN2_BUILDING && defined _MSC_VER && ! defined IDN2_STATIC # define _IDN2_API __declspec(dllexport) # elif defined _MSC_VER && ! defined IDN2_STATIC # define _IDN2_API __declspec(dllimport) # else # define _IDN2_API # endif #endif /* *INDENT-ON* */ #include <stdint.h> /* uint32_t */ #include <string.h> /* size_t */ #ifdef __cplusplus extern "C" { #endif /** * GCC_VERSION_AT_LEAST * @major: gcc major version number to compare with * @minor: gcc minor version number to compare with * * Pre-processor symbol to check the gcc version. */ #if defined __GNUC__ && defined __GNUC_MINOR__ # define GCC_VERSION_AT_LEAST(major, minor) ((__GNUC__ > (major)) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) #else # define GCC_VERSION_AT_LEAST(major, minor) 0 #endif /* the following G_GNUC_ prefixes are for gtk-doc to recognize the attributes */ /** * G_GNUC_IDN2_ATTRIBUTE_PURE * * Function attribute: Function is a pure function. */ #if GCC_VERSION_AT_LEAST(2,96) # define G_GNUC_IDN2_ATTRIBUTE_PURE __attribute__ ((pure)) #else # define G_GNUC_IDN2_ATTRIBUTE_PURE #endif /** * G_GNUC_IDN2_ATTRIBUTE_CONST * * Function attribute: Function is a const function. */ #if GCC_VERSION_AT_LEAST(2,5) # define G_GNUC_IDN2_ATTRIBUTE_CONST __attribute__ ((const)) #else # define G_GNUC_IDN2_ATTRIBUTE_CONST #endif /** * G_GNUC_DEPRECATED * * Function attribute: Function is deprecated. */ #if GCC_VERSION_AT_LEAST(3,1) # define G_GNUC_DEPRECATED __attribute__((deprecated)) #elif defined(_MSC_VER) # define G_GNUC_DEPRECATED __declspec(deprecated) #else # define G_GNUC_DEPRECATED /* empty */ #endif /** * G_GNUC_UNUSED * * Parameter attribute: Parameter is not used. */ #if GCC_VERSION_AT_LEAST(2,95) # define G_GNUC_UNUSED __attribute__ ((__unused__)) #else # define G_GNUC_UNUSED /* empty */ #endif /** * IDN2_VERSION * * Pre-processor symbol with a string that describe the header file * version number. Used together with idn2_check_version() to verify * header file and run-time library consistency. */ #define IDN2_VERSION "2.3.0" /** * IDN2_VERSION_NUMBER * * Pre-processor symbol with a hexadecimal value describing the header * file version number. For example, when the header version is * 1.2.4711 this symbol will have the value 0x01021267. The last four * digits are used to enumerate development snapshots, but for all * public releases they will be 0000. */ #define IDN2_VERSION_NUMBER 0x02030000 /** * IDN2_VERSION_MAJOR * * Pre-processor symbol for the major version number (decimal). * The version scheme is major.minor.patchlevel. */ #define IDN2_VERSION_MAJOR 2 /** * IDN2_VERSION_MINOR * * Pre-processor symbol for the minor version number (decimal). * The version scheme is major.minor.patchlevel. */ #define IDN2_VERSION_MINOR 3 /** * IDN2_VERSION_PATCH * * Pre-processor symbol for the patch level number (decimal). * The version scheme is major.minor.patchlevel. */ #define IDN2_VERSION_PATCH 0 /** * IDN2_LABEL_MAX_LENGTH * * Constant specifying the maximum length of a DNS label to 63 * characters, as specified in RFC 1034. */ #define IDN2_LABEL_MAX_LENGTH 63 /** * IDN2_DOMAIN_MAX_LENGTH * * Constant specifying the maximum size of the wire encoding of a DNS * domain to 255 characters, as specified in RFC 1034. Note that the * usual printed representation of a domain name is limited to 253 * characters if it does not end with a period, or 254 characters if * it ends with a period. */ #define IDN2_DOMAIN_MAX_LENGTH 255 /** * idn2_flags: * @IDN2_NFC_INPUT: Normalize input string using normalization form C. * @IDN2_ALABEL_ROUNDTRIP: Perform optional IDNA2008 lookup roundtrip check (default). * @IDN2_NO_ALABEL_ROUNDTRIP: Disable ALabel lookup roundtrip check. * @IDN2_NO_TR46: Disable Unicode TR46 processing. * @IDN2_TRANSITIONAL: Perform Unicode TR46 transitional processing. * @IDN2_NONTRANSITIONAL: Perform Unicode TR46 non-transitional processing (default). * @IDN2_ALLOW_UNASSIGNED: Libidn compatibility flag, unused. * @IDN2_USE_STD3_ASCII_RULES: Use STD3 ASCII rules. * This is a #TR46 only flag, and will be ignored when set without either * @IDN2_TRANSITIONAL or @IDN2_NONTRANSITIONAL. * * Flags to IDNA2008 functions, to be binary or:ed together. Specify * only 0 if you want the default behaviour. */ typedef enum { IDN2_NFC_INPUT = 1, IDN2_ALABEL_ROUNDTRIP = 2, IDN2_TRANSITIONAL = 4, IDN2_NONTRANSITIONAL = 8, IDN2_ALLOW_UNASSIGNED = 16, IDN2_USE_STD3_ASCII_RULES = 32, IDN2_NO_TR46 = 64, IDN2_NO_ALABEL_ROUNDTRIP = 128 } idn2_flags; /* IDNA2008 with UTF-8 encoded inputs. */ extern _IDN2_API int idn2_lookup_u8 (const uint8_t * src, uint8_t ** lookupname, int flags); extern _IDN2_API int idn2_register_u8 (const uint8_t * ulabel, const uint8_t * alabel, uint8_t ** insertname, int flags); /* IDNA2008 with locale encoded inputs. */ extern _IDN2_API int idn2_lookup_ul (const char *src, char **lookupname, int flags); extern _IDN2_API int idn2_register_ul (const char *ulabel, const char *alabel, char **insertname, int flags); /** * idn2_rc: * @IDN2_OK: Successful return. * @IDN2_MALLOC: Memory allocation error. * @IDN2_NO_CODESET: Could not determine locale string encoding format. * @IDN2_ICONV_FAIL: Could not transcode locale string to UTF-8. * @IDN2_ENCODING_ERROR: Unicode data encoding error. * @IDN2_NFC: Error normalizing string. * @IDN2_PUNYCODE_BAD_INPUT: Punycode invalid input. * @IDN2_PUNYCODE_BIG_OUTPUT: Punycode output buffer too small. * @IDN2_PUNYCODE_OVERFLOW: Punycode conversion would overflow. * @IDN2_TOO_BIG_DOMAIN: Domain name longer than 255 characters. * @IDN2_TOO_BIG_LABEL: Domain label longer than 63 characters. * @IDN2_INVALID_ALABEL: Input A-label is not valid. * @IDN2_UALABEL_MISMATCH: Input A-label and U-label does not match. * @IDN2_INVALID_FLAGS: Invalid combination of flags. * @IDN2_NOT_NFC: String is not NFC. * @IDN2_2HYPHEN: String has forbidden two hyphens. * @IDN2_HYPHEN_STARTEND: String has forbidden starting/ending hyphen. * @IDN2_LEADING_COMBINING: String has forbidden leading combining character. * @IDN2_DISALLOWED: String has disallowed character. * @IDN2_CONTEXTJ: String has forbidden context-j character. * @IDN2_CONTEXTJ_NO_RULE: String has context-j character with no rull. * @IDN2_CONTEXTO: String has forbidden context-o character. * @IDN2_CONTEXTO_NO_RULE: String has context-o character with no rull. * @IDN2_UNASSIGNED: String has forbidden unassigned character. * @IDN2_BIDI: String has forbidden bi-directional properties. * @IDN2_DOT_IN_LABEL: Label has forbidden dot (TR46). * @IDN2_INVALID_TRANSITIONAL: Label has character forbidden in transitional mode (TR46). * @IDN2_INVALID_NONTRANSITIONAL: Label has character forbidden in non-transitional mode (TR46). * @IDN2_ALABEL_ROUNDTRIP_FAILED: ALabel -> Ulabel -> ALabel result differs from input. * * Return codes for IDN2 functions. All return codes are negative * except for the successful code IDN2_OK which are guaranteed to be * 0. Positive values are reserved for non-error return codes. * * Note that the #idn2_rc enumeration may be extended at a later date * to include new return codes. */ typedef enum { IDN2_OK = 0, IDN2_MALLOC = -100, IDN2_NO_CODESET = -101, IDN2_ICONV_FAIL = -102, IDN2_ENCODING_ERROR = -200, IDN2_NFC = -201, IDN2_PUNYCODE_BAD_INPUT = -202, IDN2_PUNYCODE_BIG_OUTPUT = -203, IDN2_PUNYCODE_OVERFLOW = -204, IDN2_TOO_BIG_DOMAIN = -205, IDN2_TOO_BIG_LABEL = -206, IDN2_INVALID_ALABEL = -207, IDN2_UALABEL_MISMATCH = -208, IDN2_INVALID_FLAGS = -209, IDN2_NOT_NFC = -300, IDN2_2HYPHEN = -301, IDN2_HYPHEN_STARTEND = -302, IDN2_LEADING_COMBINING = -303, IDN2_DISALLOWED = -304, IDN2_CONTEXTJ = -305, IDN2_CONTEXTJ_NO_RULE = -306, IDN2_CONTEXTO = -307, IDN2_CONTEXTO_NO_RULE = -308, IDN2_UNASSIGNED = -309, IDN2_BIDI = -310, IDN2_DOT_IN_LABEL = -311, IDN2_INVALID_TRANSITIONAL = -312, IDN2_INVALID_NONTRANSITIONAL = -313, IDN2_ALABEL_ROUNDTRIP_FAILED = -314, } idn2_rc; /* Auxiliary functions. */ extern _IDN2_API G_GNUC_DEPRECATED int idn2_to_ascii_4i (const uint32_t * input, size_t inlen, char * output, int flags); extern _IDN2_API int idn2_to_ascii_4i2 (const uint32_t * input, size_t inlen, char ** output, int flags); extern _IDN2_API int idn2_to_ascii_4z (const uint32_t * input, char ** output, int flags); extern _IDN2_API int idn2_to_ascii_8z (const char * input, char ** output, int flags); extern _IDN2_API int idn2_to_ascii_lz (const char * input, char ** output, int flags); extern _IDN2_API int idn2_to_unicode_8z4z (const char * input, uint32_t ** output, int flags G_GNUC_UNUSED); extern _IDN2_API int idn2_to_unicode_4z4z (const uint32_t * input, uint32_t ** output, int flags); extern _IDN2_API int idn2_to_unicode_44i (const uint32_t * in, size_t inlen, uint32_t * out, size_t * outlen, int flags); extern _IDN2_API int idn2_to_unicode_8z8z (const char * input, char ** output, int flags); extern _IDN2_API int idn2_to_unicode_8zlz (const char * input, char ** output, int flags); extern _IDN2_API int idn2_to_unicode_lzlz (const char * input, char ** output, int flags); extern _IDN2_API G_GNUC_IDN2_ATTRIBUTE_CONST const char * idn2_strerror (int rc); extern _IDN2_API G_GNUC_IDN2_ATTRIBUTE_CONST const char * idn2_strerror_name (int rc); extern _IDN2_API G_GNUC_IDN2_ATTRIBUTE_PURE const char * idn2_check_version (const char *req_version); extern _IDN2_API void idn2_free (void *ptr); /*** libidn compatibility layer ***/ #if !defined IDNA_H && !defined IDN2_SKIP_LIBIDN_COMPAT /** * Idna_rc: * @IDNA_SUCCESS: Same as %IDN2_OK * @IDNA_STRINGPREP_ERROR: Same as %IDN2_ENCODING_ERROR * @IDNA_PUNYCODE_ERROR: Same as %IDN2_PUNYCODE_BAD_INPUT * @IDNA_CONTAINS_NON_LDH: Same as %IDN2_ENCODING_ERROR * @IDNA_CONTAINS_LDH: Same as %IDNA_CONTAINS_NON_LDH * @IDNA_CONTAINS_MINUS: Same as %IDN2_ENCODING_ERROR * @IDNA_INVALID_LENGTH: Same as %IDN2_DISALLOWED * @IDNA_NO_ACE_PREFIX: Same as %IDN2_ENCODING_ERROR * @IDNA_ROUNDTRIP_VERIFY_ERROR: Same as %IDN2_ENCODING_ERROR * @IDNA_CONTAINS_ACE_PREFIX: Same as %IDN2_ENCODING_ERROR * @IDNA_ICONV_ERROR: Same as %IDN2_ENCODING_ERROR * @IDNA_MALLOC_ERROR: Same as %IDN2_MALLOC * @IDNA_DLOPEN_ERROR: Same as %IDN2_MALLOC * * Return codes for transition to / compatibility with libidn2. * * Please be aware that return codes from idna_ functions might be unexpected * when linked / built with libidn2. */ typedef enum { IDNA_SUCCESS = IDN2_OK, IDNA_STRINGPREP_ERROR = IDN2_ENCODING_ERROR, IDNA_PUNYCODE_ERROR = IDN2_PUNYCODE_BAD_INPUT, IDNA_CONTAINS_NON_LDH = IDN2_ENCODING_ERROR, IDNA_CONTAINS_LDH = IDNA_CONTAINS_NON_LDH, IDNA_CONTAINS_MINUS = IDN2_ENCODING_ERROR, IDNA_INVALID_LENGTH = IDN2_DISALLOWED, IDNA_NO_ACE_PREFIX = IDN2_ENCODING_ERROR, IDNA_ROUNDTRIP_VERIFY_ERROR = IDN2_ENCODING_ERROR, IDNA_CONTAINS_ACE_PREFIX = IDN2_ENCODING_ERROR, IDNA_ICONV_ERROR = IDN2_ENCODING_ERROR, IDNA_MALLOC_ERROR = IDN2_MALLOC, IDNA_DLOPEN_ERROR = IDN2_MALLOC } Idna_rc; /** * Idna_flags: * @IDNA_ALLOW_UNASSIGNED: Same as %IDN2_ALLOW_UNASSIGNED * @IDNA_USE_STD3_ASCII_RULES: Same as %IDN2_USE_STD3_ASCII_RULES * * Flags for transition to / compatibility with libidn2. */ typedef enum { IDNA_ALLOW_UNASSIGNED = IDN2_ALLOW_UNASSIGNED, IDNA_USE_STD3_ASCII_RULES = IDN2_USE_STD3_ASCII_RULES } Idna_flags; #define idna_to_ascii_4i(i,l,o,f) idn2_to_ascii_4i(i,l,o,f|IDN2_NFC_INPUT|IDN2_NONTRANSITIONAL) #define idna_to_ascii_4z(i,o,f) idn2_to_ascii_4z(i,o,f|IDN2_NFC_INPUT|IDN2_NONTRANSITIONAL) #define idna_to_ascii_8z(i,o,f) idn2_to_ascii_8z(i,o,f|IDN2_NFC_INPUT|IDN2_NONTRANSITIONAL) #define idna_to_ascii_lz(i,o,f) idn2_to_ascii_lz(i,o,f|IDN2_NFC_INPUT|IDN2_NONTRANSITIONAL) #define idna_to_unicode_8z4z idn2_to_unicode_8z4z #define idna_to_unicode_4z4z idn2_to_unicode_4z4z #define idna_to_unicode_44i idn2_to_unicode_44i #define idna_to_unicode_8z8z idn2_to_unicode_8z8z #define idna_to_unicode_8zlz idn2_to_unicode_8zlz #define idna_to_unicode_lzlz idn2_to_unicode_lzlz #define idna_strerror idn2_strerror #define idn_free idn2_free #endif /* IDNA_H */ #ifdef __cplusplus } #endif #endif /* IDN2_H */
Save
cmd:
run