00001 /* 00002 ******************************************************************************* 00003 * 00004 * Copyright (C) 2003-2006, 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 00066 typedef struct UStringPrepProfile UStringPrepProfile; 00067 00068 00075 #define USPREP_DEFAULT 0x0000 00076 00083 #define USPREP_ALLOW_UNASSIGNED 0x0001 00084 00085 00101 U_STABLE UStringPrepProfile* U_EXPORT2 00102 usprep_open(const char* path, 00103 const char* fileName, 00104 UErrorCode* status); 00105 00106 00112 U_STABLE void U_EXPORT2 00113 usprep_close(UStringPrepProfile* profile); 00114 00115 00145 U_STABLE int32_t U_EXPORT2 00146 usprep_prepare( const UStringPrepProfile* prep, 00147 const UChar* src, int32_t srcLength, 00148 UChar* dest, int32_t destCapacity, 00149 int32_t options, 00150 UParseError* parseError, 00151 UErrorCode* status ); 00152 00153 00154 #endif /* #if !UCONFIG_NO_IDNA */ 00155 00156 #endif