]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /******************************************************************** |
2 | * COPYRIGHT: | |
729e4ab9 | 3 | * Copyright (c) 1997-2010, International Business Machines Corporation and |
b75a7d8f A |
4 | * others. All Rights Reserved. |
5 | ********************************************************************/ | |
6 | ||
7 | #include "unicode/uniset.h" | |
8 | #include "intltest.h" | |
9 | ||
10 | /** Helper function for TestUnicodeData */ | |
374ca955 | 11 | U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context, |
b75a7d8f A |
12 | char *fields[][2], int32_t fieldCount, |
13 | UErrorCode *pErrorCode); | |
14 | ||
374ca955 | 15 | U_CFUNC void U_CALLCONV |
729e4ab9 A |
16 | derivedPropsLineFn(void *context, |
17 | char *fields[][2], int32_t fieldCount, | |
18 | UErrorCode *pErrorCode); | |
19 | ||
20 | U_NAMESPACE_BEGIN | |
21 | ||
22 | class Hashtable; | |
23 | ||
24 | U_NAMESPACE_END | |
b75a7d8f A |
25 | |
26 | /** | |
27 | * Test API and functionality of class Unicode | |
28 | **/ | |
29 | class UnicodeTest: public IntlTest { | |
30 | public: | |
31 | UnicodeTest(); | |
32 | virtual ~UnicodeTest(); | |
33 | ||
34 | void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ); | |
35 | ||
36 | void TestAdditionalProperties(); | |
46f4442e | 37 | void TestBinaryValues(); |
729e4ab9 | 38 | void TestConsistency(); |
b75a7d8f A |
39 | |
40 | private: | |
41 | ||
42 | friend void U_CALLCONV unicodeDataLineFn(void *context, | |
43 | char *fields[][2], int32_t fieldCount, | |
44 | UErrorCode *pErrorCode); | |
45 | ||
46 | friend void U_CALLCONV | |
729e4ab9 | 47 | derivedPropsLineFn(void *context, |
b75a7d8f A |
48 | char *fields[][2], int32_t fieldCount, |
49 | UErrorCode *pErrorCode); | |
50 | ||
729e4ab9 A |
51 | UnicodeSet derivedProps[30]; |
52 | U_NAMESPACE_QUALIFIER Hashtable *unknownPropertyNames; | |
b75a7d8f A |
53 | }; |
54 |