intl/icu/source/tools/genrb/read.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 *******************************************************************************
michael@0 3 *
michael@0 4 * Copyright (C) 1998-2011, International Business Machines
michael@0 5 * Corporation and others. All Rights Reserved.
michael@0 6 *
michael@0 7 *******************************************************************************
michael@0 8 *
michael@0 9 * File read.h
michael@0 10 *
michael@0 11 * Modification History:
michael@0 12 *
michael@0 13 * Date Name Description
michael@0 14 * 05/26/99 stephen Creation.
michael@0 15 * 5/10/01 Ram removed ustdio dependency
michael@0 16 *******************************************************************************
michael@0 17 */
michael@0 18
michael@0 19 #ifndef READ_H
michael@0 20 #define READ_H 1
michael@0 21
michael@0 22 #include "unicode/utypes.h"
michael@0 23 #include "ustr.h"
michael@0 24 #include "ucbuf.h"
michael@0 25
michael@0 26 /* The types of tokens which may be returned by getNextToken.
michael@0 27 NOTE: Keep these in sync with tokenNames in parse.c */
michael@0 28 enum ETokenType
michael@0 29 {
michael@0 30 TOK_STRING, /* A string token, such as "MonthNames" */
michael@0 31 TOK_OPEN_BRACE, /* An opening brace character */
michael@0 32 TOK_CLOSE_BRACE, /* A closing brace character */
michael@0 33 TOK_COMMA, /* A comma */
michael@0 34 TOK_COLON, /* A colon */
michael@0 35
michael@0 36 TOK_EOF, /* End of the file has been reached successfully */
michael@0 37 TOK_ERROR, /* An error, such an unterminated quoted string */
michael@0 38 TOK_TOKEN_COUNT /* Number of "real" token types */
michael@0 39 };
michael@0 40
michael@0 41 U_CFUNC UChar32 unescape(UCHARBUF *buf, UErrorCode *status);
michael@0 42
michael@0 43 U_CFUNC void resetLineNumber(void);
michael@0 44
michael@0 45 U_CFUNC enum ETokenType
michael@0 46 getNextToken(UCHARBUF *buf,
michael@0 47 struct UString *token,
michael@0 48 uint32_t *linenumber, /* out: linenumber of token */
michael@0 49 struct UString *comment,
michael@0 50 UErrorCode *status);
michael@0 51
michael@0 52 #endif

mercurial