00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __UIDNA_H__
00018 #define __UIDNA_H__
00019
00020 #include "unicode/utypes.h"
00021
00022 #if !UCONFIG_NO_IDNA
00023
00024 #include "unicode/parseerr.h"
00025
00052 #ifndef U_HIDE_DRAFT_API
00053
00061 #define UIDNA_DEFAULT 0x0000
00062
00068 #define UIDNA_ALLOW_UNASSIGNED 0x0001
00069
00075 #define UIDNA_USE_STD3_RULES 0x0002
00076
00077 #endif
00078
00117 U_STABLE int32_t U_EXPORT2
00118 uidna_toASCII(const UChar* src, int32_t srcLength,
00119 UChar* dest, int32_t destCapacity,
00120 int32_t options,
00121 UParseError* parseError,
00122 UErrorCode* status);
00123
00124
00167 U_STABLE int32_t U_EXPORT2
00168 uidna_toUnicode(const UChar* src, int32_t srcLength,
00169 UChar* dest, int32_t destCapacity,
00170 int32_t options,
00171 UParseError* parseError,
00172 UErrorCode* status);
00173
00174
00217 U_STABLE int32_t U_EXPORT2
00218 uidna_IDNToASCII( const UChar* src, int32_t srcLength,
00219 UChar* dest, int32_t destCapacity,
00220 int32_t options,
00221 UParseError* parseError,
00222 UErrorCode* status);
00223
00263 U_STABLE int32_t U_EXPORT2
00264 uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
00265 UChar* dest, int32_t destCapacity,
00266 int32_t options,
00267 UParseError* parseError,
00268 UErrorCode* status);
00269
00304 U_STABLE int32_t U_EXPORT2
00305 uidna_compare( const UChar *s1, int32_t length1,
00306 const UChar *s2, int32_t length2,
00307 int32_t options,
00308 UErrorCode* status);
00309
00310 #endif
00311
00312 #endif