2017-01-20 00:20:31 +00:00
|
|
|
// © 2016 and later: Unicode, Inc. and others.
|
2016-06-15 18:58:17 +00:00
|
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
2000-01-15 02:00:06 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (c) 1997-2015, International Business Machines Corporation and
|
|
|
|
* others. All Rights Reserved.
|
2000-01-15 02:00:06 +00:00
|
|
|
********************************************************************/
|
|
|
|
/* file name: strtest.h
|
2017-02-03 18:57:23 +00:00
|
|
|
* encoding: UTF-8
|
1999-11-22 20:29:44 +00:00
|
|
|
* 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();
|
2015-10-09 17:53:44 +00:00
|
|
|
void TestCStr();
|
2016-09-21 23:52:53 +00:00
|
|
|
void Testctou();
|
1999-11-22 20:29:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|