]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | // © 2016 and later: Unicode, Inc. and others. |
2 | // License & terms of use: http://www.unicode.org/copyright.html | |
b75a7d8f A |
3 | /******************************************************************** |
4 | * COPYRIGHT: | |
2ca993e8 | 5 | * Copyright (c) 1997-2015, International Business Machines Corporation and |
b75a7d8f A |
6 | * others. All Rights Reserved. |
7 | ********************************************************************/ | |
8 | /* file name: strtest.h | |
f3c0d7a5 | 9 | * encoding: UTF-8 |
b75a7d8f A |
10 | * tab size: 8 (not used) |
11 | * indentation:4 | |
12 | * | |
13 | * created on: 1999nov22 | |
14 | * created by: Markus W. Scherer | |
15 | */ | |
16 | ||
17 | /* | |
18 | * Test character- and string- related settings in utypes.h, | |
19 | * macros in putil.h, and constructors in unistr.h . | |
729e4ab9 | 20 | * Also basic tests for std_string.h and charstr.h . |
b75a7d8f A |
21 | */ |
22 | ||
23 | #ifndef __STRTEST_H__ | |
24 | #define __STRTEST_H__ | |
25 | ||
26 | #include "intltest.h" | |
27 | ||
28 | class StringTest : public IntlTest { | |
29 | public: | |
30 | StringTest() {} | |
374ca955 | 31 | virtual ~StringTest(); |
b75a7d8f A |
32 | |
33 | void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=NULL); | |
34 | ||
35 | private: | |
729e4ab9 A |
36 | void TestEndian(); |
37 | void TestSizeofTypes(); | |
38 | void TestCharsetFamily(); | |
39 | void Test_U_STRING(); | |
40 | void Test_UNICODE_STRING(); | |
41 | void Test_UNICODE_STRING_SIMPLE(); | |
340931cb A |
42 | void TestUpperOrdinal(); |
43 | void TestLowerOrdinal(); | |
729e4ab9 | 44 | void Test_UTF8_COUNT_TRAIL_BYTES(); |
729e4ab9 A |
45 | void TestStringPiece(); |
46 | void TestStringPieceComparisons(); | |
340931cb A |
47 | void TestStringPieceOther(); |
48 | #ifdef U_HAVE_STRING_VIEW | |
49 | void TestStringPieceStringView(); | |
50 | #endif | |
729e4ab9 A |
51 | void TestByteSink(); |
52 | void TestCheckedArrayByteSink(); | |
53 | void TestStringByteSink(); | |
54 | void TestSTLCompatibility(); | |
55 | void TestCharString(); | |
2ca993e8 | 56 | void TestCStr(); |
f3c0d7a5 | 57 | void Testctou(); |
b75a7d8f A |
58 | }; |
59 | ||
60 | #endif |