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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/tools/genrb/read.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +/*
     1.5 +*******************************************************************************
     1.6 +*
     1.7 +*   Copyright (C) 1998-2011, International Business Machines
     1.8 +*   Corporation and others.  All Rights Reserved.
     1.9 +*
    1.10 +*******************************************************************************
    1.11 +*
    1.12 +* File read.h
    1.13 +*
    1.14 +* Modification History:
    1.15 +*
    1.16 +*   Date        Name        Description
    1.17 +*   05/26/99    stephen     Creation.
    1.18 +*   5/10/01     Ram         removed ustdio dependency
    1.19 +*******************************************************************************
    1.20 +*/
    1.21 +
    1.22 +#ifndef READ_H
    1.23 +#define READ_H 1
    1.24 +
    1.25 +#include "unicode/utypes.h"
    1.26 +#include "ustr.h"
    1.27 +#include "ucbuf.h"
    1.28 +
    1.29 +/* The types of tokens which may be returned by getNextToken.
    1.30 +   NOTE: Keep these in sync with tokenNames in parse.c */
    1.31 +enum ETokenType
    1.32 +{
    1.33 +    TOK_STRING,          /* A string token, such as "MonthNames" */
    1.34 +    TOK_OPEN_BRACE,      /* An opening brace character */
    1.35 +    TOK_CLOSE_BRACE,     /* A closing brace character */
    1.36 +    TOK_COMMA,           /* A comma */
    1.37 +    TOK_COLON,           /* A colon */
    1.38 +
    1.39 +    TOK_EOF,             /* End of the file has been reached successfully */
    1.40 +    TOK_ERROR,           /* An error, such an unterminated quoted string */
    1.41 +    TOK_TOKEN_COUNT      /* Number of "real" token types */
    1.42 +};
    1.43 +
    1.44 +U_CFUNC UChar32 unescape(UCHARBUF *buf, UErrorCode *status);
    1.45 +
    1.46 +U_CFUNC void resetLineNumber(void);
    1.47 +
    1.48 +U_CFUNC enum ETokenType
    1.49 +getNextToken(UCHARBUF *buf,
    1.50 +             struct UString *token,
    1.51 +             uint32_t *linenumber, /* out: linenumber of token */
    1.52 +             struct UString *comment,
    1.53 +             UErrorCode *status);
    1.54 +
    1.55 +#endif

mercurial