scuffed-code/icu4c/source/test/intltest/ustrtest.h
George Rhoten 2dbb8812ba ICU-535 fixed some compiler warnings
X-SVN-Rev: 2226
2000-08-14 21:42:36 +00:00

73 lines
1.8 KiB
C++

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-1999, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#include "intltest.h"
/**
* Perform API and functionality tests for class UnicodeString
**/
class UnicodeStringTest: public IntlTest {
public:
UnicodeStringTest();
~UnicodeStringTest();
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
/**
* Test some basic methods (insert, remove, replace, ...)
**/
void TestBasicManipulation(void);
/**
* Test the methods for comparison
**/
void TestCompare(void);
/**
* Test the methods for extracting
**/
void TestExtract(void);
/**
* More extensively test methods for removing and replacing
**/
void TestRemoveReplace(void);
/**
* Test language specific case conversions
**/
void TestCaseConversion(void);
/**
* Test methods indexOf and lastIndexOf
**/
void TestSearching(void);
/**
* Test methods for padding, trimmimg and truncating
**/
void TestSpacePadding(void);
/**
* Test methods startsWith and endsWith
**/
void TestPrefixAndSuffix(void);
/**
* Test method findAndReplace
**/
void TestFindAndReplace(void);
/**
* Test method numDisplayCells
**/
void TestCellWidth(void);
/**
* Test method reverse
**/
void TestReverse(void);
/**
* Test a few miscellaneous methods (isBogus, hashCode,...)
**/
void TestMiscellaneous(void);
/**
* Test the functionality of allocating UnicodeStrings on the stack
**/
void TestStackAllocation(void);
};