home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / ucdtest.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.1 KB  |  64 lines

  1. /*
  2. *****************************************************************************************
  3. *                                                                                       *
  4. * COPYRIGHT:                                                                            *
  5. *   (C) Copyright Taligent, Inc.,  1997                                                 *
  6. *   (C) Copyright International Business Machines Corporation,  1997-1998               *
  7. *   Licensed Material - Program-Property of IBM - All Rights Reserved.                  *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure             *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                              *
  10. *                                                                                       *
  11. *****************************************************************************************
  12. */
  13.  
  14. #include "intltest.h"
  15.  
  16. /** 
  17.  * Test API and functionality of class Unicode
  18.  **/
  19. class UnicodeTest: public IntlTest {
  20. public:
  21.     UnicodeTest();
  22.     ~UnicodeTest();
  23.     
  24.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  25.  
  26.     /** 
  27.      * Test methods toUpperCase() and toLowerCase()
  28.      **/
  29.     void TestUpperLower(void);
  30.     /** 
  31.      * Test methods isLetter() and isDigit() 
  32.      **/
  33.     void TestLetterNumber(void);
  34.     /** 
  35.      * Tests methods isControl() and isPrintable()
  36.      **/
  37.     void TestControlPrint(void);
  38.     /** 
  39.      * Tests methods isJavaIdentifierStart(), isJavaIdentifierPart(),
  40.      * isUnicodeIdentifierStart() and isUnicodeIdentifierPart()
  41.      **/
  42.     void TestIdentifier(void);
  43.     /** 
  44.      * Tests methods isDefined(), isBaseForm(), isSpaceChar() and getCellWidth()
  45.      **/
  46.     void TestMisc(void);
  47.     /** 
  48.      * tests methods getType(), isTitleCase(), and toTitleCase() 
  49.      * as well as characterDirection()
  50.      **/
  51.     void TestUnicodeData(void);
  52.  
  53. private:
  54.     /**
  55.      * internal utility used by TestUnicodeData
  56.      **/
  57.     int32_t MakeProp(char* str);
  58.     /**
  59.      * internal utility used by TestUnicodeData
  60.      **/
  61.     int32_t MakeDir(char* str);
  62. };
  63.  
  64.