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