1
/********************************************************************
3
* Copyright (c) 1997-2001, International Business Machines Corporation and
4
* others. All Rights Reserved.
5
********************************************************************/
9
/** Helper function for TestUnicodeData */
10
U_CAPI void U_CALLCONV unicodeDataLineFn(void *context,
11
char *fields[][2], int32_t fieldCount,
12
UErrorCode *pErrorCode);
15
* Test API and functionality of class Unicode
17
class UnicodeTest: public IntlTest {
20
virtual ~UnicodeTest();
22
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
25
* Test methods toUpperCase() and toLowerCase()
27
void TestUpperLower(void);
29
* Test methods isLetter() and isDigit()
31
void TestLetterNumber(void);
33
* Tests methods isControl() and isPrintable()
35
void TestControlPrint(void);
37
* Tests methods isJavaIdentifierStart(), isJavaIdentifierPart(),
38
* isUnicodeIdentifierStart() and isUnicodeIdentifierPart()
40
void TestIdentifier(void);
42
* Tests methods isDefined(), isBaseForm(), isSpaceChar() and getCellWidth()
47
* tests methods getType(), isTitleCase(), and toTitleCase()
48
* as well as characterDirection()
50
void TestUnicodeData(void);
52
* tests methods isSingle(), isLead(), and isTrail()
54
void TestCodeUnit(void);
56
* Tests for isSurrogate(), isUnicodeChar(), isError(), isValid()
60
* Tests for needMultipleChar(), charLength()
62
void TestCharLength();
64
* Tests for getScript()
70
* internal utility used by TestUnicodeData
72
int32_t MakeProp(char* str);
74
* internal utility used by TestUnicodeData
76
int32_t MakeDir(char* str);
78
friend void U_CALLCONV unicodeDataLineFn(void *context,
79
char *fields[][2], int32_t fieldCount,
80
UErrorCode *pErrorCode);