scuffed-code/icu4c/source/tools/genrb/rblist.h

55 lines
1.3 KiB
C
Raw Normal View History

1999-08-16 21:50:52 +00:00
/*
*******************************************************************************
*
* Copyright (C) 1998-2000, International Business Machines
* 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
#include "unicode/utypes.h"
1999-08-16 21:50:52 +00:00
#include "list.h"
/* A resource bundle data item */
struct SRBItem {
char *fTag;
int16_t fStrKey;
1999-08-16 21:50:52 +00:00
struct SList *fData;
struct SRBItem *fNext;
1999-08-16 21:50:52 +00:00
};
/* A list of RBItems */
struct SRBItemList {
UChar *fLocale;
char *fKeys;
int16_t fKeyPoint;
1999-08-16 21:50:52 +00:00
int32_t fCount;
int32_t fCapacity;
struct SRBItem *fFirst;
1999-08-16 21:50:52 +00:00
};
struct SRBItemList* rblist_open(UErrorCode *status);
struct SRBItem* make_rbitem(const UChar *tag, const struct SList *data,
UErrorCode *status);
1999-08-16 21:50:52 +00:00
void rblist_close(struct SRBItemList *list, UErrorCode *status);
void rblist_setlocale(struct SRBItemList *list, const UChar *locale,
1999-08-16 21:50:52 +00:00
UErrorCode *status);
void rblist_add(struct SRBItemList *list, struct SRBItem *s,
1999-08-16 21:50:52 +00:00
UErrorCode *status);
#endif