]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cg7coll.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 1997-2014, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
12 * Modification History:
14 * Madhu Katragadda Converted to C
15 *********************************************************************************/
17 * G7CollationTest is a third level test class. This test performs the examples
18 * mentioned on the IBM Java international demos web site.
19 * Sample Rules: & Z < p , P
20 * Effect : Making P sort after Z.
22 * Sample Rules: & c < ch , cH, Ch, CH
23 * Effect : As well as adding sequences of characters that act as a single character (this is
24 * known as contraction), you can also add characters that act like a sequence of
25 * characters (this is known as expansion).
27 * Sample Rules: & Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'
28 * Effect : Expansion and contraction can actually be combined.
30 * Sample Rules: & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-'
31 * Effect : sorted sequence as the following,
43 #include "unicode/utypes.h"
46 #if !UCONFIG_NO_COLLATION
50 #define MAX_TOKEN_LEN 16
51 #define TESTLOCALES 12
52 #define FIXEDTESTSET 15
53 #define TOTALTESTSET 30
55 /* perform test for G7 locales */
56 static void TestG7Locales(void);
58 /* perform test with added rules " & Z < p, P" */
59 static void TestDemo1(void);
61 /* perorm test with added rules "& C < ch , cH, Ch, CH" */
62 static void TestDemo2(void);
64 /* perform test with added rules */
65 /* "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'" */
66 static void TestDemo3(void);
68 /* perform test with added rules */
69 /* " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' " */
70 static void TestDemo4(void);
72 #endif /* #if !UCONFIG_NO_COLLATION */