]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/makeconv/ucnvstat.c
ICU-6.2.21.tar.gz
[apple/icu.git] / icuSources / tools / makeconv / ucnvstat.c
1 /*
2 ******************************************************************************
3 *
4 * Copyright (C) 1998-2001, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 ******************************************************************************
8 *
9 *
10 * ucnvstat.c:
11 * UConverterStaticData prototypes for data based converters
12 */
13
14 #include "unicode/utypes.h"
15 #include "unicode/ucnv.h"
16 #include "ucnv_bld.h"
17
18
19 static const UConverterStaticData _SBCSStaticData={
20 sizeof(UConverterStaticData),
21 "SBCS",
22 0, UCNV_IBM, UCNV_SBCS, 1, 1,
23 { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
24 0,
25 0,
26 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
27 };
28
29
30 static const UConverterStaticData _DBCSStaticData={
31 sizeof(UConverterStaticData),
32 "DBCS",
33 0, UCNV_IBM, UCNV_DBCS, 2, 2,
34 { 0, 0, 0, 0 },0, FALSE, FALSE, /* subchar */
35 0,
36 0,
37 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
38 };
39
40 static const UConverterStaticData _MBCSStaticData={
41 sizeof(UConverterStaticData),
42 "MBCS",
43 0, UCNV_IBM, UCNV_MBCS, 1, 1,
44 { 0x1a, 0, 0, 0 }, 1, FALSE, FALSE,
45 0,
46 0,
47 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
48 };
49
50 static const UConverterStaticData _EBCDICStatefulStaticData={
51 sizeof(UConverterStaticData),
52 "EBCDICStateful",
53 0, UCNV_IBM, UCNV_EBCDIC_STATEFUL, 1, 1,
54 { 0, 0, 0, 0 },0, FALSE, FALSE,
55 0,
56 0,
57 { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } /* reserved */
58 };
59
60 /* NULLs for algorithmic types, their tables live in ucnv_bld.c */
61 const UConverterStaticData *ucnv_converterStaticData[UCNV_NUMBER_OF_SUPPORTED_CONVERTER_TYPES]={
62 &_SBCSStaticData, &_DBCSStaticData, &_MBCSStaticData, NULL/*Lat1*/,
63 NULL/*UTF8*/, NULL/*UTF16be*/, NULL/*UTF16LE*/, NULL/*UTF32be*/, NULL/*UTF32LE*/, &_EBCDICStatefulStaticData,
64 NULL/*ISO2022*/,
65 /* LMBCS */ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
66 };