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