]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/capitst.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 Converted to C
13 *********************************************************************************
14 *//* C API TEST For COLLATOR */
19 #include "unicode/utypes.h"
21 #if !UCONFIG_NO_COLLATION
24 #define MAX_TOKEN_LEN 16
28 * error reporting utility method
31 static void doAssert(int condition
, const char *message
);
33 * Collator Class Properties
34 * ctor, dtor, createInstance, compare, getStrength/setStrength
35 * getDecomposition/setDecomposition, getDisplayName
37 void TestProperty(void);
39 * Test RuleBasedCollator and getRules
41 void TestRuleBasedColl(void);
46 void TestCompare(void);
48 * Test hashCode functionality
50 void TestHashCode(void);
52 * Tests the constructor and numerous other methods for CollationKey
54 void TestSortKey(void);
56 * test the CollationElementIterator methods
58 void TestElemIter(void);
60 * Test ucol_getAvailable and ucol_countAvailable()
62 void TestGetAll(void);
64 * Test ucol_GetDefaultRules ()
65 void TestGetDefaultRules(void);
68 void TestDecomposition(void);
70 * Test ucol_safeClone ()
72 void TestSafeClone(void);
75 * Test getting bounds for a sortkey
77 void TestBounds(void);
80 * Test ucol_getLocale function
82 void TestGetLocale(void);
85 * Test buffer overrun while having smaller buffer for sortkey (j1865)
87 void TestSortKeyBufferOverrun(void);
89 * Test getting and setting of attributes
91 void TestGetSetAttr(void);
95 void TestGetTailoredSet(void);
100 void TestMergeSortKeys(void);
103 * utility function, defined in cmsccoll.c
105 void genericLocaleStarter(const char *locale
, const char *s
[], uint32_t size
);
109 * test short string and collator identifier functions
111 static void TestShortString(void);
114 * test getContractions and getUnsafeSet
116 static void TestGetContractionsAndUnsafes(void);
119 #endif /* #if !UCONFIG_NO_COLLATION */