blob: c02217c20b7ad8cd1345007a88a007534307ce8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2010, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* file name: strtest.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* created on: 1999nov22
* created by: Markus W. Scherer
*/
/*
* Test character- and string- related settings in utypes.h,
* macros in putil.h, and constructors in unistr.h .
* Also basic tests for std_string.h and charstr.h .
*/
#ifndef __STRTEST_H__
#define __STRTEST_H__
#include "intltest.h"
class StringTest : public IntlTest {
public:
StringTest() {}
virtual ~StringTest();
void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=NULL);
private:
void TestEndian();
void TestSizeofTypes();
void TestCharsetFamily();
void Test_U_STRING();
void Test_UNICODE_STRING();
void Test_UNICODE_STRING_SIMPLE();
void Test_UTF8_COUNT_TRAIL_BYTES();
void TestStdNamespaceQualifier();
void TestUsingStdNamespace();
void TestStringPiece();
void TestStringPieceComparisons();
void TestByteSink();
void TestCheckedArrayByteSink();
void TestStringByteSink();
void TestSTLCompatibility();
void TestCharString();
};
#endif
|