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
00036 #define UCOL_PROCESSED_NULLORDER ((int64_t)U_INT64_MAX)
00037
00038 #include "unicode/ucol.h"
00039
00045 typedef struct UCollationElements UCollationElements;
00046
00118 U_STABLE UCollationElements* U_EXPORT2
00119 ucol_openElements(const UCollator *coll,
00120 const UChar *text,
00121 int32_t textLength,
00122 UErrorCode *status);
00123
00131 U_STABLE int32_t U_EXPORT2
00132 ucol_keyHashCode(const uint8_t* key, int32_t length);
00133
00140 U_STABLE void U_EXPORT2
00141 ucol_closeElements(UCollationElements *elems);
00142
00152 U_STABLE void U_EXPORT2
00153 ucol_reset(UCollationElements *elems);
00154
00164 U_STABLE int32_t U_EXPORT2
00165 ucol_next(UCollationElements *elems, UErrorCode *status);
00166
00183 U_STABLE int32_t U_EXPORT2
00184 ucol_previous(UCollationElements *elems, UErrorCode *status);
00185
00199 U_INTERNAL int64_t U_EXPORT2
00200 ucol_nextProcessed(UCollationElements *elems, int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
00201
00222 U_INTERNAL int64_t U_EXPORT2
00223 ucol_previousProcessed(UCollationElements *elems, int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
00224
00236 U_STABLE int32_t U_EXPORT2
00237 ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
00238
00251 U_STABLE void U_EXPORT2
00252 ucol_setText( UCollationElements *elems,
00253 const UChar *text,
00254 int32_t textLength,
00255 UErrorCode *status);
00256
00266 U_STABLE int32_t U_EXPORT2
00267 ucol_getOffset(const UCollationElements *elems);
00268
00281 U_STABLE void U_EXPORT2
00282 ucol_setOffset(UCollationElements *elems,
00283 int32_t offset,
00284 UErrorCode *status);
00285
00292 U_STABLE int32_t U_EXPORT2
00293 ucol_primaryOrder (int32_t order);
00294
00301 U_STABLE int32_t U_EXPORT2
00302 ucol_secondaryOrder (int32_t order);
00303
00310 U_STABLE int32_t U_EXPORT2
00311 ucol_tertiaryOrder (int32_t order);
00312
00313 #endif
00314
00315 #endif