2000-04-20 19:43:32 +00:00
|
|
|
/*
|
|
|
|
******************************************************************************
|
|
|
|
*
|
2016-05-31 21:45:07 +00:00
|
|
|
* Copyright (C) 1998-2006, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
2000-04-20 19:43:32 +00:00
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* ucnvstat.c:
|
|
|
|
* UConverterStaticData prototypes for data based converters
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "unicode/ucnv.h"
|
2000-06-27 20:47:56 +00:00
|
|
|
#include "ucnv_bld.h"
|
2000-04-20 19:43:32 +00:00
|
|
|
|
2000-10-03 20:18:22 +00:00
|
|
|
|
2000-04-20 19:43:32 +00:00
|
|
|
static const UConverterStaticData _SBCSStaticData={
|
2000-12-19 23:07:50 +00:00
|
|
|
sizeof(UConverterStaticData),
|
|
|
|
"SBCS",
|
2000-04-20 19:43:32 +00:00
|
|
|
0, UCNV_IBM, UCNV_SBCS, 1, 1,
|
2000-12-20 20:34:23 +00:00
|
|
|
{ 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
|
2000-12-19 23:07:50 +00:00
|
|
|
0,
|
2001-02-26 19:44:41 +00:00
|
|
|
0,
|
|
|
|
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
|
2000-04-20 19:43:32 +00:00
|
|
|
};
|
|
|
|
|
2000-10-03 20:18:22 +00:00
|
|
|
|
2000-04-20 19:43:32 +00:00
|
|
|
static const UConverterStaticData _DBCSStaticData={
|
2000-12-19 23:07:50 +00:00
|
|
|
sizeof(UConverterStaticData),
|
|
|
|
"DBCS",
|
2000-04-20 19:43:32 +00:00
|
|
|
0, UCNV_IBM, UCNV_DBCS, 2, 2,
|
2000-12-20 20:34:23 +00:00
|
|
|
{ 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */
|
2000-12-19 23:07:50 +00:00
|
|
|
0,
|
2001-02-26 19:44:41 +00:00
|
|
|
0,
|
|
|
|
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
|
2000-04-20 19:43:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const UConverterStaticData _MBCSStaticData={
|
2000-12-19 23:07:50 +00:00
|
|
|
sizeof(UConverterStaticData),
|
|
|
|
"MBCS",
|
2000-04-20 19:43:32 +00:00
|
|
|
0, UCNV_IBM, UCNV_MBCS, 1, 1,
|
2000-12-20 20:34:23 +00:00
|
|
|
{ 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
|
2000-12-19 23:07:50 +00:00
|
|
|
0,
|
2001-02-26 19:44:41 +00:00
|
|
|
0,
|
|
|
|
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
|
2000-04-20 19:43:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const UConverterStaticData _EBCDICStatefulStaticData={
|
2000-12-19 23:07:50 +00:00
|
|
|
sizeof(UConverterStaticData),
|
|
|
|
"EBCDICStateful",
|
2000-04-20 19:43:32 +00:00
|
|
|
0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1,
|
2000-12-20 20:34:23 +00:00
|
|
|
{ 0, 0, 0, 0 },0, FALSE, FALSE,
|
2000-12-19 23:07:50 +00:00
|
|
|
0,
|
2001-02-26 19:44:41 +00:00
|
|
|
0,
|
|
|
|
{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
|
2000-04-20 19:43:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* NULLs for algorithmic types, their tables live in ucnv_bld.c */
|
|
|
|
const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
|
|
|
|
&_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/,
|
2001-02-26 19:44:41 +00:00
|
|
|
NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData,
|
2000-04-20 19:43:32 +00:00
|
|
|
NULL/*ISO2022*/,
|
|
|
|
/* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
|
|
|
|
};
|
2006-07-28 22:58:29 +00:00
|
|
|
|