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