2003-02-26 23:22:03 +00:00
|
|
|
/********************************************************************
|
|
|
|
* COPYRIGHT:
|
2008-04-04 22:47:43 +00:00
|
|
|
* Copyright (c) 1997-2008, International Business Machines Corporation and
|
2003-02-26 23:22:03 +00:00
|
|
|
* others. All Rights Reserved.
|
|
|
|
********************************************************************/
|
|
|
|
|
|
|
|
#include "unicode/uniset.h"
|
|
|
|
#include "intltest.h"
|
|
|
|
|
|
|
|
/** Helper function for TestUnicodeData */
|
2004-03-29 21:58:57 +00:00
|
|
|
U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context,
|
2003-02-26 23:22:03 +00:00
|
|
|
char *fields[][2], int32_t fieldCount,
|
|
|
|
UErrorCode *pErrorCode);
|
|
|
|
|
2004-03-29 21:58:57 +00:00
|
|
|
U_CFUNC void U_CALLCONV
|
2003-02-26 23:22:03 +00:00
|
|
|
derivedCorePropsLineFn(void *context,
|
|
|
|
char *fields[][2], int32_t fieldCount,
|
|
|
|
UErrorCode *pErrorCode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test API and functionality of class Unicode
|
|
|
|
**/
|
|
|
|
class UnicodeTest: public IntlTest {
|
|
|
|
public:
|
|
|
|
UnicodeTest();
|
|
|
|
virtual ~UnicodeTest();
|
|
|
|
|
|
|
|
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
|
|
|
|
|
|
|
|
void TestAdditionalProperties();
|
2008-04-04 22:47:43 +00:00
|
|
|
void TestBinaryValues();
|
2003-02-26 23:22:03 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
friend void U_CALLCONV unicodeDataLineFn(void *context,
|
|
|
|
char *fields[][2], int32_t fieldCount,
|
|
|
|
UErrorCode *pErrorCode);
|
|
|
|
|
|
|
|
friend void U_CALLCONV
|
|
|
|
derivedCorePropsLineFn(void *context,
|
|
|
|
char *fields[][2], int32_t fieldCount,
|
|
|
|
UErrorCode *pErrorCode);
|
|
|
|
|
|
|
|
UnicodeSet derivedCoreProps[30];
|
|
|
|
};
|
|
|
|
|