]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/ustrtest.h
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / ustrtest.h
index 573d9c1b9b04650c471bdf7aaf82f46f5c5d72e0..4ba348c431fd5ca7ef9fc7258b34e24ce514990a 100644 (file)
@@ -1,21 +1,31 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2003, International Business Machines Corporation and
+ * Copyright (c) 1997-2015, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
 #ifndef UNICODESTRINGTEST_H
 #define UNICODESTRINGTEST_H
 
+#include "unicode/locid.h"
+#include "unicode/unistr.h"
 #include "intltest.h"
 
+U_NAMESPACE_BEGIN
+
+class Appendable;
+
+U_NAMESPACE_END
+
 /**
  * Perform API and functionality tests for class UnicodeString
  **/
 class UnicodeStringTest: public IntlTest {
 public:
     UnicodeStringTest() {}
-    virtual ~UnicodeStringTest() {}
+    virtual ~UnicodeStringTest();
     
     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
 
@@ -47,6 +57,7 @@ public:
      * Test methods startsWith and endsWith
      **/
     void TestPrefixAndSuffix(void);
+    void TestStartsWithAndEndsWithNulTerminated();
     /**
      * Test method findAndReplace
      **/
@@ -69,21 +80,22 @@ 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 TestUTF32();
+    void TestUTF8();
+    void TestReadOnlyAlias();
+    void doTestAppendable(UnicodeString &dest, Appendable &app);
+    void TestAppendable();
+    void TestUnicodeStringImplementsAppendable();
+    void TestSizeofUnicodeString();
+    void TestMoveSwap();
 
-class StringCaseTest: public IntlTest {
-public:
-    StringCaseTest() {}
-    virtual ~StringCaseTest() {}
-    
-    void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=0);
-
-    void TestCaseConversion();
-#if !UCONFIG_NO_BREAK_ITERATION
-    void TestTitleCasing();
-#endif
+    void TestUInt16Pointers();
+    void TestWCharPointers();
+    void TestNullPointers();
 };
 
 #endif