1999-08-16 21:50:52 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
1999-12-13 22:28:37 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 1998-1999, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
*
|
1999-08-16 21:50:52 +00:00
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* File rbread.h
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 06/14/99 stephen Creation.
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RBREAD_H
|
|
|
|
#define RBREAD_H 1
|
|
|
|
|
1999-12-28 23:39:02 +00:00
|
|
|
#include "unicode/utypes.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
#include "filestrm.h"
|
|
|
|
#include "uhash.h"
|
1999-12-28 23:39:02 +00:00
|
|
|
#include "unicode/unistr.h"
|
1999-08-16 21:50:52 +00:00
|
|
|
|
|
|
|
/* Byte order mark for compiled resource bundle files */
|
|
|
|
static const int32_t sBOM = 0x021C;
|
|
|
|
|
|
|
|
/* Type of resource indicators */
|
|
|
|
static const int32_t sSTRINGLIST = 1;
|
|
|
|
static const int32_t sSTRINGLIST2D = 2;
|
|
|
|
static const int32_t sTAGGEDLIST = 3;
|
|
|
|
|
|
|
|
/* EOF indicator */
|
|
|
|
static const int32_t sEOF = -1;
|
|
|
|
|
|
|
|
/* Parse a compiled resource bundle into a hashtable and locale name */
|
|
|
|
UHashtable* rb_parse(FileStream *f,
|
|
|
|
UnicodeString& localename,
|
|
|
|
UErrorCode& status);
|
|
|
|
|
|
|
|
#endif /* ! RBREAD_H */
|