home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / intltest / isocoll.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.7 KB  |  58 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. /**
  15.  * CollationISOTest is a third level test class.  This tests the ISO 14651
  16.  * test entries with the French locale.
  17.  */
  18.  
  19. #ifndef _ISOCOLL
  20. #define _ISOCOLL
  21.  
  22. #ifndef _UTYPES
  23. #include "utypes.h"
  24. #endif
  25.  
  26. #ifndef _COLL
  27. #include "coll.h"
  28. #endif
  29.  
  30. #ifndef _TBLCOLL
  31. #include "tblcoll.h"
  32. #endif
  33.  
  34. #ifndef _INTLTEST
  35. #include "intltest.h"
  36. #endif
  37.  
  38. class CollationISOTest: public IntlTest {
  39. public:
  40.     // static constants
  41.     enum EToken_Len { MAX_TOKEN_LEN = 5 };
  42.  
  43.     CollationISOTest();
  44.     ~CollationISOTest();
  45.     void runIndexedTest( int32_t index, bool_t exec, char* &name, char* par = NULL );
  46.  
  47.     // test proper comparing for 3774 entries of ISO 14651 characters
  48.     void TestAll( char* par );
  49.  
  50. private:
  51.     void quickSort(CollationKey** keyArray, int *indexes, int lo0, int hi0);
  52.  
  53.     static const UChar testCases[][MAX_TOKEN_LEN];
  54.  
  55.     Collator *myCollation;
  56. };
  57. #endif
  58.