]>
git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/ustrtest.h
1 /********************************************************************
3 * Copyright (c) 1997-2003, 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
{
17 UnicodeStringTest() {}
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 TestSearching(void);
43 * Test methods for padding, trimmimg and truncating
45 void TestSpacePadding(void);
47 * Test methods startsWith and endsWith
49 void TestPrefixAndSuffix(void);
51 * Test method findAndReplace
53 void TestFindAndReplace(void);
57 void TestReverse(void);
59 * Test a few miscellaneous methods (isBogus, hashCode,...)
61 void TestMiscellaneous(void);
63 * Test the functionality of allocating UnicodeStrings on the stack
65 void TestStackAllocation(void);
67 * Test the unescape() function.
69 void TestUnescape(void);
71 void _testUnicodeStringHasMoreChar32Than(const UnicodeString
&s
, int32_t start
, int32_t length
, int32_t number
);
72 void TestCountChar32(void);
74 void TestStringEnumeration();
77 class StringCaseTest
: public IntlTest
{
80 virtual ~StringCaseTest();
82 void runIndexedTest(int32_t index
, UBool exec
, const char *&name
, char *par
=0);
84 void TestCaseConversion();
85 #if !UCONFIG_NO_BREAK_ITERATION
86 void TestTitleCasing();