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

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

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