~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/test/intltest/canittst.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/********************************************************************
 
2
 * COPYRIGHT: 
 
3
 * Copyright (c) 2002, International Business Machines Corporation and
 
4
 * others. All Rights Reserved.
 
5
 ********************************************************************
 
6
 *
 
7
 * @author Mark E. Davis
 
8
 * @author Vladimir Weinstein
 
9
 */
 
10
 
 
11
/**
 
12
 * Test Canonical Iterator
 
13
 */
 
14
 
 
15
#ifndef _CANITTST
 
16
#define _CANITTST
 
17
 
 
18
#include "unicode/normlzr.h"
 
19
#include "unicode/translit.h"
 
20
#include "intltest.h"
 
21
#include "hash.h"
 
22
 
 
23
class CanonicalIteratorTest : public IntlTest {
 
24
public:
 
25
    CanonicalIteratorTest();
 
26
    virtual ~CanonicalIteratorTest();
 
27
 
 
28
    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
 
29
 
 
30
    void TestCanonicalIterator(void);
 
31
    void TestExhaustive(void);
 
32
    void TestBasic();
 
33
    UnicodeString collectionToString(Hashtable *col);
 
34
    //static UnicodeString collectionToString(Collection col);
 
35
private:
 
36
    void expectEqual(const UnicodeString &message, const UnicodeString &item, const UnicodeString &a, const UnicodeString &b);
 
37
 
 
38
    Transliterator *nameTrans;
 
39
    Transliterator *hexTrans;
 
40
        
 
41
    UnicodeString getReadable(const UnicodeString &obj);
 
42
};
 
43
 
 
44
#endif // _CANITTST