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