00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef UCOLEITR_H
00017 #define UCOLEITR_H
00018
00019 #include "unicode/utypes.h"
00020
00021 #if !UCONFIG_NO_COLLATION
00022
00028 #define UCOL_NULLORDER ((int32_t)0xFFFFFFFF)
00029
00030 #include "unicode/ucol.h"
00031
00037 typedef struct UCollationElements UCollationElements;
00038
00110 U_STABLE UCollationElements* U_EXPORT2
00111 ucol_openElements(const UCollator *coll,
00112 const UChar *text,
00113 int32_t textLength,
00114 UErrorCode *status);
00115
00116
00124 U_STABLE int32_t U_EXPORT2
00125 ucol_keyHashCode(const uint8_t* key, int32_t length);
00126
00133 U_STABLE void U_EXPORT2
00134 ucol_closeElements(UCollationElements *elems);
00135
00145 U_STABLE void U_EXPORT2
00146 ucol_reset(UCollationElements *elems);
00147
00157 U_STABLE int32_t U_EXPORT2
00158 ucol_next(UCollationElements *elems, UErrorCode *status);
00159
00173 U_STABLE int32_t U_EXPORT2
00174 ucol_previous(UCollationElements *elems, UErrorCode *status);
00175
00187 U_STABLE int32_t U_EXPORT2
00188 ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
00189
00202 U_STABLE void U_EXPORT2
00203 ucol_setText( UCollationElements *elems,
00204 const UChar *text,
00205 int32_t textLength,
00206 UErrorCode *status);
00207
00217 U_STABLE int32_t U_EXPORT2
00218 ucol_getOffset(const UCollationElements *elems);
00219
00232 U_STABLE void U_EXPORT2
00233 ucol_setOffset(UCollationElements *elems,
00234 int32_t offset,
00235 UErrorCode *status);
00236
00243 U_STABLE int32_t U_EXPORT2
00244 ucol_primaryOrder (int32_t order);
00245
00252 U_STABLE int32_t U_EXPORT2
00253 ucol_secondaryOrder (int32_t order);
00254
00261 U_STABLE int32_t U_EXPORT2
00262 ucol_tertiaryOrder (int32_t order);
00263
00264 #endif
00265
00266 #endif