uidna.h

Go to the documentation of this file.
00001 /*
00002  *******************************************************************************
00003  *
00004  *   Copyright (C) 2003-2006, International Business Machines
00005  *   Corporation and others.  All Rights Reserved.
00006  *
00007  *******************************************************************************
00008  *   file name:  uidna.h
00009  *   encoding:   US-ASCII
00010  *   tab size:   8 (not used)
00011  *   indentation:4
00012  *
00013  *   created on: 2003feb1
00014  *   created by: Ram Viswanadha
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   
00059 #define UIDNA_DEFAULT          0x0000
00060 
00066 #define UIDNA_ALLOW_UNASSIGNED 0x0001
00067 
00073 #define UIDNA_USE_STD3_RULES   0x0002
00074 
00113 U_STABLE int32_t U_EXPORT2
00114 uidna_toASCII(const UChar* src, int32_t srcLength, 
00115               UChar* dest, int32_t destCapacity,
00116               int32_t options,
00117               UParseError* parseError,
00118               UErrorCode* status);
00119 
00120 
00163 U_STABLE int32_t U_EXPORT2
00164 uidna_toUnicode(const UChar* src, int32_t srcLength,
00165                 UChar* dest, int32_t destCapacity,
00166                 int32_t options,
00167                 UParseError* parseError,
00168                 UErrorCode* status);
00169 
00170 
00213 U_STABLE int32_t U_EXPORT2
00214 uidna_IDNToASCII(  const UChar* src, int32_t srcLength,
00215                    UChar* dest, int32_t destCapacity,
00216                    int32_t options,
00217                    UParseError* parseError,
00218                    UErrorCode* status);
00219 
00259 U_STABLE int32_t U_EXPORT2
00260 uidna_IDNToUnicode(  const UChar* src, int32_t srcLength,
00261                      UChar* dest, int32_t destCapacity,
00262                      int32_t options,
00263                      UParseError* parseError,
00264                      UErrorCode* status);
00265 
00300 U_STABLE int32_t U_EXPORT2
00301 uidna_compare(  const UChar *s1, int32_t length1,
00302                 const UChar *s2, int32_t length2,
00303                 int32_t options,
00304                 UErrorCode* status);
00305 
00306 #endif /* #if !UCONFIG_NO_IDNA */
00307 
00308 #endif

Generated on Mon Aug 13 07:17:24 2007 for ICU 3.6 by  doxygen 1.5.2