ICU 4.8.1.1  4.8.1.1
ucoleitr.h
Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *   Copyright (C) 2001-2009, International Business Machines
00004 *   Corporation and others.  All Rights Reserved.
00005 *******************************************************************************
00006 *
00007 * File ucoleitr.cpp
00008 *
00009 * Modification History:
00010 *
00011 * Date        Name        Description
00012 * 02/15/2001  synwee      Modified all methods to process its own function 
00013 *                         instead of calling the equivalent c++ api (coleitr.h)
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 
00124 
00132 U_STABLE int32_t U_EXPORT2 
00133 ucol_keyHashCode(const uint8_t* key, int32_t length);
00134 
00141 U_STABLE void U_EXPORT2 
00142 ucol_closeElements(UCollationElements *elems);
00143 
00153 U_STABLE void U_EXPORT2 
00154 ucol_reset(UCollationElements *elems);
00155 
00167 U_INTERNAL void U_EXPORT2
00168 ucol_forceHanImplicit(UCollationElements *elems, UErrorCode *status);
00169 
00179 U_STABLE int32_t U_EXPORT2 
00180 ucol_next(UCollationElements *elems, UErrorCode *status);
00181 
00198 U_STABLE int32_t U_EXPORT2 
00199 ucol_previous(UCollationElements *elems, UErrorCode *status);
00200 
00214 U_INTERNAL int64_t U_EXPORT2
00215 ucol_nextProcessed(UCollationElements *elems, int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
00216 
00237 U_INTERNAL int64_t U_EXPORT2
00238 ucol_previousProcessed(UCollationElements *elems, int32_t *ixLow, int32_t *ixHigh, UErrorCode *status);
00239 
00251 U_STABLE int32_t U_EXPORT2 
00252 ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
00253 
00266 U_STABLE void U_EXPORT2 
00267 ucol_setText(      UCollationElements *elems, 
00268              const UChar              *text,
00269                    int32_t            textLength,
00270                    UErrorCode         *status);
00271 
00281 U_STABLE int32_t U_EXPORT2 
00282 ucol_getOffset(const UCollationElements *elems);
00283 
00296 U_STABLE void U_EXPORT2 
00297 ucol_setOffset(UCollationElements *elems,
00298                int32_t        offset,
00299                UErrorCode         *status);
00300 
00307 U_STABLE int32_t U_EXPORT2
00308 ucol_primaryOrder (int32_t order); 
00309 
00316 U_STABLE int32_t U_EXPORT2
00317 ucol_secondaryOrder (int32_t order); 
00318 
00325 U_STABLE int32_t U_EXPORT2
00326 ucol_tertiaryOrder (int32_t order); 
00327 
00328 #endif /* #if !UCONFIG_NO_COLLATION */
00329 
00330 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines