You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.7 KiB
64 lines
1.7 KiB
// © 2016 and later: Unicode, Inc. and others.
|
|
// License & terms of use: http://www.unicode.org/copyright.html
|
|
/********************************************************************
|
|
* COPYRIGHT:
|
|
* Copyright (c) 1997-2015, International Business Machines Corporation and
|
|
* others. All Rights Reserved.
|
|
********************************************************************/
|
|
/* file name: strtest.h
|
|
* encoding: UTF-8
|
|
* 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 TestUpperOrdinal();
|
|
void TestLowerOrdinal();
|
|
void Test_UTF8_COUNT_TRAIL_BYTES();
|
|
void TestStringPiece();
|
|
void TestStringPieceFind();
|
|
void TestStringPieceComparisons();
|
|
void TestStringPieceOther();
|
|
#ifdef U_HAVE_STRING_VIEW
|
|
void TestStringPieceStringView();
|
|
#endif
|
|
void TestStringPieceU8();
|
|
void TestByteSink();
|
|
void TestCheckedArrayByteSink();
|
|
void TestStringByteSink();
|
|
void TestStringByteSinkAppendU8();
|
|
void TestSTLCompatibility();
|
|
void TestCharString();
|
|
void TestCStr();
|
|
void Testctou();
|
|
};
|
|
|
|
#endif
|