79 #define USPREP_DEFAULT 0x0000 87 #define USPREP_ALLOW_UNASSIGNED 0x0001 186 const char* fileName,
212 #if U_SHOW_CPLUSPLUS_API 262 const UChar* src, int32_t srcLength,
263 UChar* dest, int32_t destCapacity,
RFC3530 nfs4_mixed_prep for suffix.
RFC3530 nfs4_mixed_prep for prefix.
struct UStringPrepProfile UStringPrepProfile
StringPrep API implements the StingPrep framework as described by RFC 3454.
UStringPrepProfile * usprep_openByType(UStringPrepProfileType type, UErrorCode *status)
Creates a StringPrep profile for the specified profile type.
int32_t usprep_prepare(const UStringPrepProfile *prep, const UChar *src, int32_t srcLength, UChar *dest, int32_t destCapacity, int32_t options, UParseError *parseError, UErrorCode *status)
Prepare the input buffer for use in applications with the given profile.
"Smart pointer" class, closes a UStringPrepProfile via usprep_close().
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
RFC4011 Policy MIB Stringprep.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
RFC3530 nfs4_cs_prep with case insensitive option.
void usprep_close(UStringPrepProfile *profile)
Closes the profile.
uint16_t UChar
The base type for UTF-16 code units and pointers.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
C API: Parse Error Information.
UStringPrepProfile * usprep_open(const char *path, const char *fileName, UErrorCode *status)
Creates a StringPrep profile from the data file.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
RFC3920 XMPP Resourceprep.
UStringPrepProfileType
enums for the standard stringprep profile types supported by usprep_openByType.
RFC4518 LDAP for case ignore, numeric and stored prefix matching rules.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.