1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
2001-03-21 23:22:16 +00:00
|
|
|
* Copyright (C) 1998-2000, International Business Machines
|
1999-12-13 22:28:37 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File rblist.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 06/01/99 stephen Creation.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RBLIST_H
|
|
|
|
#define RBLIST_H 1
|
|
|
|
|
1999-12-28 23:57:50 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "list.h"
|
|
|
|
|
|
|
|
/* A resource bundle data item */
|
|
|
|
struct SRBItem {
|
2000-05-15 18:39:17 +00:00
|
|
|
char *fTag;
|
|
|
|
int16_t fStrKey;
|
1999-08-16 21:50:52 +00:00
|
|
|
struct SList *fData;
|
2000-05-15 18:39:17 +00:00
|
|
|
struct SRBItem *fNext;
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* A list of RBItems */
|
|
|
|
struct SRBItemList {
|
|
|
|
UChar *fLocale;
|
2000-05-15 18:39:17 +00:00
|
|
|
char *fKeys;
|
|
|
|
int16_t fKeyPoint;
|
1999-08-16 21:50:52 +00:00
|
|
|
int32_t fCount;
|
|
|
|
int32_t fCapacity;
|
2000-05-15 18:39:17 +00:00
|
|
|
struct SRBItem *fFirst;
|
1999-08-16 21:50:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SRBItemList* rblist_open(UErrorCode *status);
|
2000-05-15 18:39:17 +00:00
|
|
|
|
2001-03-21 23:22:16 +00:00
|
|
|
struct SRBItem* make_rbitem(const UChar *tag, const struct SList *data,
|
2000-05-15 18:39:17 +00:00
|
|
|
UErrorCode *status);
|
|
|
|
|
1999-08-16 21:50:52 +00:00
|
|
|
void rblist_close(struct SRBItemList *list, UErrorCode *status);
|
|
|
|
|
2001-03-21 23:22:16 +00:00
|
|
|
void rblist_setlocale(struct SRBItemList *list, const UChar *locale,
|
1999-08-16 21:50:52 +00:00
|
|
|
UErrorCode *status);
|
2001-03-21 23:22:16 +00:00
|
|
|
void rblist_add(struct SRBItemList *list, struct SRBItem *s,
|
1999-08-16 21:50:52 +00:00
|
|
|
UErrorCode *status);
|
|
|
|
|
|
|
|
#endif
|