12e5b6d6dSopenharmony_ci// © 2016 and later: Unicode, Inc. and others. 22e5b6d6dSopenharmony_ci// License & terms of use: http://www.unicode.org/copyright.html 32e5b6d6dSopenharmony_ci/* 42e5b6d6dSopenharmony_ci ****************************************************************************** 52e5b6d6dSopenharmony_ci * 62e5b6d6dSopenharmony_ci * Copyright (C) 1998-2006, International Business Machines 72e5b6d6dSopenharmony_ci * Corporation and others. All Rights Reserved. 82e5b6d6dSopenharmony_ci * 92e5b6d6dSopenharmony_ci ****************************************************************************** 102e5b6d6dSopenharmony_ci * 112e5b6d6dSopenharmony_ci * 122e5b6d6dSopenharmony_ci * ucnvstat.c: 132e5b6d6dSopenharmony_ci * UConverterStaticData prototypes for data based converters 142e5b6d6dSopenharmony_ci */ 152e5b6d6dSopenharmony_ci 162e5b6d6dSopenharmony_ci#include <stdbool.h> 172e5b6d6dSopenharmony_ci 182e5b6d6dSopenharmony_ci#include "unicode/utypes.h" 192e5b6d6dSopenharmony_ci#include "unicode/ucnv.h" 202e5b6d6dSopenharmony_ci#include "toolutil.h" 212e5b6d6dSopenharmony_ci#include "ucnv_bld.h" 222e5b6d6dSopenharmony_ci 232e5b6d6dSopenharmony_ci 242e5b6d6dSopenharmony_cistatic const UConverterStaticData _SBCSStaticData={ 252e5b6d6dSopenharmony_ci sizeof(UConverterStaticData), 262e5b6d6dSopenharmony_ci "SBCS", 272e5b6d6dSopenharmony_ci 0, UCNV_IBM, UCNV_SBCS, 1, 1, 282e5b6d6dSopenharmony_ci { 0x1a, 0, 0, 0 }, 1, false, false, 292e5b6d6dSopenharmony_ci 0, 302e5b6d6dSopenharmony_ci 0, 312e5b6d6dSopenharmony_ci { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 322e5b6d6dSopenharmony_ci}; 332e5b6d6dSopenharmony_ci 342e5b6d6dSopenharmony_ci 352e5b6d6dSopenharmony_cistatic const UConverterStaticData _DBCSStaticData={ 362e5b6d6dSopenharmony_ci sizeof(UConverterStaticData), 372e5b6d6dSopenharmony_ci "DBCS", 382e5b6d6dSopenharmony_ci 0, UCNV_IBM, UCNV_DBCS, 2, 2, 392e5b6d6dSopenharmony_ci { 0, 0, 0, 0 },0, false, false, /* subchar */ 402e5b6d6dSopenharmony_ci 0, 412e5b6d6dSopenharmony_ci 0, 422e5b6d6dSopenharmony_ci { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 432e5b6d6dSopenharmony_ci}; 442e5b6d6dSopenharmony_ci 452e5b6d6dSopenharmony_cistatic const UConverterStaticData _MBCSStaticData={ 462e5b6d6dSopenharmony_ci sizeof(UConverterStaticData), 472e5b6d6dSopenharmony_ci "MBCS", 482e5b6d6dSopenharmony_ci 0, UCNV_IBM, UCNV_MBCS, 1, 1, 492e5b6d6dSopenharmony_ci { 0x1a, 0, 0, 0 }, 1, false, false, 502e5b6d6dSopenharmony_ci 0, 512e5b6d6dSopenharmony_ci 0, 522e5b6d6dSopenharmony_ci { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 532e5b6d6dSopenharmony_ci}; 542e5b6d6dSopenharmony_ci 552e5b6d6dSopenharmony_cistatic const UConverterStaticData _EBCDICStatefulStaticData={ 562e5b6d6dSopenharmony_ci sizeof(UConverterStaticData), 572e5b6d6dSopenharmony_ci "EBCDICStateful", 582e5b6d6dSopenharmony_ci 0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1, 592e5b6d6dSopenharmony_ci { 0, 0, 0, 0 },0, false, false, 602e5b6d6dSopenharmony_ci 0, 612e5b6d6dSopenharmony_ci 0, 622e5b6d6dSopenharmony_ci { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */ 632e5b6d6dSopenharmony_ci}; 642e5b6d6dSopenharmony_ci 652e5b6d6dSopenharmony_ci/* NULLs for algorithmic types, their tables live in ucnv_bld.c */ 662e5b6d6dSopenharmony_ciconst UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={ 672e5b6d6dSopenharmony_ci &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/, 682e5b6d6dSopenharmony_ci NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData, 692e5b6d6dSopenharmony_ci NULL/*ISO2022*/, 702e5b6d6dSopenharmony_ci /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL 712e5b6d6dSopenharmony_ci}; 722e5b6d6dSopenharmony_ci 73