10596faeddefbf198de137d5e893708495ab1584cFredrik Roubert// © 2016 and later: Unicode, Inc. and others. 264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert// License & terms of use: http://www.unicode.org/copyright.html 3ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru/* 4ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru ****************************************************************************** 5ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 6ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * Copyright (C) 1998-2006, International Business Machines 7ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * Corporation and others. All Rights Reserved. 8ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 9ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru ****************************************************************************** 10ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 11ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * 12ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * ucnvstat.c: 13ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru * UConverterStaticData prototypes for data based converters 14ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru */ 15ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 16ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "unicode/utypes.h" 17ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "unicode/ucnv.h" 18ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru#include "ucnv_bld.h" 19ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 20ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 21ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querustatic const UConverterStaticData _SBCSStaticData={ 22ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru sizeof(UConverterStaticData), 23ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru "SBCS", 24ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, UCNV_IBM, UCNV_SBCS, 1, 1, 25ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE, 26ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 27ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 28ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 29ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 30ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 31ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 32ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querustatic const UConverterStaticData _DBCSStaticData={ 33ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru sizeof(UConverterStaticData), 34ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru "DBCS", 35ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, UCNV_IBM, UCNV_DBCS, 2, 2, 36ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */ 37ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 38ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 39ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 40ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 41ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 42ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querustatic const UConverterStaticData _MBCSStaticData={ 43ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru sizeof(UConverterStaticData), 44ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru "MBCS", 45ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, UCNV_IBM, UCNV_MBCS, 1, 1, 46ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE, 47ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 48ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 49ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 50ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 51ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 52ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Querustatic const UConverterStaticData _EBCDICStatefulStaticData={ 53ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru sizeof(UConverterStaticData), 54ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru "EBCDICStateful", 55ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1, 56ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0, 0, 0, 0 },0, FALSE, FALSE, 57ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 58ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 0, 59ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 60ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 61ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 62ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru/* NULLs for algorithmic types, their tables live in ucnv_bld.c */ 63ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queruconst UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={ 64ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/, 65ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData, 66ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru NULL/*ISO2022*/, 67ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL 68ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru}; 69ac04d0bbe12b3ef54518635711412f178cb4d16Jean-Baptiste Queru 70