home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / tools / genrb / rblist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.6 KB  |  53 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 rblist.h
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   06/01/99    stephen     Creation.
  18. *******************************************************************************
  19. */
  20.  
  21. #ifndef RBLIST_H
  22. #define RBLIST_H 1
  23.  
  24. #include "utypes.h"
  25. #include "list.h"
  26.  
  27. /* A resource bundle data item */
  28. struct SRBItem {
  29.   UChar *fTag;
  30.   struct SList *fData;
  31. };
  32.  
  33. struct SRBItem* make_rbitem(const UChar *tag, const struct SList *data, 
  34.                 UErrorCode *status);
  35.  
  36. /* A list of RBItems */
  37. struct SRBItemList {
  38.   UChar *fLocale;
  39.   struct SRBItem **fData;
  40.   int32_t fCount;
  41.   int32_t fCapacity;
  42. };
  43.  
  44. struct SRBItemList* rblist_open(UErrorCode *status);
  45. void rblist_close(struct SRBItemList *list, UErrorCode *status);
  46.  
  47. void rblist_setlocale(struct SRBItemList *list, const UChar *locale, 
  48.               UErrorCode *status);
  49. void rblist_add(struct SRBItemList *list, struct SRBItem *s, 
  50.         UErrorCode *status);
  51.  
  52. #endif
  53.