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
00050
#ifndef U_HIDE_DRAFT_API
00051
00059
#define UIDNA_DEFAULT 0x0000
00060
00066
#define UIDNA_ALLOW_UNASSIGNED 0x0001
00067
00073
#define UIDNA_USE_STD3_RULES 0x0002
00074
00075
#endif
00076
00115
U_DRAFT int32_t U_EXPORT2
00116
uidna_toASCII(
const UChar* src, int32_t srcLength,
00117 UChar* dest, int32_t destCapacity,
00118 int32_t options,
00119
UParseError* parseError,
00120 UErrorCode* status);
00121
00122
00165
U_DRAFT int32_t U_EXPORT2
00166
uidna_toUnicode(
const UChar* src, int32_t srcLength,
00167 UChar* dest, int32_t destCapacity,
00168 int32_t options,
00169
UParseError* parseError,
00170 UErrorCode* status);
00171
00172
00215
U_DRAFT int32_t U_EXPORT2
00216
uidna_IDNToASCII(
const UChar* src, int32_t srcLength,
00217 UChar* dest, int32_t destCapacity,
00218 int32_t options,
00219
UParseError* parseError,
00220 UErrorCode* status);
00221
00261
U_DRAFT int32_t U_EXPORT2
00262
uidna_IDNToUnicode(
const UChar* src, int32_t srcLength,
00263 UChar* dest, int32_t destCapacity,
00264 int32_t options,
00265
UParseError* parseError,
00266 UErrorCode* status);
00267
00302
U_DRAFT int32_t U_EXPORT2
00303
uidna_compare(
const UChar *s1, int32_t length1,
00304
const UChar *s2, int32_t length2,
00305 int32_t options,
00306 UErrorCode* status);
00307
00308
#endif
00309
00310
#endif