]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/test/cintltst/cg7coll.h
ICU-551.51.4.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cg7coll.h
... / ...
CommitLineData
1/********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2014, 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#include "cmemory.h"
43
44#if !UCONFIG_NO_COLLATION
45
46#include "cintltst.h"
47
48#define MAX_TOKEN_LEN 16
49#define TESTLOCALES 12
50#define FIXEDTESTSET 15
51#define TOTALTESTSET 30
52
53 /* perform test for G7 locales */
54 static void TestG7Locales(void);
55
56 /* perform test with added rules " & Z < p, P" */
57 static void TestDemo1(void);
58
59 /* perorm test with added rules "& C < ch , cH, Ch, CH" */
60 static void TestDemo2(void);
61
62 /* perform test with added rules */
63 /* "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'" */
64 static void TestDemo3(void);
65
66 /* perform test with added rules */
67 /* " & aa ; a'-' & ee ; e'-' & ii ; i'-' & oo ; o'-' & uu ; u'-' " */
68 static void TestDemo4(void);
69
70#endif /* #if !UCONFIG_NO_COLLATION */
71
72#endif