1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 ******************************************************************************
6 * Copyright (C) 1998-2006, International Business Machines
7 * Corporation and others. All Rights Reserved.
9 ******************************************************************************
13 * UConverterStaticData prototypes for data based converters
16 #include "unicode/utypes.h"
17 #include "unicode/ucnv.h"
21 static const UConverterStaticData _SBCSStaticData
={
22 sizeof(UConverterStaticData
),
24 0, UCNV_IBM
, UCNV_SBCS
, 1, 1,
25 { 0x1a, 0, 0, 0 }, 1, FALSE
, FALSE
,
28 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
32 static const UConverterStaticData _DBCSStaticData
={
33 sizeof(UConverterStaticData
),
35 0, UCNV_IBM
, UCNV_DBCS
, 2, 2,
36 { 0, 0, 0, 0 },0, FALSE
, FALSE
, /* subchar */
39 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
42 static const UConverterStaticData _MBCSStaticData
={
43 sizeof(UConverterStaticData
),
45 0, UCNV_IBM
, UCNV_MBCS
, 1, 1,
46 { 0x1a, 0, 0, 0 }, 1, FALSE
, FALSE
,
49 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
52 static const UConverterStaticData _EBCDICStatefulStaticData
={
53 sizeof(UConverterStaticData
),
55 0, UCNV_IBM
, UCNV_EBCDIC_STATEFUL
, 1, 1,
56 { 0, 0, 0, 0 },0, FALSE
, FALSE
,
59 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
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
,
67 /* LMBCS */ NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL
, NULL