Imported Upstream version 58.1
[platform/upstream/icu.git] / source / test / intltest / encoll.h
1 // Copyright (C) 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-2006, International Business Machines Corporation and
6  * others. All Rights Reserved.
7  ********************************************************************/
8
9 /**
10  * CollationEnglishTest is a third level test class.  This tests the locale
11  * specific primary, secondary and tertiary rules.  For example, the ignorable
12  * character '-' in string "black-bird".  The en_US locale uses the default
13  * collation rules as its sorting sequence.
14  */
15
16 #ifndef _ENCOLL
17 #define _ENCOLL
18
19 #include "unicode/utypes.h"
20
21 #if !UCONFIG_NO_COLLATION
22
23 #include "tscoll.h"
24
25 class CollationEnglishTest: public IntlTestCollator {
26 public:
27     // If this is too small for the test data, just increase it.
28     // Just don't make it too large, otherwise the executable will get too big
29     enum EToken_Len { MAX_TOKEN_LEN = 16 };
30
31     CollationEnglishTest();
32     virtual ~CollationEnglishTest();
33     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
34
35     // performs test with strength PRIMARY
36     void TestPrimary(/* char* par */);
37
38     // perform test with strength SECONDARY
39     void TestSecondary(/* char* par */);
40
41     // perform test with strength TERTIARY
42     void TestTertiary(/* char* par */);
43
44 private:
45     Collator *myCollation;
46 };
47
48 #endif /* #if !UCONFIG_NO_COLLATION */
49
50 #endif