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
00057 #define UIDNA_DEFAULT 0x0000
00058
00064 #define UIDNA_ALLOW_UNASSIGNED 0x0001
00065
00071 #define UIDNA_USE_STD3_RULES 0x0002
00072
00111
U_CAPI int32_t U_EXPORT2
00112
uidna_toASCII(
const UChar* src, int32_t srcLength,
00113
UChar* dest, int32_t destCapacity,
00114 int32_t options,
00115
UParseError* parseError,
00116
UErrorCode* status);
00117
00118
00161
U_CAPI int32_t U_EXPORT2
00162
uidna_toUnicode(
const UChar* src, int32_t srcLength,
00163
UChar* dest, int32_t destCapacity,
00164 int32_t options,
00165
UParseError* parseError,
00166
UErrorCode* status);
00167
00168
00211
U_CAPI int32_t U_EXPORT2
00212
uidna_IDNToASCII(
const UChar* src, int32_t srcLength,
00213
UChar* dest, int32_t destCapacity,
00214 int32_t options,
00215
UParseError* parseError,
00216
UErrorCode* status);
00217
00257
U_CAPI int32_t U_EXPORT2
00258
uidna_IDNToUnicode(
const UChar* src, int32_t srcLength,
00259
UChar* dest, int32_t destCapacity,
00260 int32_t options,
00261
UParseError* parseError,
00262
UErrorCode* status);
00263
00298
U_CAPI int32_t U_EXPORT2
00299
uidna_compare(
const UChar *s1, int32_t length1,
00300
const UChar *s2, int32_t length2,
00301 int32_t options,
00302
UErrorCode* status);
00303
00304
#endif
00305
00306
#endif