]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/canittst.h
1 /********************************************************************
3 * Copyright (c) 2002-2006, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************
7 * @author Mark E. Davis
8 * @author Vladimir Weinstein
12 * Test Canonical Iterator
18 #include "unicode/utypes.h"
20 #if !UCONFIG_NO_NORMALIZATION
29 #include "unicode/translit.h"
30 #include "unicode/caniter.h"
34 class CanonicalIteratorTest
: public IntlTest
{
36 CanonicalIteratorTest();
37 virtual ~CanonicalIteratorTest();
39 void runIndexedTest( int32_t index
, UBool exec
, const char* &name
, char* par
= NULL
);
41 void TestCanonicalIterator(void);
42 void TestExhaustive(void);
45 UnicodeString
collectionToString(Hashtable
*col
);
46 //static UnicodeString collectionToString(Collection col);
48 void expectEqual(const UnicodeString
&message
, const UnicodeString
&item
, const UnicodeString
&a
, const UnicodeString
&b
);
49 void characterTest(UnicodeString
&s
, UChar32 ch
, CanonicalIterator
&it
);
51 Transliterator
*nameTrans
;
52 Transliterator
*hexTrans
;
54 UnicodeString
getReadable(const UnicodeString
&obj
);
57 #endif /* #if !UCONFIG_NO_NORMALIZATION */