]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/capitst.h
1 /********************************************************************
3 * Copyright (c) 1997-2006, 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 */
19 #include "unicode/utypes.h"
21 #if !UCONFIG_NO_COLLATION
25 #define MAX_TOKEN_LEN 16
29 * error reporting utility method
32 static void doAssert(int condition
, const char *message
);
34 * Collator Class Properties
35 * ctor, dtor, createInstance, compare, getStrength/setStrength
36 * getDecomposition/setDecomposition, getDisplayName
38 void TestProperty(void);
40 * Test RuleBasedCollator and getRules
42 void TestRuleBasedColl(void);
47 void TestCompare(void);
49 * Test hashCode functionality
51 void TestHashCode(void);
53 * Tests the constructor and numerous other methods for CollationKey
55 void TestSortKey(void);
57 * test the CollationElementIterator methods
59 void TestElemIter(void);
61 * Test ucol_getAvailable and ucol_countAvailable()
63 void TestGetAll(void);
65 * Test ucol_GetDefaultRules ()
66 void TestGetDefaultRules(void);
69 void TestDecomposition(void);
71 * Test ucol_safeClone ()
73 void TestSafeClone(void);
76 * Test ucol_cloneBinary(), ucol_openBinary()
78 void TestCloneBinary(void);
81 * Test getting bounds for a sortkey
83 void TestBounds(void);
86 * Test ucol_getLocale function
88 void TestGetLocale(void);
91 * Test buffer overrun while having smaller buffer for sortkey (j1865)
93 void TestSortKeyBufferOverrun(void);
95 * Test getting and setting of attributes
97 void TestGetSetAttr(void);
101 void TestGetTailoredSet(void);
106 void TestMergeSortKeys(void);
109 * test short string and collator identifier functions
111 static void TestShortString(void);
114 * test getContractions and getUnsafeSet
116 static void TestGetContractionsAndUnsafes(void);
119 * Test funny stuff with open binary
121 static void TestOpenBinary(void);
122 #endif /* #if !UCONFIG_NO_COLLATION */