]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/canittst.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /********************************************************************
5 * Copyright (c) 2002-2006, International Business Machines Corporation and
6 * others. All Rights Reserved.
7 ********************************************************************
9 * @author Mark E. Davis
10 * @author Vladimir Weinstein
14 * Test Canonical Iterator
20 #include "unicode/utypes.h"
22 #if !UCONFIG_NO_NORMALIZATION
31 #include "unicode/translit.h"
32 #include "unicode/caniter.h"
36 class CanonicalIteratorTest
: public IntlTest
{
38 CanonicalIteratorTest();
39 virtual ~CanonicalIteratorTest();
41 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
43 void TestCanonicalIterator(void);
44 void TestExhaustive(void);
47 UnicodeString
collectionToString(Hashtable
*col
);
48 //static UnicodeString collectionToString(Collection col);
50 void expectEqual(const UnicodeString
&message
, const UnicodeString
&item
, const UnicodeString
&a
, const UnicodeString
&b
);
51 void characterTest(UnicodeString
&s
, UChar32 ch
, CanonicalIterator
&it
);
53 Transliterator
*nameTrans
;
54 Transliterator
*hexTrans
;
56 UnicodeString
getReadable(const UnicodeString
&obj
);
59 #endif /* #if !UCONFIG_NO_NORMALIZATION */