Home | History | Annotate | Download | only in makeconv
      1 // Copyright (C) 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 "unicode/utypes.h"
     17 #include "unicode/ucnv.h"
     18 #include "ucnv_bld.h"
     19 
     20 
     21 static const UConverterStaticData _SBCSStaticData={
     22     sizeof(UConverterStaticData),
     23     "SBCS",
     24     0, UCNV_IBM, UCNV_SBCS, 1, 1,
     25     { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
     26     0,
     27     0,
     28     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
     29 };
     30 
     31 
     32 static const UConverterStaticData _DBCSStaticData={
     33     sizeof(UConverterStaticData),
     34     "DBCS",
     35     0, UCNV_IBM, UCNV_DBCS, 2, 2,
     36     { 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */
     37     0,
     38     0,
     39     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
     40 };
     41 
     42 static const UConverterStaticData _MBCSStaticData={
     43     sizeof(UConverterStaticData),
     44     "MBCS",
     45     0, UCNV_IBM, UCNV_MBCS, 1, 1,
     46     { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
     47     0,
     48     0,
     49     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
     50 };
     51 
     52 static const UConverterStaticData _EBCDICStatefulStaticData={
     53     sizeof(UConverterStaticData),
     54     "EBCDICStateful",
     55     0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1,
     56     { 0, 0, 0, 0 },0, FALSE, FALSE,
     57     0,
     58     0,
     59     { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
     60 };
     61 
     62 /* NULLs for algorithmic types, their tables live in ucnv_bld.c */
     63 const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
     64     &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/,
     65     NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData,
     66     NULL/*ISO2022*/,
     67     /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
     68 };
     69 
     70