00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UNORM_H
00011 #define UNORM_H
00012
00013 #include "unicode/utypes.h"
00014
00096 typedef enum {
00098 UCOL_NO_NORMALIZATION = 1,
00100 UCOL_DECOMP_CAN = 2,
00102 UCOL_DECOMP_COMPAT = 3,
00104 UCOL_DEFAULT_NORMALIZATION = UCOL_DECOMP_COMPAT,
00106 UCOL_DECOMP_CAN_COMP_COMPAT = 4,
00108 UCOL_DECOMP_COMPAT_COMP_CAN =5,
00110 UNORM_NONE = 1,
00112 UNORM_NFD = 2,
00114 UNORM_NFKD = 3,
00116 UNORM_NFC = 4,
00118 UNORM_DEFAULT = UNORM_NFC,
00120 UNORM_NFKC =5,
00121
00122 UNORM_MODE_COUNT,
00123
00125 UCOL_IGNORE_HANGUL = 16,
00126 UNORM_IGNORE_HANGUL = 16
00127 } UNormalizationMode;
00128
00130 typedef UNormalizationMode UNormalizationOption;
00131
00150 U_CAPI int32_t
00151 u_normalize(const UChar* source,
00152 int32_t sourceLength,
00153 UNormalizationMode mode,
00154 int32_t options,
00155 UChar* result,
00156 int32_t resultLength,
00157 UErrorCode* status);
00158
00159 #endif