3aaa52af8d
X-SVN-Rev: 596
57 lines
1.5 KiB
C++
57 lines
1.5 KiB
C++
/********************************************************************
|
|
* COPYRIGHT:
|
|
* Copyright (c) 1997-1999, International Business Machines Corporation and
|
|
* others. All Rights Reserved.
|
|
********************************************************************/
|
|
|
|
#include "intltest.h"
|
|
|
|
/**
|
|
* Test API and functionality of class Unicode
|
|
**/
|
|
class UnicodeTest: public IntlTest {
|
|
public:
|
|
UnicodeTest();
|
|
~UnicodeTest();
|
|
|
|
void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
|
|
|
|
/**
|
|
* Test methods toUpperCase() and toLowerCase()
|
|
**/
|
|
void TestUpperLower(void);
|
|
/**
|
|
* Test methods isLetter() and isDigit()
|
|
**/
|
|
void TestLetterNumber(void);
|
|
/**
|
|
* Tests methods isControl() and isPrintable()
|
|
**/
|
|
void TestControlPrint(void);
|
|
/**
|
|
* Tests methods isJavaIdentifierStart(), isJavaIdentifierPart(),
|
|
* isUnicodeIdentifierStart() and isUnicodeIdentifierPart()
|
|
**/
|
|
void TestIdentifier(void);
|
|
/**
|
|
* Tests methods isDefined(), isBaseForm(), isSpaceChar() and getCellWidth()
|
|
**/
|
|
void TestMisc(void);
|
|
/**
|
|
* tests methods getType(), isTitleCase(), and toTitleCase()
|
|
* as well as characterDirection()
|
|
**/
|
|
void TestUnicodeData(void);
|
|
|
|
private:
|
|
/**
|
|
* internal utility used by TestUnicodeData
|
|
**/
|
|
int32_t MakeProp(char* str);
|
|
/**
|
|
* internal utility used by TestUnicodeData
|
|
**/
|
|
int32_t MakeDir(char* str);
|
|
};
|
|
|