Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/usr/include
File: idna.h
/* idna.h --- Prototypes for Internationalized Domain Name library.
[0] Fix | Delete
Copyright (C) 2002-2016 Simon Josefsson
[1] Fix | Delete
[2] Fix | Delete
This file is part of GNU Libidn.
[3] Fix | Delete
[4] Fix | Delete
GNU Libidn is free software: you can redistribute it and/or
[5] Fix | Delete
modify it under the terms of either:
[6] Fix | Delete
[7] Fix | Delete
* the GNU Lesser General Public License as published by the Free
[8] Fix | Delete
Software Foundation; either version 3 of the License, or (at
[9] Fix | Delete
your option) any later version.
[10] Fix | Delete
[11] Fix | Delete
or
[12] Fix | Delete
[13] Fix | Delete
* the GNU General Public License as published by the Free
[14] Fix | Delete
Software Foundation; either version 2 of the License, or (at
[15] Fix | Delete
your option) any later version.
[16] Fix | Delete
[17] Fix | Delete
or both in parallel, as here.
[18] Fix | Delete
[19] Fix | Delete
GNU Libidn is distributed in the hope that it will be useful,
[20] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[21] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[22] Fix | Delete
General Public License for more details.
[23] Fix | Delete
[24] Fix | Delete
You should have received copies of the GNU General Public License and
[25] Fix | Delete
the GNU Lesser General Public License along with this program. If
[26] Fix | Delete
not, see <http://www.gnu.org/licenses/>. */
[27] Fix | Delete
[28] Fix | Delete
#ifndef IDNA_H
[29] Fix | Delete
# define IDNA_H
[30] Fix | Delete
[31] Fix | Delete
# ifndef IDNAPI
[32] Fix | Delete
# if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
[33] Fix | Delete
# define IDNAPI __attribute__((__visibility__("default")))
[34] Fix | Delete
# elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
[35] Fix | Delete
# define IDNAPI __declspec(dllexport)
[36] Fix | Delete
# elif defined _MSC_VER && ! defined LIBIDN_STATIC
[37] Fix | Delete
# define IDNAPI __declspec(dllimport)
[38] Fix | Delete
# else
[39] Fix | Delete
# define IDNAPI
[40] Fix | Delete
# endif
[41] Fix | Delete
# endif
[42] Fix | Delete
[43] Fix | Delete
# include <stddef.h> /* size_t */
[44] Fix | Delete
# include <idn-int.h> /* uint32_t */
[45] Fix | Delete
[46] Fix | Delete
# ifdef __cplusplus
[47] Fix | Delete
extern "C"
[48] Fix | Delete
{
[49] Fix | Delete
# endif
[50] Fix | Delete
[51] Fix | Delete
/* Error codes. */
[52] Fix | Delete
typedef enum
[53] Fix | Delete
{
[54] Fix | Delete
IDNA_SUCCESS = 0,
[55] Fix | Delete
IDNA_STRINGPREP_ERROR = 1,
[56] Fix | Delete
IDNA_PUNYCODE_ERROR = 2,
[57] Fix | Delete
IDNA_CONTAINS_NON_LDH = 3,
[58] Fix | Delete
/* Workaround typo in earlier versions. */
[59] Fix | Delete
IDNA_CONTAINS_LDH = IDNA_CONTAINS_NON_LDH,
[60] Fix | Delete
IDNA_CONTAINS_MINUS = 4,
[61] Fix | Delete
IDNA_INVALID_LENGTH = 5,
[62] Fix | Delete
IDNA_NO_ACE_PREFIX = 6,
[63] Fix | Delete
IDNA_ROUNDTRIP_VERIFY_ERROR = 7,
[64] Fix | Delete
IDNA_CONTAINS_ACE_PREFIX = 8,
[65] Fix | Delete
IDNA_ICONV_ERROR = 9,
[66] Fix | Delete
/* Internal errors. */
[67] Fix | Delete
IDNA_MALLOC_ERROR = 201,
[68] Fix | Delete
IDNA_DLOPEN_ERROR = 202
[69] Fix | Delete
} Idna_rc;
[70] Fix | Delete
[71] Fix | Delete
/* IDNA flags */
[72] Fix | Delete
typedef enum
[73] Fix | Delete
{
[74] Fix | Delete
IDNA_ALLOW_UNASSIGNED = 0x0001,
[75] Fix | Delete
IDNA_USE_STD3_ASCII_RULES = 0x0002
[76] Fix | Delete
} Idna_flags;
[77] Fix | Delete
[78] Fix | Delete
# ifndef IDNA_ACE_PREFIX
[79] Fix | Delete
# define IDNA_ACE_PREFIX "xn--"
[80] Fix | Delete
# endif
[81] Fix | Delete
[82] Fix | Delete
extern IDNAPI const char *idna_strerror (Idna_rc rc);
[83] Fix | Delete
[84] Fix | Delete
/* Core functions */
[85] Fix | Delete
extern IDNAPI int idna_to_ascii_4i (const uint32_t * in, size_t inlen,
[86] Fix | Delete
char *out, int flags);
[87] Fix | Delete
extern IDNAPI int idna_to_unicode_44i (const uint32_t * in, size_t inlen,
[88] Fix | Delete
uint32_t * out, size_t * outlen,
[89] Fix | Delete
int flags);
[90] Fix | Delete
[91] Fix | Delete
/* Wrappers that handle several labels */
[92] Fix | Delete
[93] Fix | Delete
extern IDNAPI int idna_to_ascii_4z (const uint32_t * input,
[94] Fix | Delete
char **output, int flags);
[95] Fix | Delete
[96] Fix | Delete
extern IDNAPI int idna_to_ascii_8z (const char *input, char **output,
[97] Fix | Delete
int flags);
[98] Fix | Delete
[99] Fix | Delete
extern IDNAPI int idna_to_ascii_lz (const char *input, char **output,
[100] Fix | Delete
int flags);
[101] Fix | Delete
[102] Fix | Delete
extern IDNAPI int idna_to_unicode_4z4z (const uint32_t * input,
[103] Fix | Delete
uint32_t ** output, int flags);
[104] Fix | Delete
[105] Fix | Delete
extern IDNAPI int idna_to_unicode_8z4z (const char *input,
[106] Fix | Delete
uint32_t ** output, int flags);
[107] Fix | Delete
[108] Fix | Delete
extern IDNAPI int idna_to_unicode_8z8z (const char *input,
[109] Fix | Delete
char **output, int flags);
[110] Fix | Delete
[111] Fix | Delete
extern IDNAPI int idna_to_unicode_8zlz (const char *input,
[112] Fix | Delete
char **output, int flags);
[113] Fix | Delete
[114] Fix | Delete
extern IDNAPI int idna_to_unicode_lzlz (const char *input,
[115] Fix | Delete
char **output, int flags);
[116] Fix | Delete
[117] Fix | Delete
# ifdef __cplusplus
[118] Fix | Delete
}
[119] Fix | Delete
# endif
[120] Fix | Delete
[121] Fix | Delete
#endif /* IDNA_H */
[122] Fix | Delete
[123] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function