]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/cintltst/cg7coll.h
ICU-66108.tar.gz
[apple/icu.git] / 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 /********************************************************************
4 * COPYRIGHT:
5 * Copyright (c) 1997-2014, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /********************************************************************************
9 *
10 * File CG7COLL.H
11 *
12 * Modification History:
13 * Name Description
14 * Madhu Katragadda Converted to C
15 *********************************************************************************/
16 /**
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.
21 *
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).
26 *
27 * Sample Rules: & Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'
28 * Effect : Expansion and contraction can actually be combined.
29 *
30 * Sample Rules: & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-'
31 * Effect : sorted sequence as the following,
32 * aardvark
33 * a-rdvark
34 * abbot
35 * coop
36 * co-p
37 * cop
38 */
39
40 #ifndef _CG7COLLTST
41 #define _CG7COLLTST
42
43 #include "unicode/utypes.h"
44 #include "cmemory.h"
45
46 #if !UCONFIG_NO_COLLATION
47
48 #include "cintltst.h"
49
50 #define MAX_TOKEN_LEN 16
51 #define TESTLOCALES 12
52 #define FIXEDTESTSET 15
53 #define TOTALTESTSET 30
54
55 /* perform test for G7 locales */
56 static void TestG7Locales(void);
57
58 /* perform test with added rules " & Z < p, P" */
59 static void TestDemo1(void);
60
61 /* perorm test with added rules "& C < ch , cH, Ch, CH" */
62 static void TestDemo2(void);
63
64 /* perform test with added rules */
65 /* "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'" */
66 static void TestDemo3(void);
67
68 /* perform test with added rules */
69 /* " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' " */
70 static void TestDemo4(void);
71
72 #endif /* #if !UCONFIG_NO_COLLATION */
73
74 #endif