home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / cintltst / nccbtst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  2.5 KB  |  59 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 NCCBTST.H
  15. *
  16. * Modification History:
  17. *        Name                     Description            
  18. *     Madhu Katragadda           creation
  19. *********************************************************************************
  20. */
  21. #ifndef _NUCNVTST
  22. #define _NUCNVTST
  23. /* C API TEST FOR CALL BACK ROUTINES OF CODESET CONVERSION COMPONENT */
  24. #include "cintltst.h"
  25. #include "utypes.h"
  26.  
  27.  
  28. static void TestSkipCallBack(void);
  29. static void TestSubCallBack(void);
  30. static void TestSubWithValueCallBack(void);
  31. static void TestLegalAndOtherCallBack(void);
  32. static void TestSingleByteCallBack(void);
  33.  
  34. static void TestSkip(int32_t inputsize, int32_t outputsize);
  35.  
  36. static void TestSub(int32_t inputsize, int32_t outputsize);
  37.  
  38. static void TestSubWithValue(int32_t inputsize, int32_t outputsize);
  39.  
  40. static void TestLegalAndOthers(int32_t inputsize, int32_t outputsize);
  41. static void TestSingleByte(int32_t inputsize, int32_t outputsize);
  42.  
  43. bool_t testConvertFromUnicode(const UChar *source, int sourceLen,  const char *expect, int expectLen, 
  44.                 const char *codepage, UConverterFromUCallback callback, int32_t *expectOffsets);
  45.  
  46.  
  47. bool_t testConvertToUnicode( const char *source, int sourcelen, const UChar *expect, int expectlen, 
  48.                const char *codepage, UConverterToUCallback callback, int32_t *expectOffsets);
  49.  
  50.  
  51. static void printSeq(const char* a, int len);
  52. static void printUSeq(const UChar* a, int len);
  53. static void printSeqErr(const char* a, int len);
  54. static void printUSeqErr(const UChar* a, int len);
  55. static void setNuConvTestName(const char *codepage, const char *direction);
  56.  
  57.  
  58. #endif
  59.