]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/callcoll.h
1 /********************************************************************
3 * Copyright (c) 1997-2004, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /********************************************************************************
10 * Modification History:
12 * Madhu Katragadda Ported to C
13 *********************************************************************************
16 * CollationDummyTest is a third level test class. This tests creation of
17 * a customized collator object. For example, number 1 to be sorted
18 * equlivalent to word 'one'.
23 #include "unicode/utypes.h"
24 #include "unicode/ucoleitr.h"
26 #if !UCONFIG_NO_COLLATION
30 #define RULE_BUFFER_LEN 8192
33 /* tests comparison of custom collation with different strengths */
34 void doTest(UCollator
*, const UChar
* source
, const UChar
* target
, UCollationResult result
);
35 /* verify that iterating forward and backwards over the string yields same CEs */
36 void backAndForth(UCollationElements
*iter
);
37 /* gets an array of CEs for a string in UCollationElements iterator. */
38 int32_t* getOrders(UCollationElements
*iter
, int32_t *orderLength
);
40 void genericOrderingTestWithResult(UCollator
*coll
, const char *s
[], uint32_t size
, UCollationResult result
);
41 void genericOrderingTest(UCollator
*coll
, const char *s
[], uint32_t size
);
42 void genericLocaleStarter(const char *locale
, const char *s
[], uint32_t size
);
43 void genericLocaleStarterWithResult(const char *locale
, const char *s
[], uint32_t size
, UCollationResult result
);
44 void genericLocaleStarterWithOptions(const char *locale
, const char *s
[], uint32_t size
, const UColAttribute
*attrs
, const UColAttributeValue
*values
, uint32_t attsize
);
45 void genericRulesTestWithResult(const char *rules
, const char *s
[], uint32_t size
, UCollationResult result
);
46 void genericRulesStarter(const char *rules
, const char *s
[], uint32_t size
);
47 UBool
hasCollationElements(const char *locName
);
50 #endif /* #if !UCONFIG_NO_COLLATION */