2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2011-07-06 04:03:35 +00:00
|
|
|
* Copyright (c) 1997-2011, International Business Machines Corporation and
|
2000-01-15 02:00:06 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
/* file name: strtest.h
|
1999-11-22 20:29:44 +00:00
|
|
|
* 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 .
|
2010-05-20 21:16:44 +00:00
|
|
|
* Also basic tests for std_string.h and charstr.h .
|
1999-11-22 20:29:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __STRTEST_H__
|
|
|
|
#define __STRTEST_H__
|
|
|
|
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
class StringTest : public IntlTest {
|
|
|
|
public:
|
|
|
|
StringTest() {}
|
2003-10-24 01:04:44 +00:00
|
|
|
virtual ~StringTest();
|
1999-11-22 20:29:44 +00:00
|
|
|
|
2000-08-14 21:42:36 +00:00
|
|
|
void runIndexedTest(int32_t index, UBool exec, const char *&name, char *par=NULL);
|
1999-11-22 20:29:44 +00:00
|
|
|
|
|
|
|
private:
|
2010-10-29 18:01:01 +00:00
|
|
|
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();
|
2009-03-16 23:56:37 +00:00
|
|
|
void TestStringPiece();
|
2010-10-29 18:01:01 +00:00
|
|
|
void TestStringPieceComparisons();
|
2009-04-15 04:20:44 +00:00
|
|
|
void TestByteSink();
|
|
|
|
void TestCheckedArrayByteSink();
|
|
|
|
void TestStringByteSink();
|
2009-02-25 06:43:12 +00:00
|
|
|
void TestSTLCompatibility();
|
2010-05-20 21:16:44 +00:00
|
|
|
void TestCharString();
|
1999-11-22 20:29:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|