00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef UCOLEITR_H
00019 #define UCOLEITR_H
00020
00021 #include "unicode/utypes.h"
00022
00023 #if !UCONFIG_NO_COLLATION
00024
00030 #define UCOL_NULLORDER ((int32_t)0xFFFFFFFF)
00031
00032 #include "unicode/ucol.h"
00033
00039 typedef struct UCollationElements UCollationElements;
00040
00112 U_STABLE UCollationElements* U_EXPORT2
00113 ucol_openElements(const UCollator *coll,
00114 const UChar *text,
00115 int32_t textLength,
00116 UErrorCode *status);
00117
00118
00126 U_STABLE int32_t U_EXPORT2
00127 ucol_keyHashCode(const uint8_t* key, int32_t length);
00128
00135 U_STABLE void U_EXPORT2
00136 ucol_closeElements(UCollationElements *elems);
00137
00147 U_STABLE void U_EXPORT2
00148 ucol_reset(UCollationElements *elems);
00149
00159 U_STABLE int32_t U_EXPORT2
00160 ucol_next(UCollationElements *elems, UErrorCode *status);
00161
00175 U_STABLE int32_t U_EXPORT2
00176 ucol_previous(UCollationElements *elems, UErrorCode *status);
00177
00189 U_STABLE int32_t U_EXPORT2
00190 ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
00191
00204 U_STABLE void U_EXPORT2
00205 ucol_setText( UCollationElements *elems,
00206 const UChar *text,
00207 int32_t textLength,
00208 UErrorCode *status);
00209
00219 U_STABLE int32_t U_EXPORT2
00220 ucol_getOffset(const UCollationElements *elems);
00221
00234 U_STABLE void U_EXPORT2
00235 ucol_setOffset(UCollationElements *elems,
00236 int32_t offset,
00237 UErrorCode *status);
00238
00245 U_STABLE int32_t U_EXPORT2
00246 ucol_primaryOrder (int32_t order);
00247
00254 U_STABLE int32_t U_EXPORT2
00255 ucol_secondaryOrder (int32_t order);
00256
00263 U_STABLE int32_t U_EXPORT2
00264 ucol_tertiaryOrder (int32_t order);
00265
00266 #endif
00267
00268 #endif