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
00116 U_CAPI UCollationElements* U_EXPORT2
00117 ucol_openElements(const UCollator *coll,
00118 const UChar *text,
00119 int32_t textLength,
00120 UErrorCode *status);
00121
00129 U_CAPI int32_t U_EXPORT2
00130 ucol_keyHashCode(const uint8_t* key, int32_t length);
00131
00138 U_CAPI void U_EXPORT2
00139 ucol_closeElements(UCollationElements *elems);
00140
00150 U_CAPI void U_EXPORT2
00151 ucol_reset(UCollationElements *elems);
00152
00162 U_CAPI int32_t U_EXPORT2
00163 ucol_next(UCollationElements *elems, UErrorCode *status);
00164
00178 U_CAPI int32_t U_EXPORT2
00179 ucol_previous(UCollationElements *elems, UErrorCode *status);
00180
00192 U_CAPI int32_t U_EXPORT2
00193 ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
00194
00212 U_CAPI void U_EXPORT2
00213 ucol_setText( UCollationElements *elems,
00214 const UChar *text,
00215 int32_t textLength,
00216 UErrorCode *status);
00217
00227 U_CAPI int32_t U_EXPORT2
00228 ucol_getOffset(const UCollationElements *elems);
00229
00242 U_CAPI void U_EXPORT2
00243 ucol_setOffset(UCollationElements *elems,
00244 int32_t offset,
00245 UErrorCode *status);
00246
00253 U_CAPI int32_t U_EXPORT2
00254 ucol_primaryOrder (int32_t order);
00255
00262 U_CAPI int32_t U_EXPORT2
00263 ucol_secondaryOrder (int32_t order);
00264
00271 U_CAPI int32_t U_EXPORT2
00272 ucol_tertiaryOrder (int32_t order);
00273
00274 #endif
00275
00276 #endif