OLD | NEW |
1 // Copyright (C) 2016 and later: Unicode, Inc. and others. | 1 // Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /******************************************************************** | 3 /******************************************************************** |
4 * COPYRIGHT:· | 4 * COPYRIGHT:· |
5 * Copyright (c) 1997-2015, International Business Machines Corporation and | 5 * Copyright (c) 1997-2015, International Business Machines Corporation and |
6 * others. All Rights Reserved. | 6 * others. All Rights Reserved. |
7 ********************************************************************/ | 7 ********************************************************************/ |
8 | 8 |
9 #ifndef UNICODESTRINGTEST_H | 9 #ifndef UNICODESTRINGTEST_H |
10 #define UNICODESTRINGTEST_H | 10 #define UNICODESTRINGTEST_H |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void TestUTF32(); | 87 void TestUTF32(); |
88 void TestUTF8(); | 88 void TestUTF8(); |
89 void TestReadOnlyAlias(); | 89 void TestReadOnlyAlias(); |
90 void doTestAppendable(UnicodeString &dest, Appendable &app); | 90 void doTestAppendable(UnicodeString &dest, Appendable &app); |
91 void TestAppendable(); | 91 void TestAppendable(); |
92 void TestUnicodeStringImplementsAppendable(); | 92 void TestUnicodeStringImplementsAppendable(); |
93 void TestSizeofUnicodeString(); | 93 void TestSizeofUnicodeString(); |
94 void TestMoveSwap(); | 94 void TestMoveSwap(); |
95 }; | 95 }; |
96 | 96 |
97 class StringCaseTest: public IntlTest { | |
98 public: | |
99 StringCaseTest(); | |
100 virtual ~StringCaseTest(); | |
101 | |
102 void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=
0); | |
103 | |
104 void TestCaseConversion(); | |
105 | |
106 void TestCasingImpl(const UnicodeString &input, | |
107 const UnicodeString &output, | |
108 int32_t whichCase, | |
109 void *iter, const char *localeID, uint32_t options); | |
110 void TestCasing(); | |
111 void TestFullCaseFoldingIterator(); | |
112 void TestGreekUpper(); | |
113 void TestLongUpper(); | |
114 void TestMalformedUTF8(); | |
115 void TestBufferOverflow(); | |
116 | |
117 private: | |
118 void assertGreekUpper(const char *s, const char *expected); | |
119 | |
120 Locale GREEK_LOCALE_; | |
121 }; | |
122 | |
123 #endif | 97 #endif |
OLD | NEW |