]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/ustrtest.h
ICU-62135.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / ustrtest.h
index c3f9f39947ee3180dbfae8a8b694edd35f48d563..4ba348c431fd5ca7ef9fc7258b34e24ce514990a 100644 (file)
@@ -1,16 +1,24 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /********************************************************************
  * COPYRIGHT: 
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2005, International Business Machines Corporation and
+ * Copyright (c) 1997-2015, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
 #ifndef UNICODESTRINGTEST_H
 #define UNICODESTRINGTEST_H
 
  * others. All Rights Reserved.
  ********************************************************************/
 
 #ifndef UNICODESTRINGTEST_H
 #define UNICODESTRINGTEST_H
 
+#include "unicode/locid.h"
 #include "unicode/unistr.h"
 #include "unicode/unistr.h"
-#include "unicode/ubrk.h"
 #include "intltest.h"
 
 #include "intltest.h"
 
+U_NAMESPACE_BEGIN
+
+class Appendable;
+
+U_NAMESPACE_END
+
 /**
  * Perform API and functionality tests for class UnicodeString
  **/
 /**
  * Perform API and functionality tests for class UnicodeString
  **/
@@ -49,6 +57,7 @@ public:
      * Test methods startsWith and endsWith
      **/
     void TestPrefixAndSuffix(void);
      * Test methods startsWith and endsWith
      **/
     void TestPrefixAndSuffix(void);
+    void TestStartsWithAndEndsWithNulTerminated();
     /**
      * Test method findAndReplace
      **/
     /**
      * Test method findAndReplace
      **/
@@ -71,32 +80,22 @@ public:
     void TestUnescape(void);
 
     void _testUnicodeStringHasMoreChar32Than(const UnicodeString &s, int32_t start, int32_t length, int32_t number);
     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 TestBogus();
     void TestStringEnumeration();
-    void TestCharString(void);
-};
+    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();
-
-    void TestCasingImpl(const UnicodeString &input,
-                        const UnicodeString &output,
-                        int32_t whichCase,
-                        const char *localeID, uint32_t options);
-#if !UCONFIG_NO_BREAK_ITERATION
-    void TestTitleCasing(const UnicodeString &input,
-                         const UnicodeString &output,
-                         const char *localeID,
-                         UBreakIterator *iter);
-#endif
-    void TestCasing();
+    void TestUInt16Pointers();
+    void TestWCharPointers();
+    void TestNullPointers();
 };
 
 #endif
 };
 
 #endif