usprep.h

Go to the documentation of this file.
00001 /*
00002  *******************************************************************************
00003  *
00004  *   Copyright (C) 2003-2005, International Business Machines
00005  *   Corporation and others.  All Rights Reserved.
00006  *
00007  *******************************************************************************
00008  *   file name:  usprep.h
00009  *   encoding:   US-ASCII
00010  *   tab size:   8 (not used)
00011  *   indentation:4
00012  *
00013  *   created on: 2003jul2
00014  *   created by: Ram Viswanadha
00015  */
00016 
00017 #ifndef __USPREP_H__
00018 #define __USPREP_H__
00019 
00025 #include "unicode/utypes.h"
00058 #if !UCONFIG_NO_IDNA
00059 
00060 #include "unicode/parseerr.h"
00061 
00062 #ifndef U_HIDE_DRAFT_API
00063 
00068 typedef struct UStringPrepProfile UStringPrepProfile;
00069 
00070 
00077 #define USPREP_DEFAULT 0x0000
00078 
00085 #define USPREP_ALLOW_UNASSIGNED 0x0001
00086 
00087 
00088 #endif /*U_HIDE_DRAFT_API*/
00089 
00105 U_STABLE UStringPrepProfile* U_EXPORT2
00106 usprep_open(const char* path, 
00107             const char* fileName,
00108             UErrorCode* status);
00109 
00110 
00116 U_STABLE void U_EXPORT2
00117 usprep_close(UStringPrepProfile* profile);
00118 
00119 
00149 U_STABLE int32_t U_EXPORT2
00150 usprep_prepare(   const UStringPrepProfile* prep,
00151                   const UChar* src, int32_t srcLength, 
00152                   UChar* dest, int32_t destCapacity,
00153                   int32_t options,
00154                   UParseError* parseError,
00155                   UErrorCode* status );
00156 
00157 
00158 #endif /* #if !UCONFIG_NO_IDNA */
00159 
00160 #endif

Generated on Tue Sep 13 11:03:25 2005 for ICU 3.4 by  doxygen 1.4.4