]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/transapi.h
801c8f171dafa5a23f78ba3934f1c1e79604c70f
[apple/icu.git] / icuSources / test / intltest / transapi.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
4 * COPYRIGHT:
5 * Copyright (c) 2001-2005, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************/
8 /************************************************************************
9 * Date Name Description
10 * 1/03/2000 Madhu Creation.
11 ************************************************************************/
12
13 #ifndef TRANSAPI_H
14 #define TRANSAPI_H
15
16 #include "unicode/utypes.h"
17
18 #if !UCONFIG_NO_TRANSLITERATION
19
20 #include "unicode/translit.h"
21 #include "intltest.h"
22
23 /**
24 * @test
25 * @summary General test of Transliterator
26 */
27 class TransliteratorAPITest : public IntlTest {
28 public:
29 void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par=NULL);
30
31 /*Tests the function getDisplayName() */
32 void TestGetDisplayName(void);
33
34 void TestgetID(void);
35
36 void TestgetInverse(void);
37
38 void TestClone(void);
39
40 void TestTransliterate1(void);
41
42 void TestTransliterate2(void);
43
44 void TestTransliterate3(void);
45
46 void TestSimpleKeyboardTransliterator(void);
47
48 void TestKeyboardTransliterator1(void);
49
50 void TestKeyboardTransliterator2(void);
51
52 void TestKeyboardTransliterator3(void);
53
54 void TestGetAdoptFilter(void);
55
56 void TestNullTransliterator(void);
57
58 void TestRegisterUnregister(void);
59
60 void TestLatinDevanagari(void);
61
62 void TestDevanagariLatinRT(void);
63
64 void TestUnicodeFunctor(void);
65
66 /*Internal functions used*/
67 void doTest(const UnicodeString& , const UnicodeString& , const UnicodeString& );
68
69 void keyboardAux(Transliterator*, UnicodeString[] , UnicodeString&, int32_t, int32_t);
70
71 void displayOutput(const UnicodeString&, const UnicodeString&, UnicodeString&,
72 UTransPosition&);
73
74 void callEverything(const Transliterator *t, int line);
75
76 };
77
78 #endif /* #if !UCONFIG_NO_TRANSLITERATION */
79
80 #endif