intl/icu/source/tools/makeconv/ucnvstat.c

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.

     1 /*
     2  ******************************************************************************
     3  *
     4  *   Copyright (C) 1998-2006, International Business Machines
     5  *   Corporation and others.  All Rights Reserved.
     6  *
     7  ******************************************************************************
     8  *
     9  *
    10  *  ucnvstat.c:
    11  *  UConverterStaticData prototypes for data based converters
    12  */
    14 #include "unicode/utypes.h"
    15 #include "unicode/ucnv.h"
    16 #include "ucnv_bld.h"
    19 static const UConverterStaticData _SBCSStaticData={
    20     sizeof(UConverterStaticData),
    21     "SBCS",
    22     0, UCNV_IBM, UCNV_SBCS, 1, 1,
    23     { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
    24     0,
    25     0,
    26     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
    27 };
    30 static const UConverterStaticData _DBCSStaticData={
    31     sizeof(UConverterStaticData),
    32     "DBCS",
    33     0, UCNV_IBM, UCNV_DBCS, 2, 2,
    34     { 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */
    35     0,
    36     0,
    37     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
    38 };
    40 static const UConverterStaticData _MBCSStaticData={
    41     sizeof(UConverterStaticData),
    42     "MBCS",
    43     0, UCNV_IBM, UCNV_MBCS, 1, 1,
    44     { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
    45     0,
    46     0,
    47     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
    48 };
    50 static const UConverterStaticData _EBCDICStatefulStaticData={
    51     sizeof(UConverterStaticData),
    52     "EBCDICStateful",
    53     0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1,
    54     { 0, 0, 0, 0 },0, FALSE, FALSE,
    55     0,
    56     0,
    57     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
    58 };
    60 /* NULLs for algorithmic types, their tables live in ucnv_bld.c */
    61 const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
    62     &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/,
    63     NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData,
    64     NULL/*ISO2022*/,
    65     /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
    66 };

mercurial