~ubuntu-branches/ubuntu/quantal/icu/quantal

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Yves Arrouye
  • Date: 2002-03-03 15:31:13 UTC
  • Revision ID: package-import@ubuntu.com-20020303153113-3ssceqlq45xbmbnc
Tags: upstream-2.0-2.1pre20020303
ImportĀ upstreamĀ versionĀ 2.0-2.1pre20020303

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/********************************************************************
 
2
 * COPYRIGHT: 
 
3
 * Copyright (c) 1997-2001, International Business Machines Corporation and
 
4
 * others. All Rights Reserved.
 
5
 ********************************************************************/
 
6
 
 
7
#ifndef UNICODESTRINGTEST_H
 
8
#define UNICODESTRINGTEST_H
 
9
 
 
10
#include "intltest.h"
 
11
 
 
12
/**
 
13
 * Perform API and functionality tests for class UnicodeString
 
14
 **/
 
15
class UnicodeStringTest: public IntlTest {
 
16
public:
 
17
    UnicodeStringTest();
 
18
    virtual ~UnicodeStringTest();
 
19
    
 
20
    void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
 
21
 
 
22
    /**
 
23
     * Test some basic methods (insert, remove, replace, ...)
 
24
     **/
 
25
    void TestBasicManipulation(void);
 
26
    /**
 
27
     * Test the methods for comparison
 
28
     **/
 
29
    void TestCompare(void);
 
30
    /**
 
31
     * Test the methods for extracting
 
32
     **/
 
33
    void TestExtract(void);
 
34
    /**
 
35
     * More extensively test methods for removing and replacing
 
36
     **/
 
37
    void TestRemoveReplace(void);
 
38
    /**
 
39
     * Test language specific case conversions
 
40
     **/
 
41
    void TestCaseConversion(void);
 
42
    /**
 
43
     * Test methods indexOf and lastIndexOf
 
44
     **/
 
45
    void TestSearching(void);
 
46
    /**
 
47
     * Test methods for padding, trimmimg and truncating
 
48
     **/
 
49
    void TestSpacePadding(void);
 
50
    /**
 
51
     * Test methods startsWith and endsWith
 
52
     **/
 
53
    void TestPrefixAndSuffix(void);
 
54
    /**
 
55
     * Test method findAndReplace
 
56
     **/
 
57
    void TestFindAndReplace(void);
 
58
    /**
 
59
     * Test method numDisplayCells
 
60
     **/
 
61
    void TestCellWidth(void);
 
62
    /**
 
63
     * Test method reverse
 
64
     **/
 
65
    void TestReverse(void);
 
66
    /**
 
67
     * Test a few miscellaneous methods (isBogus, hashCode,...)
 
68
     **/
 
69
    void TestMiscellaneous(void);
 
70
    /**
 
71
     * Test the functionality of allocating UnicodeStrings on the stack
 
72
     **/
 
73
    void TestStackAllocation(void);
 
74
    /**
 
75
     * Test the unescape() function.
 
76
     */
 
77
    void TestUnescape(void);
 
78
};
 
79
 
 
80
#endif