00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00155
00156 #endif