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

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

mercurial