home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / test / cintltst / cintltst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  2.5 KB  |  73 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 CINTLTST.H
  15. *
  16. *     Madhu Katragadda               Creation
  17. * Modification History:
  18. *   Date        Name        Description            
  19. *   07/13/99    helena      HPUX 11 CC port.
  20. *********************************************************************************
  21.  
  22. The main root for C API tests
  23. */
  24.  
  25. #ifndef _CINTLTST
  26. #define _CINTLTST
  27.  
  28. #include "utypes.h"
  29. #include "ctest.h"
  30.  
  31. U_CFUNC void addAllTests(TestNode** root);
  32.  
  33. /**
  34.  *complete a relative path to a full pathname, and convert to platform-specific syntax. 
  35.  * The character seperating directories for the relative path is '|'.
  36.  * @fullname the full path name
  37.  * @maxsize the maximum size of the string
  38.  * @relPath the relative path name
  39.  */
  40. U_CFUNC void ctest_pathnameInContext(char* fullname, int32_t maxsize, const char* relPath ) ;
  41. /**
  42.  *Fetches the current path name of the test directory
  43.  *returns the path of the test directory
  44.  */
  45. U_CFUNC const char* ctest_getTestDirectory(void);
  46. /**
  47.  *
  48.  * sets the path of the test directory
  49.  * @param newDir the test directory to be set
  50.  */
  51.  
  52. U_CFUNC void ctest_setTestDirectory(const char* newDir); 
  53. /**
  54.  * Convert a const UChar* into a char*
  55.  * Caller owns storage, but in practice this function
  56.  * LEAKS so be aware of that.
  57.  * @param unichars UChars (null terminated) to be converted
  58.  * @return new char* to the unichars in host format
  59.  */
  60.  
  61. U_CFUNC char *austrdup(const UChar* unichars);
  62.  
  63.  
  64. /**
  65.  * function used to specify the error
  66.  * converts the errorcode to an error descriptive string(const char*)
  67.  * @param status the error code
  68.  */
  69. #define myErrorName(errorCode) errorName(errorCode)
  70.  
  71.  
  72. #endif
  73.