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
00020 #include "unicode/utypes.h"
00053 #if !UCONFIG_NO_IDNA
00054
00055 #include "unicode/parseerr.h"
00060 typedef struct UStringPrepProfile UStringPrepProfile;
00061
00062
00069 #define USPREP_DEFAULT 0x0000
00070
00077 #define USPREP_ALLOW_UNASSIGNED 0x0001
00078
00079
00080
00096 U_CAPI UStringPrepProfile* U_EXPORT2
00097 usprep_open(const char* path,
00098 const char* fileName,
00099 UErrorCode* status);
00100
00101
00107 U_CAPI void U_EXPORT2
00108 usprep_close(UStringPrepProfile* profile);
00109
00110
00140 U_CAPI int32_t U_EXPORT2
00141 usprep_prepare( const UStringPrepProfile* prep,
00142 const UChar* src, int32_t srcLength,
00143 UChar* dest, int32_t destCapacity,
00144 int32_t options,
00145 UParseError* parseError,
00146 UErrorCode* status );
00147
00148
00149 #endif
00150
00151 #endif