34 # if defined LIBIDN_BUILDING && defined HAVE_VISIBILITY && HAVE_VISIBILITY
35 # define IDNAPI __attribute__((__visibility__("default")))
36 # elif defined LIBIDN_BUILDING && defined _MSC_VER && ! defined LIBIDN_STATIC
37 # define IDNAPI __declspec(dllexport)
38 # elif defined _MSC_VER && ! defined LIBIDN_STATIC
39 # define IDNAPI __declspec(dllimport)
46 # include <sys/types.h>
54 # define STRINGPREP_VERSION "1.29"
97 # define STRINGPREP_MAX_MAP_CHARS 4
147 # define stringprep_nameprep(in, maxlen) \
148 stringprep(in, maxlen, 0, stringprep_nameprep)
150 # define stringprep_nameprep_no_unassigned(in, maxlen) \
151 stringprep(in, maxlen, STRINGPREP_NO_UNASSIGNED, stringprep_nameprep)
160 # define stringprep_plain(in, maxlen) \
161 stringprep(in, maxlen, 0, stringprep_plain)
167 # define stringprep_kerberos5(in, maxlen) \
168 stringprep(in, maxlen, 0, stringprep_kerberos5)
176 # define stringprep_xmpp_nodeprep(in, maxlen) \
177 stringprep(in, maxlen, 0, stringprep_xmpp_nodeprep)
178 # define stringprep_xmpp_resourceprep(in, maxlen) \
179 stringprep(in, maxlen, 0, stringprep_xmpp_resourceprep)
186 # define stringprep_iscsi(in, maxlen) \
187 stringprep(in, maxlen, 0, stringprep_iscsi)
219 size_t * items_written);
223 size_t * items_written);
232 const char *to_codeset,
233 const char *from_codeset);
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_5[]
IDNAPI int stringprep_4zi(uint32_t *ucs4, size_t maxucs4len, Stringprep_profile_flags flags, const Stringprep_profile *profile)
IDNAPI uint32_t * stringprep_utf8_to_ucs4(const char *str, ssize_t len, size_t *items_written)
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_3[]
IDNAPI int stringprep_profile(const char *in, char **out, const char *profile, Stringprep_profile_flags flags)
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_7[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_4[]
IDNAPI int stringprep_4i(uint32_t *ucs4, size_t *len, size_t maxucs4len, Stringprep_profile_flags flags, const Stringprep_profile *profile)
const Stringprep_table_element * table
IDNAPI char * stringprep_convert(const char *str, const char *to_codeset, const char *from_codeset)
#define stringprep_xmpp_resourceprep(in, maxlen)
IDNAPI const Stringprep_table_element stringprep_rfc3454_B_2[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_D_1[]
IDNAPI int stringprep(char *in, size_t maxlen, Stringprep_profile_flags flags, const Stringprep_profile *profile)
IDNAPI const Stringprep_profiles stringprep_profiles[]
IDNAPI const Stringprep_profile stringprep_trace[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_1_2[]
IDNAPI char * stringprep_utf8_nfkc_normalize(const char *str, ssize_t len)
IDNAPI const Stringprep_table_element stringprep_saslprep_space_map[]
IDNAPI char * stringprep_locale_to_utf8(const char *str)
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_8[]
#define stringprep_kerberos5(in, maxlen)
IDNAPI const char * stringprep_check_version(const char *req_version)
const Stringprep_profile * tables
IDNAPI char * stringprep_utf8_to_locale(const char *str)
IDNAPI uint32_t stringprep_utf8_to_unichar(const char *p)
#define stringprep_iscsi(in, maxlen)
#define stringprep_plain(in, maxlen)
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_6[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_2_2[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_B_1[]
IDNAPI const char * stringprep_strerror(Stringprep_rc rc)
IDNAPI const Stringprep_table_element stringprep_rfc3454_D_2[]
#define STRINGPREP_MAX_MAP_CHARS
IDNAPI const char * stringprep_locale_charset(void)
#define stringprep_xmpp_nodeprep(in, maxlen)
#define stringprep_nameprep(in, maxlen)
Stringprep_profile_flags flags
IDNAPI const Stringprep_table_element stringprep_rfc3454_A_1[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_9[]
IDNAPI char * stringprep_ucs4_to_utf8(const uint32_t *str, ssize_t len, size_t *items_read, size_t *items_written)
IDNAPI const Stringprep_table_element stringprep_iscsi_prohibit[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_1_1[]
uint32_t map[STRINGPREP_MAX_MAP_CHARS]
IDNAPI const Stringprep_table_element stringprep_xmpp_nodeprep_prohibit[]
IDNAPI int stringprep_unichar_to_utf8(uint32_t c, char *outbuf)
IDNAPI const Stringprep_profile stringprep_saslprep[]
IDNAPI const Stringprep_table_element stringprep_rfc3454_C_2_1[]
Stringprep_profile_steps operation
IDNAPI const Stringprep_table_element stringprep_rfc3454_B_3[]
IDNAPI uint32_t * stringprep_ucs4_nfkc_normalize(const uint32_t *str, ssize_t len)