X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..635ab21dab8439adcb4398246a23211b9a46cc1a:/icuSources/test/cintltst/callcoll.h diff --git a/icuSources/test/cintltst/callcoll.h b/icuSources/test/cintltst/callcoll.h index e7cb2a2a..70cf316a 100644 --- a/icuSources/test/cintltst/callcoll.h +++ b/icuSources/test/cintltst/callcoll.h @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2001, International Business Machines Corporation and + * Copyright (c) 1997-2004, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ /******************************************************************************** @@ -21,15 +21,30 @@ #define _CALLCOLLTST #include "unicode/utypes.h" +#include "unicode/ucoleitr.h" #if !UCONFIG_NO_COLLATION #include "cintltst.h" +#define RULE_BUFFER_LEN 8192 /* tests comparison of custom collation with different strengths */ void doTest(UCollator*, const UChar* source, const UChar* target, UCollationResult result); +/* verify that iterating forward and backwards over the string yields same CEs */ +void backAndForth(UCollationElements *iter); +/* gets an array of CEs for a string in UCollationElements iterator. */ +int32_t* getOrders(UCollationElements *iter, int32_t *orderLength); + +void genericOrderingTestWithResult(UCollator *coll, const char *s[], uint32_t size, UCollationResult result); +void genericOrderingTest(UCollator *coll, const char *s[], uint32_t size); +void genericLocaleStarter(const char *locale, const char *s[], uint32_t size); +void genericLocaleStarterWithResult(const char *locale, const char *s[], uint32_t size, UCollationResult result); +void genericLocaleStarterWithOptions(const char *locale, const char *s[], uint32_t size, const UColAttribute *attrs, const UColAttributeValue *values, uint32_t attsize); +void genericRulesTestWithResult(const char *rules, const char *s[], uint32_t size, UCollationResult result); +void genericRulesStarter(const char *rules, const char *s[], uint32_t size); +UBool hasCollationElements(const char *locName); #endif /* #if !UCONFIG_NO_COLLATION */