]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/ucdtest.h
ICU-62141.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / ucdtest.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
b75a7d8f 3/********************************************************************
2ca993e8 4 * Copyright (c) 1997-2016, International Business Machines Corporation and
b75a7d8f
A
5 * others. All Rights Reserved.
6 ********************************************************************/
7
8#include "unicode/uniset.h"
9#include "intltest.h"
10
11/** Helper function for TestUnicodeData */
374ca955 12U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context,
b75a7d8f
A
13 char *fields[][2], int32_t fieldCount,
14 UErrorCode *pErrorCode);
15
374ca955 16U_CFUNC void U_CALLCONV
729e4ab9
A
17derivedPropsLineFn(void *context,
18 char *fields[][2], int32_t fieldCount,
19 UErrorCode *pErrorCode);
20
21U_NAMESPACE_BEGIN
22
23class Hashtable;
24
25U_NAMESPACE_END
b75a7d8f
A
26
27/**
28 * Test API and functionality of class Unicode
29 **/
30class UnicodeTest: public IntlTest {
31public:
32 UnicodeTest();
33 virtual ~UnicodeTest();
34
35 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
36
37 void TestAdditionalProperties();
46f4442e 38 void TestBinaryValues();
729e4ab9 39 void TestConsistency();
4388f060 40 void TestPatternProperties();
51004dcb 41 void TestScriptMetadata();
57a6839d 42 void TestBidiPairedBracketType();
2ca993e8 43 void TestEmojiProperties();
0f5d89e8
A
44 void TestDefaultScriptExtensions();
45 void TestInvalidCodePointFolding();
b75a7d8f
A
46
47private:
48
49 friend void U_CALLCONV unicodeDataLineFn(void *context,
50 char *fields[][2], int32_t fieldCount,
51 UErrorCode *pErrorCode);
52
53 friend void U_CALLCONV
729e4ab9 54 derivedPropsLineFn(void *context,
b75a7d8f
A
55 char *fields[][2], int32_t fieldCount,
56 UErrorCode *pErrorCode);
57
729e4ab9
A
58 UnicodeSet derivedProps[30];
59 U_NAMESPACE_QUALIFIER Hashtable *unknownPropertyNames;
b75a7d8f 60
4388f060
A
61 UBool compareUSets(const UnicodeSet &a, const UnicodeSet &b,
62 const char *a_name, const char *b_name,
63 UBool diffIsError);
64};