home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / tools / genrb / ustr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.6 KB  |  51 lines

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright International Business Machines Corporation, 1998, 1999     *
  6. *   Licensed Material - Program-Property of IBM - All Rights Reserved.        *
  7. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  8. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  9. *                                                                             *
  10. *******************************************************************************
  11. *
  12. * File ustr.h
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   05/28/99    stephen     Creation.
  18. *******************************************************************************
  19. */
  20.  
  21. #ifndef USTR_H
  22. #define USTR_H 1
  23.  
  24. #include "utypes.h"
  25.  
  26. /* A C representation of a string "object" (to avoid realloc all the time) */
  27. struct UString {
  28.   UChar *fChars;
  29.   int32_t fLength;
  30.   int32_t fCapacity;
  31. };
  32.  
  33. void ustr_init(struct UString *s);
  34.  
  35. void ustr_deinit(struct UString *s);
  36.  
  37. void ustr_setlen(struct UString *s, int32_t len, UErrorCode *status);
  38.  
  39. void ustr_cpy(struct UString *dst, const struct UString *src, 
  40.           UErrorCode *status);
  41.  
  42. void ustr_cat(struct UString *dst, const struct UString *src,
  43.           UErrorCode *status);
  44.  
  45. void ustr_ncat(struct UString *dst, const struct UString *src, 
  46.            int32_t n, UErrorCode *status);
  47.  
  48. void ustr_ucat(struct UString *dst, UChar c, UErrorCode *status);
  49.  
  50. #endif
  51.