michael@0: /* michael@0: ****************************************************************************** michael@0: * michael@0: * Copyright (C) 1998-2006, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ****************************************************************************** michael@0: * michael@0: * michael@0: * ucnvstat.c: michael@0: * UConverterStaticData prototypes for data based converters michael@0: */ michael@0: michael@0: #include "unicode/utypes.h" michael@0: #include "unicode/ucnv.h" michael@0: #include "ucnv_bld.h" michael@0: michael@0: michael@0: static const UConverterStaticData _SBCSStaticData={ michael@0: sizeof(UConverterStaticData), michael@0: "SBCS", michael@0: 0, UCNV_IBM, UCNV_SBCS, 1, 1, michael@0: { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE, michael@0: 0, michael@0: 0, michael@0: { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ michael@0: }; michael@0: michael@0: michael@0: static const UConverterStaticData _DBCSStaticData={ michael@0: sizeof(UConverterStaticData), michael@0: "DBCS", michael@0: 0, UCNV_IBM, UCNV_DBCS, 2, 2, michael@0: { 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */ michael@0: 0, michael@0: 0, michael@0: { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ michael@0: }; michael@0: michael@0: static const UConverterStaticData _MBCSStaticData={ michael@0: sizeof(UConverterStaticData), michael@0: "MBCS", michael@0: 0, UCNV_IBM, UCNV_MBCS, 1, 1, michael@0: { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE, michael@0: 0, michael@0: 0, michael@0: { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ michael@0: }; michael@0: michael@0: static const UConverterStaticData _EBCDICStatefulStaticData={ michael@0: sizeof(UConverterStaticData), michael@0: "EBCDICStateful", michael@0: 0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1, michael@0: { 0, 0, 0, 0 },0, FALSE, FALSE, michael@0: 0, michael@0: 0, michael@0: { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ michael@0: }; michael@0: michael@0: /* NULLs for algorithmic types, their tables live in ucnv_bld.c */ michael@0: const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={ michael@0: &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/, michael@0: NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData, michael@0: NULL/*ISO2022*/, michael@0: /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL michael@0: }; michael@0: