1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 /********************************************************************
6 * Copyright (c) 1997-2003, International Business Machines Corporation and
7 * others. All Rights Reserved.
8 ********************************************************************/
9 /***********************************************************************
10 ************************************************************************
11 * Date Name Description
12 * 03/09/2000 Madhu Creation.
13 ************************************************************************/
18 #include "unicode/utypes.h"
20 #if !UCONFIG_NO_TRANSLITERATION
22 #include "unicode/translit.h"
28 * @summary General test of Compound Transliterator
30 class CompoundTransliteratorTest
: public IntlTest
{
32 void runIndexedTest(int32_t index
, UBool exec
, const char* &name
, char* par
=NULL
);
34 /*Tests the constructors */
35 void TestConstruction(void);
36 /*Tests the function clone, and operator==()*/
37 void TestCloneEqual(void);
38 /*Tests the function getCount()*/
39 void TestGetCount(void);
40 /*Tests the function getTransliterator() and setTransliterators() and adoptTransliterators()*/
41 void TestGetSetAdoptTransliterator(void);
42 /*Tests the function handleTransliterate()*/
43 void TestTransliterate(void);
45 //======================================================================
47 //======================================================================
50 * Splits a UnicodeString
52 UnicodeString
* split(const UnicodeString
& str
, UChar seperator
, int32_t& count
);
54 void expect(const CompoundTransliterator
& t
,
55 const UnicodeString
& source
,
56 const UnicodeString
& expectedResult
);
58 void expectAux(const UnicodeString
& tag
,
59 const UnicodeString
& summary
, UBool pass
,
60 const UnicodeString
& expectedResult
);
65 #endif /* #if !UCONFIG_NO_TRANSLITERATION */