Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

uidna.h

Go to the documentation of this file.
00001 /*
00002  *******************************************************************************
00003  *
00004  *   Copyright (C) 2003, 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   
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 /* #if !UCONFIG_NO_IDNA */
00305 
00306 #endif

Generated on Wed Sep 3 17:47:09 2003 for ICU 2.6 by doxygen 1.3.2