• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=nullptr) override;
30 
31     /*Tests the function getDisplayName() */
32     void TestGetDisplayName();
33 
34     void TestgetID();
35 
36     void TestgetInverse();
37 
38     void TestClone();
39 
40     void TestTransliterate1();
41 
42     void TestTransliterate2();
43 
44     void TestTransliterate3();
45 
46     void TestSimpleKeyboardTransliterator();
47 
48     void TestKeyboardTransliterator1();
49 
50     void TestKeyboardTransliterator2();
51 
52     void TestKeyboardTransliterator3();
53 
54     void TestGetAdoptFilter();
55 
56     void TestNullTransliterator();
57 
58     void TestRegisterUnregister();
59 
60     void TestLatinDevanagari();
61 
62     void TestDevanagariLatinRT();
63 
64     void TestUnicodeFunctor();
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
81