X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..4d9eefca008a7bc544144ef830fa144ce89deaa0:/icuSources/test/intltest/ustrtest.h diff --git a/icuSources/test/intltest/ustrtest.h b/icuSources/test/intltest/ustrtest.h index e1b930de..02476c93 100644 --- a/icuSources/test/intltest/ustrtest.h +++ b/icuSources/test/intltest/ustrtest.h @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2010, International Business Machines Corporation and + * Copyright (c) 1997-2012, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -10,6 +10,12 @@ #include "unicode/unistr.h" #include "intltest.h" +U_NAMESPACE_BEGIN + +class Appendable; + +U_NAMESPACE_END + /** * Perform API and functionality tests for class UnicodeString **/ @@ -48,6 +54,7 @@ public: * Test methods startsWith and endsWith **/ void TestPrefixAndSuffix(void); + void TestStartsWithAndEndsWithNulTerminated(); /** * Test method findAndReplace **/ @@ -70,20 +77,24 @@ public: void TestUnescape(void); void _testUnicodeStringHasMoreChar32Than(const UnicodeString &s, int32_t start, int32_t length, int32_t number); - void TestCountChar32(void); + void TestCountChar32(); void TestBogus(); void TestStringEnumeration(); - void TestNameSpace(void); - void TestUTF32(void); - void TestUTF8(void); - void TestReadOnlyAlias(void); + void TestNameSpace(); + void TestUTF32(); + void TestUTF8(); + void TestReadOnlyAlias(); + void doTestAppendable(UnicodeString &dest, Appendable &app); + void TestAppendable(); + void TestUnicodeStringImplementsAppendable(); + void TestSizeofUnicodeString(); }; class StringCaseTest: public IntlTest { public: StringCaseTest() {} virtual ~StringCaseTest(); - + void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=0); void TestCaseConversion(); @@ -93,6 +104,7 @@ public: int32_t whichCase, void *iter, const char *localeID, uint32_t options); void TestCasing(); + void TestFullCaseFoldingIterator(); }; #endif