]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/ucdtest.h
ICU-511.35.tar.gz
[apple/icu.git] / icuSources / test / intltest / ucdtest.h
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
51004dcb 3 * Copyright (c) 1997-2013, 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 11U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context,
b75a7d8f
A
12 char *fields[][2], int32_t fieldCount,
13 UErrorCode *pErrorCode);
14
374ca955 15U_CFUNC void U_CALLCONV
729e4ab9
A
16derivedPropsLineFn(void *context,
17 char *fields[][2], int32_t fieldCount,
18 UErrorCode *pErrorCode);
19
20U_NAMESPACE_BEGIN
21
22class Hashtable;
23
24U_NAMESPACE_END
b75a7d8f
A
25
26/**
27 * Test API and functionality of class Unicode
28 **/
29class UnicodeTest: public IntlTest {
30public:
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();
4388f060 39 void TestPatternProperties();
51004dcb 40 void TestScriptMetadata();
b75a7d8f
A
41
42private:
43
44 friend void U_CALLCONV unicodeDataLineFn(void *context,
45 char *fields[][2], int32_t fieldCount,
46 UErrorCode *pErrorCode);
47
48 friend void U_CALLCONV
729e4ab9 49 derivedPropsLineFn(void *context,
b75a7d8f
A
50 char *fields[][2], int32_t fieldCount,
51 UErrorCode *pErrorCode);
52
729e4ab9
A
53 UnicodeSet derivedProps[30];
54 U_NAMESPACE_QUALIFIER Hashtable *unknownPropertyNames;
b75a7d8f 55
4388f060
A
56 UBool compareUSets(const UnicodeSet &a, const UnicodeSet &b,
57 const char *a_name, const char *b_name,
58 UBool diffIsError);
59};