home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / ustrtest.h < prev   
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.4 KB  |  80 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.  * Perform API and functionality tests for class UnicodeString
  18.  **/
  19. class UnicodeStringTest: public IntlTest {
  20. public:
  21.     UnicodeStringTest();
  22.     ~UnicodeStringTest();
  23.     
  24.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  25.  
  26.     /**
  27.      * Test some basic methods (insert, remove, replace, ...)
  28.      **/
  29.     void TestBasicManipulation(void);
  30.     /**
  31.      * Test the methods for comparison
  32.      **/
  33.     void TestCompare(void);
  34.     /**
  35.      * Test the methods for extracting
  36.      **/
  37.     void TestExtract(void);
  38.     /**
  39.      * More extensively test methods for removing and replacing
  40.      **/
  41.     void TestRemoveReplace(void);
  42.     /**
  43.      * Test language specific case conversions
  44.      **/
  45.     void TestCaseConversion(void);
  46.     /**
  47.      * Test methods indexOf and lastIndexOf
  48.      **/
  49.     void TestSearching(void);
  50.     /**
  51.      * Test methods for padding, trimmimg and truncating
  52.      **/
  53.     void TestSpacePadding(void);
  54.     /**
  55.      * Test methods startsWith and endsWith
  56.      **/
  57.     void TestPrefixAndSuffix(void);
  58.     /**
  59.      * Test method findAndReplace
  60.      **/
  61.     void TestFindAndReplace(void);
  62.     /**
  63.      * Test method numDisplayCells
  64.      **/
  65.     void TestCellWidth(void);
  66.     /**
  67.      * Test method reverse
  68.      **/
  69.     void TestReverse(void);
  70.     /**
  71.      * Test a few miscellaneous methods (isBogus, hashCode,...)
  72.      **/
  73.     void TestMiscellaneous(void);
  74.     /**
  75.      * Test the functionality of allocating UnicodeStrings on the stack
  76.      **/
  77.     void TestStackAllocation(void);
  78. };
  79.  
  80.