]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/capitst.h
1 /********************************************************************
2 * Copyright (c) 1997-2009 International Business Machines
3 * Corporation and others. All Rights Reserved.
4 ********************************************************************/
5 /********************************************************************************
9 * Modification History:
11 * Madhu Katragadda Converted to C
12 * Brian Rower Added TestOpenVsOpenRules
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 ucol_open() vs. ucol_openRules()
83 void TestOpenVsOpenRules(void);
86 * Test getting bounds for a sortkey
88 void TestBounds(void);
91 * Test ucol_getLocale function
93 void TestGetLocale(void);
96 * Test buffer overrun while having smaller buffer for sortkey (j1865)
98 void TestSortKeyBufferOverrun(void);
100 * Test getting and setting of attributes
102 void TestGetSetAttr(void);
104 * Test getTailoredSet
106 void TestGetTailoredSet(void);
111 void TestMergeSortKeys(void);
114 * test short string and collator identifier functions
116 static void TestShortString(void);
119 * test getContractions and getUnsafeSet
121 static void TestGetContractionsAndUnsafes(void);
124 * Test funny stuff with open binary
126 static void TestOpenBinary(void);
129 * Test getKeywordValuesForLocale API
131 static void TestGetKeywordValuesForLocale(void);
132 #endif /* #if !UCONFIG_NO_COLLATION */