Go to the documentation of this file.
29 #if U_SHOW_CPLUSPLUS_API
31 #endif // U_SHOW_CPLUSPLUS_API
82 #define USPREP_DEFAULT 0x0000
90 #define USPREP_ALLOW_UNASSIGNED 0x0001
189 const char* fileName,
215 #if U_SHOW_CPLUSPLUS_API
265 const UChar* src, int32_t srcLength,
266 UChar* dest, int32_t destCapacity,
U_CAPI void usprep_close(UStringPrepProfile *profile)
Closes the profile.
@ USPREP_RFC3530_NFS4_MIXED_PREP_PREFIX
RFC3530 nfs4_mixed_prep for prefix.
@ USPREP_RFC3530_NFS4_CIS_PREP
RFC3530 nfs4_cis_prep.
C API: Parse Error Information.
@ USPREP_RFC3722_ISCSI
RFC3722 iSCSI.
@ USPREP_RFC4011_MIB
RFC4011 Policy MIB Stringprep.
@ USPREP_RFC3530_NFS4_MIXED_PREP_SUFFIX
RFC3530 nfs4_mixed_prep for suffix.
@ USPREP_RFC4518_LDAP
RFC4518 LDAP.
Basic definitions for ICU, for both C and C++ APIs.
U_CAPI 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.
@ USPREP_RFC4013_SASLPREP
RFC4013 SASLprep.
@ USPREP_RFC3920_NODEPREP
RFC3920 XMPP Nodeprep.
A UParseError struct is used to returned detailed information about parsing errors.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
struct UStringPrepProfile UStringPrepProfile
StringPrep API implements the StingPrep framework as described by RFC 3454.
"Smart pointer" class, closes a UStringPrepProfile via usprep_close().
@ USPREP_RFC3530_NFS4_CS_PREP
RFC3530 nfs4_cs_prep.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
@ USPREP_RFC3530_NFS4_CS_PREP_CI
RFC3530 nfs4_cs_prep with case insensitive option.
U_CAPI UStringPrepProfile * usprep_openByType(UStringPrepProfileType type, UErrorCode *status)
Creates a StringPrep profile for the specified profile type.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
U_CAPI UStringPrepProfile * usprep_open(const char *path, const char *fileName, UErrorCode *status)
Creates a StringPrep profile from the data file.
@ USPREP_RFC3920_RESOURCEPREP
RFC3920 XMPP Resourceprep.
char16_t UChar
The base type for UTF-16 code units and pointers.
@ USPREP_RFC4505_TRACE
RFC4505 trace.
#define U_CAPI
This is used to declare a function as a public ICU C API.
@ USPREP_RFC4518_LDAP_CI
RFC4518 LDAP for case ignore, numeric and stored prefix matching rules.
@ USPREP_RFC3491_NAMEPREP
RFC3491 Nameprep.
UStringPrepProfileType
enums for the standard stringprep profile types supported by usprep_openByType.