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"
00056
00057
#ifndef U_HIDE_DRAFT_API
00058
00063
typedef struct UStringPrepProfile UStringPrepProfile;
00064
00065
00072
#define USPREP_DEFAULT 0x0000
00073
00080
#define USPREP_ALLOW_UNASSIGNED 0x0001
00081
00082
00083
#endif
00084
00100
U_DRAFT UStringPrepProfile*
U_EXPORT2
00101
usprep_open(
const char* path,
00102
const char* fileName,
00103 UErrorCode* status);
00104
00105
00111
U_DRAFT void U_EXPORT2
00112
usprep_close(UStringPrepProfile* profile);
00113
00114
00144
U_DRAFT int32_t U_EXPORT2
00145
usprep_prepare(
const UStringPrepProfile* prep,
00146
const UChar* src, int32_t srcLength,
00147 UChar* dest, int32_t destCapacity,
00148 int32_t options,
00149
UParseError* parseError,
00150 UErrorCode* status );
00151
00152
00153
#endif
00154
00155
#endif