20 #if !UCONFIG_NO_NORMALIZATION
185 #define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
209 UChar *result, int32_t resultLength,
381 UChar *dest, int32_t destCapacity,
414 UChar *dest, int32_t destCapacity,
458 const UChar *right, int32_t rightLength,
459 UChar *dest, int32_t destCapacity,
468 #define UNORM_INPUT_IS_FCD 0x20000
475 #define U_COMPARE_IGNORE_CASE 0x10000
477 #ifndef U_COMPARE_CODE_POINT_ORDER
484 #define U_COMPARE_CODE_POINT_ORDER 0x8000
555 const UChar *s2, int32_t length2,
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...
"Fast C or D" form.
Options bit set value to select Unicode 3.2 normalization (except NormalizationCorrections).
UNormalizationMode
Constants for normalization modes.
Compatibility decomposition followed by canonical composition.
C API for code unit iteration.
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...
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.
C API: New API for Unicode Normalization.
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...
UBool unorm_isNormalized(const UChar *src, int32_t srcLength, UNormalizationMode mode, UErrorCode *pErrorCode)
Test if a string is in a given normalization form.
No decomposition/composition.
int32_t unorm_compare(const UChar *s1, int32_t length1, const UChar *s2, int32_t length2, uint32_t options, UErrorCode *pErrorCode)
Compare two strings for canonical equivalence.
C API: Unicode Character Iteration.
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.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
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_previous(UCharIterator *src, UChar *dest, int32_t destCapacity, UNormalizationMode mode, int32_t options, UBool doNormalize, UBool *pNeededToNormalize, UErrorCode *pErrorCode)
Iterative normalization backward.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Compatibility decomposition.
Basic definitions for ICU, for both C and C++ APIs.
One more than the highest normalization mode constant.
UNormalizationCheckResult
Result values for normalization quick check functions.
Canonical decomposition followed by canonical composition.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
int8_t UBool
The ICU boolean type.