]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cg7coll.h
1 /********************************************************************
3 * Copyright (c) 1997-2014, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6 /********************************************************************************
10 * Modification History:
12 * Madhu Katragadda Converted to C
13 *********************************************************************************/
15 * G7CollationTest is a third level test class. This test performs the examples
16 * mentioned on the IBM Java international demos web site.
17 * Sample Rules: & Z < p , P
18 * Effect : Making P sort after Z.
20 * Sample Rules: & c < ch , cH, Ch, CH
21 * Effect : As well as adding sequences of characters that act as a single character (this is
22 * known as contraction), you can also add characters that act like a sequence of
23 * characters (this is known as expansion).
25 * Sample Rules: & Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'
26 * Effect : Expansion and contraction can actually be combined.
28 * Sample Rules: & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-'
29 * Effect : sorted sequence as the following,
41 #include "unicode/utypes.h"
44 #if !UCONFIG_NO_COLLATION
48 #define MAX_TOKEN_LEN 16
49 #define TESTLOCALES 12
50 #define FIXEDTESTSET 15
51 #define TOTALTESTSET 30
53 /* perform test for G7 locales */
54 static void TestG7Locales(void);
56 /* perform test with added rules " & Z < p, P" */
57 static void TestDemo1(void);
59 /* perorm test with added rules "& C < ch , cH, Ch, CH" */
60 static void TestDemo2(void);
62 /* perform test with added rules */
63 /* "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'" */
64 static void TestDemo3(void);
66 /* perform test with added rules */
67 /* " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' " */
68 static void TestDemo4(void);
70 #endif /* #if !UCONFIG_NO_COLLATION */