Home | History | Annotate | Download | only in intltest
      1 /********************************************************************
      2  * COPYRIGHT:
      3  * Copyright (c) 1997-2010, International Business Machines Corporation and
      4  * others. All Rights Reserved.
      5  ********************************************************************/
      6 
      7 #include "unicode/uniset.h"
      8 #include "intltest.h"
      9 
     10 /** Helper function for TestUnicodeData */
     11 U_CFUNC void U_CALLCONV unicodeDataLineFn(void *context,
     12                               char *fields[][2], int32_t fieldCount,
     13                               UErrorCode *pErrorCode);
     14 
     15 U_CFUNC void U_CALLCONV
     16 derivedPropsLineFn(void *context,
     17                    char *fields[][2], int32_t fieldCount,
     18                    UErrorCode *pErrorCode);
     19 
     20 U_NAMESPACE_BEGIN
     21 
     22 class Hashtable;
     23 
     24 U_NAMESPACE_END
     25 
     26 /**
     27  * Test API and functionality of class Unicode
     28  **/
     29 class UnicodeTest: public IntlTest {
     30 public:
     31     UnicodeTest();
     32     virtual ~UnicodeTest();
     33 
     34     void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
     35 
     36     void TestAdditionalProperties();
     37     void TestBinaryValues();
     38 
     39 private:
     40 
     41     friend void U_CALLCONV unicodeDataLineFn(void *context,
     42                               char *fields[][2], int32_t fieldCount,
     43                               UErrorCode *pErrorCode);
     44 
     45     friend void U_CALLCONV
     46     derivedPropsLineFn(void *context,
     47                            char *fields[][2], int32_t fieldCount,
     48                            UErrorCode *pErrorCode);
     49 
     50     UnicodeSet derivedProps[30];
     51     U_NAMESPACE_QUALIFIER Hashtable *unknownPropertyNames;
     52 };
     53 
     54