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

  1. /*
  2. *****************************************************************************************
  3. *                                                                                       *
  4. * COPYRIGHT:                                                                            *
  5. *   (C) Copyright Taligent, Inc.,  1996                                                 *
  6. *   (C) Copyright International Business Machines Corporation,  1999                    *
  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. * File CITERTST.H
  15. *
  16. * Modification History:
  17. *        Name                     Description            
  18. *     Madhu Katragadda            Converted to C
  19. *********************************************************************************
  20.  
  21. /**
  22.  * Collation Iterator tests.
  23.  * (Let me reiterate my position...)
  24.  */
  25.  
  26. #ifndef _CITERCOLLTST
  27. #define _CITERCOLLTST
  28.  
  29. #include "cintltst.h"
  30. #include "utypes.h"
  31. #include "ucol.h"
  32. struct ExpansionRecord
  33.     {
  34.         UChar character;
  35.         int32_t count;
  36.     };
  37. typedef struct ExpansionRecord ExpansionRecord;
  38. #define MAX_TOKEN_LEN 128
  39.    
  40.        /**
  41.      * Test for CollationElementIterator.previous()
  42.      *
  43.      * @bug 4108758 - Make sure it works with contracting characters
  44.      * 
  45.      */
  46.     void TestPrevious(void);
  47.     
  48.     /**
  49.      * Test for getOffset() and setOffset()
  50.      */
  51.     void TestOffset(void);
  52.     /**
  53.      * Test for setText()
  54.      */
  55.     void TestSetText(void);
  56.     
  57.        
  58.     
  59.     /*------------------------------------------------------------------------
  60.      Internal utilities
  61.      */
  62.  
  63.     static void backAndForth(UCollationElements* iter);
  64.  
  65.     
  66.       
  67.     /**
  68.      * Return an integer array containing all of the collation orders
  69.      * returned by calls to next on the specified iterator
  70.      */
  71.     static int32_t* getOrders(UCollationElements* iter, int32_t *orderLength);
  72.  
  73.     
  74.     static void assertEqual(UCollationElements *i1, UCollationElements *i2);
  75.  
  76.     
  77.     static  UChar *test1;
  78.     static  UChar *test2;
  79.  
  80.  
  81.  
  82. #endif
  83.