22#if !UCONFIG_NO_NORMALIZATION
134#ifndef U_FORCE_HIDE_DEPRECATED_API
162#ifndef U_HIDE_DEPRECATED_API
196#define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
220 UChar *result, int32_t resultLength,
392 UChar *dest, int32_t destCapacity,
425 UChar *dest, int32_t destCapacity,
469 const UChar *right, int32_t rightLength,
470 UChar *dest, int32_t destCapacity,
C API for code unit iteration.
C API: Unicode Character Iteration.
#define U_DEPRECATED
This is used to declare a function as a deprecated public ICU C API
int8_t UBool
The ICU boolean type, a signed-byte integer.
char16_t UChar
The base type for UTF-16 code units and pointers.
C API: New API for Unicode Normalization.
UNormalizationCheckResult
Result values for normalization quick check functions.
@ UNORM_UNICODE_3_2
Options bit set value to select Unicode 3.2 normalization (except NormalizationCorrections).
UBool unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength, UNormalizationMode mode, int32_t options, UErrorCode *pErrorCode)
Test if a string is in a given normalization form; same as unorm_isNormalized but takes an extra opti...
int32_t unorm_previous(UCharIterator *src, UChar *dest, int32_t destCapacity, UNormalizationMode mode, int32_t options, UBool doNormalize, UBool *pNeededToNormalize, UErrorCode *pErrorCode)
Iterative normalization backward.
int32_t unorm_normalize(const UChar *source, int32_t sourceLength, UNormalizationMode mode, int32_t options, UChar *result, int32_t resultLength, UErrorCode *status)
Normalize a string.
UBool unorm_isNormalized(const UChar *src, int32_t srcLength, UNormalizationMode mode, UErrorCode *pErrorCode)
Test if a string is in a given normalization form.
int32_t unorm_concatenate(const UChar *left, int32_t leftLength, const UChar *right, int32_t rightLength, UChar *dest, int32_t destCapacity, UNormalizationMode mode, int32_t options, UErrorCode *pErrorCode)
Concatenate normalized strings, making sure that the result is normalized as well.
int32_t unorm_next(UCharIterator *src, UChar *dest, int32_t destCapacity, UNormalizationMode mode, int32_t options, UBool doNormalize, UBool *pNeededToNormalize, UErrorCode *pErrorCode)
Iterative normalization forward.
UNormalizationCheckResult unorm_quickCheck(const UChar *source, int32_t sourcelength, UNormalizationMode mode, UErrorCode *status)
Performing quick check on a string, to quickly determine if the string is in a particular normalizati...
UNormalizationCheckResult unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength, UNormalizationMode mode, int32_t options, UErrorCode *pErrorCode)
Performing quick check on a string; same as unorm_quickCheck but takes an extra options parameter lik...
UNormalizationMode
Constants for normalization modes.
@ UNORM_DEFAULT
Default normalization.
@ UNORM_NONE
No decomposition/composition.
@ UNORM_NFKD
Compatibility decomposition.
@ UNORM_NFC
Canonical decomposition followed by canonical composition.
@ UNORM_NFD
Canonical decomposition.
@ UNORM_NFKC
Compatibility decomposition followed by canonical composition.
@ UNORM_FCD
"Fast C or D" form.
@ UNORM_MODE_COUNT
One more than the highest normalization mode constant.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.