1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
7
#ifndef UNICODESTRINGTEST_H
8
#define UNICODESTRINGTEST_H
13
* Perform API and functionality tests for class UnicodeString
15
class UnicodeStringTest: public IntlTest {
18
virtual ~UnicodeStringTest();
20
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
23
* Test some basic methods (insert, remove, replace, ...)
25
void TestBasicManipulation(void);
27
* Test the methods for comparison
29
void TestCompare(void);
31
* Test the methods for extracting
33
void TestExtract(void);
35
* More extensively test methods for removing and replacing
37
void TestRemoveReplace(void);
39
* Test language specific case conversions
41
void TestCaseConversion(void);
43
* Test methods indexOf and lastIndexOf
45
void TestSearching(void);
47
* Test methods for padding, trimmimg and truncating
49
void TestSpacePadding(void);
51
* Test methods startsWith and endsWith
53
void TestPrefixAndSuffix(void);
55
* Test method findAndReplace
57
void TestFindAndReplace(void);
59
* Test method numDisplayCells
61
void TestCellWidth(void);
65
void TestReverse(void);
67
* Test a few miscellaneous methods (isBogus, hashCode,...)
69
void TestMiscellaneous(void);
71
* Test the functionality of allocating UnicodeStrings on the stack
73
void TestStackAllocation(void);
75
* Test the unescape() function.
77
void TestUnescape(void);