ucoleitr.h

Go to the documentation of this file.
00001 /*
00002 *******************************************************************************
00003 *   Copyright (C) 2001-2004, 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 
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 
00123 U_STABLE int32_t U_EXPORT2 
00124 ucol_keyHashCode(const uint8_t* key, int32_t length);
00125 
00132 U_STABLE void U_EXPORT2 
00133 ucol_closeElements(UCollationElements *elems);
00134 
00144 U_STABLE void U_EXPORT2 
00145 ucol_reset(UCollationElements *elems);
00146 
00156 U_STABLE int32_t U_EXPORT2 
00157 ucol_next(UCollationElements *elems, UErrorCode *status);
00158 
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 /* #if !UCONFIG_NO_COLLATION */
00267 
00268 #endif

Generated on Mon Aug 13 07:17:24 2007 for ICU 3.6 by  doxygen 1.5.2