1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
6
/********************************************************************************
10
* Modification History:
12
* Madhu Katragadda Converted to C
13
*********************************************************************************
14
*//* C API TEST For COLLATOR */
21
#define MAX_TOKEN_LEN 16
25
* error reporting utility method
28
static void doAssert(int condition, const char *message);
30
* Collator Class Properties
31
* ctor, dtor, createInstance, compare, getStrength/setStrength
32
* getDecomposition/setDecomposition, getDisplayName
34
void TestProperty(void);
36
* Test RuleBasedCollator and getRules
38
void TestRuleBasedColl(void);
43
void TestCompare(void);
45
* Test hashCode functionality
47
void TestHashCode(void);
49
* Tests the constructor and numerous other methods for CollationKey
51
void TestSortKey(void);
53
* test the CollationElementIterator methods
55
void TestElemIter(void);
57
* Test ucol_getAvailable and ucol_countAvailable()
59
void TestGetAll(void);
61
* Test ucol_GetDefaultRules ()
62
void TestGetDefaultRules(void);
65
void TestDecomposition(void);
67
* Test ucol_safeClone ()
69
void TestSafeClone(void);
72
* Test getting bounds for a sortkey
74
void TestBounds(void);
77
* Test ucol_getLocale function
79
void TestGetLocale(void);