uidna.h

Go to the documentation of this file.
00001 /*
00002  *******************************************************************************
00003  *
00004  *   Copyright (C) 2003-2007, 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 
00114 U_STABLE int32_t U_EXPORT2
00115 uidna_toASCII(const UChar* src, int32_t srcLength, 
00116               UChar* dest, int32_t destCapacity,
00117               int32_t options,
00118               UParseError* parseError,
00119               UErrorCode* status);
00120 
00121 
00165 U_STABLE 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 
00216 U_STABLE int32_t U_EXPORT2
00217 uidna_IDNToASCII(  const UChar* src, int32_t srcLength,
00218                    UChar* dest, int32_t destCapacity,
00219                    int32_t options,
00220                    UParseError* parseError,
00221                    UErrorCode* status);
00222 
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 /* #if !UCONFIG_NO_IDNA */
00311 
00312 #endif

Generated on Thu Dec 13 09:30:33 2007 for ICU 3.8 by  doxygen 1.5.4