#include "unicode/utypes.h"
#include "unicode/parseerr.h"
Go to the source code of this file.
Defines | |
#define | USPREP_DEFAULT 0x0000 |
Option to prohibit processing of unassigned code points in the input. | |
#define | USPREP_ALLOW_UNASSIGNED 0x0001 |
Option to allow processing of unassigned code points in the input. | |
Typedefs | |
typedef UStringPrepProfile | UStringPrepProfile |
The StringPrep profile ICU 2.8. | |
Functions | |
U_CAPI UStringPrepProfile *U_EXPORT2 | usprep_open (const char *path, const char *fileName, UErrorCode *status) |
Creates a StringPrep profile from the data file. | |
U_CAPI void U_EXPORT2 | usprep_close (UStringPrepProfile *profile) |
Closes the profile. | |
U_CAPI int32_t U_EXPORT2 | 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. |
StringPrep prepares Unicode strings for use in network protocols. Profiles of StingPrep are set of rules and data according to with the Unicode Strings are prepared. Each profiles contains tables which describe how a code point should be treated. The tables are broadly classied into
The procedure for preparing Unicode strings:
|
Option to allow processing of unassigned code points in the input.
|
|
Option to prohibit processing of unassigned code points in the input.
|
|
Closes the profile.
|
|
Creates a StringPrep profile from the data file.
|
|
Prepare the input buffer for use in applications with the given profile. This operation maps, normalizes(NFKC), checks for prohited and BiDi characters in the order defined by RFC 3454 depending on the options specified in the profile.
|