2 * Copyright (c) 2003, Artem B. Bityuckiy, SoftMine Corporation.
3 * Rights transferred to Franklin Electronic Publishers.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 #ifdef _ICONV_CONVERTER_BIG5
30 extern _CONST unsigned char _iconv_ccs_table_big5[];
32 #ifdef _ICONV_CONVERTER_CNS11643_PLANE1
33 extern _CONST unsigned char _iconv_ccs_table_cns11643_plane1[];
35 #ifdef _ICONV_CONVERTER_CNS11643_PLANE2
36 extern _CONST unsigned char _iconv_ccs_table_cns11643_plane2[];
38 #ifdef _ICONV_CONVERTER_CNS11643_PLANE14
39 extern _CONST unsigned char _iconv_ccs_table_cns11643_plane14[];
41 #ifdef _ICONV_CONVERTER_CP775
42 extern _CONST unsigned char _iconv_ccs_table_cp775[];
44 #ifdef _ICONV_CONVERTER_CP850
45 extern _CONST unsigned char _iconv_ccs_table_cp850[];
47 #ifdef _ICONV_CONVERTER_CP852
48 extern _CONST unsigned char _iconv_ccs_table_cp852[];
50 #ifdef _ICONV_CONVERTER_CP855
51 extern _CONST unsigned char _iconv_ccs_table_cp855[];
53 #ifdef _ICONV_CONVERTER_CP866
54 extern _CONST unsigned char _iconv_ccs_table_cp866[];
56 #ifdef _ICONV_CONVERTER_GB_2312_80
57 extern _CONST unsigned char _iconv_ccs_table_gb_2312_80[];
59 #ifdef _ICONV_CONVERTER_ISO_8859_1
60 extern _CONST unsigned char _iconv_ccs_table_iso_8859_1[];
62 #ifdef _ICONV_CONVERTER_ISO_8859_15
63 extern _CONST unsigned char _iconv_ccs_table_iso_8859_15[];
65 #ifdef _ICONV_CONVERTER_ISO_8859_2
66 extern _CONST unsigned char _iconv_ccs_table_iso_8859_2[];
68 #ifdef _ICONV_CONVERTER_ISO_8859_4
69 extern _CONST unsigned char _iconv_ccs_table_iso_8859_4[];
71 #ifdef _ICONV_CONVERTER_ISO_8859_5
72 extern _CONST unsigned char _iconv_ccs_table_iso_8859_5[];
74 #ifdef _ICONV_CONVERTER_JIS_X0201
75 extern _CONST unsigned char _iconv_ccs_table_jis_x0201[];
77 #ifdef _ICONV_CONVERTER_JIS_X0208_1983
78 extern _CONST unsigned char _iconv_ccs_table_jis_x0208_1983[];
80 #ifdef _ICONV_CONVERTER_JIS_X0212_1990
81 extern _CONST unsigned char _iconv_ccs_table_jis_x0212_1990[];
83 #ifdef _ICONV_CONVERTER_KOI8_R
84 extern _CONST unsigned char _iconv_ccs_table_koi8_r[];
86 #ifdef _ICONV_CONVERTER_KOI8_U
87 extern _CONST unsigned char _iconv_ccs_table_koi8_u[];
89 #ifdef _ICONV_CONVERTER_KSX1001
90 extern _CONST unsigned char _iconv_ccs_table_ksx1001[];
92 #ifdef _ICONV_CONVERTER_SHIFT_JIS
93 extern _CONST unsigned char _iconv_ccs_table_shift_jis[];
95 #ifdef _ICONV_CONVERTER_US_ASCII
96 extern _CONST unsigned char _iconv_ccs_table_us_ascii[];
99 _CONST iconv_builtin_table_t _iconv_builtin_ccs[] =
101 #ifdef _ICONV_CONVERTER_BIG5
102 {"big5", (_CONST _VOID_PTR)&_iconv_ccs_table_big5},
104 #ifdef _ICONV_CONVERTER_CNS11643_PLANE1
105 {"cns11643_plane1", (_CONST _VOID_PTR)&_iconv_ccs_table_cns11643_plane1},
107 #ifdef _ICONV_CONVERTER_CNS11643_PLANE2
108 {"cns11643_plane2", (_CONST _VOID_PTR)&_iconv_ccs_table_cns11643_plane2},
110 #ifdef _ICONV_CONVERTER_CNS11643_PLANE14
111 {"cns11643_plane14", (_CONST _VOID_PTR)&_iconv_ccs_table_cns11643_plane14},
113 #ifdef _ICONV_CONVERTER_CP775
114 {"cp775", (_CONST _VOID_PTR)&_iconv_ccs_table_cp775},
116 #ifdef _ICONV_CONVERTER_CP850
117 {"cp850", (_CONST _VOID_PTR)&_iconv_ccs_table_cp850},
119 #ifdef _ICONV_CONVERTER_CP852
120 {"cp852", (_CONST _VOID_PTR)&_iconv_ccs_table_cp852},
122 #ifdef _ICONV_CONVERTER_CP855
123 {"cp855", (_CONST _VOID_PTR)&_iconv_ccs_table_cp855},
125 #ifdef _ICONV_CONVERTER_CP866
126 {"cp866", (_CONST _VOID_PTR)&_iconv_ccs_table_cp866},
128 #ifdef _ICONV_CONVERTER_GB_2312_80
129 {"gb_2312_80", (_CONST _VOID_PTR)&_iconv_ccs_table_gb_2312_80},
131 #ifdef _ICONV_CONVERTER_ISO_8859_1
132 {"iso_8859_1", (_CONST _VOID_PTR)&_iconv_ccs_table_iso_8859_1},
134 #ifdef _ICONV_CONVERTER_ISO_8859_15
135 {"iso_8859_15", (_CONST _VOID_PTR)&_iconv_ccs_table_iso_8859_15},
137 #ifdef _ICONV_CONVERTER_ISO_8859_2
138 {"iso_8859_2", (_CONST _VOID_PTR)&_iconv_ccs_table_iso_8859_2},
140 #ifdef _ICONV_CONVERTER_ISO_8859_4
141 {"iso_8859_4", (_CONST _VOID_PTR)&_iconv_ccs_table_iso_8859_4},
143 #ifdef _ICONV_CONVERTER_ISO_8859_5
144 {"iso_8859_5", (_CONST _VOID_PTR)&_iconv_ccs_table_iso_8859_5},
146 #ifdef _ICONV_CONVERTER_JIS_X0201
147 {"jis_x0201", (_CONST _VOID_PTR)&_iconv_ccs_table_jis_x0201},
149 #ifdef _ICONV_CONVERTER_JIS_X0208_1983
150 {"jis_x0208_1983", (_CONST _VOID_PTR)&_iconv_ccs_table_jis_x0208_1983},
152 #ifdef _ICONV_CONVERTER_JIS_X0212_1990
153 {"jis_x0212_1990", (_CONST _VOID_PTR)&_iconv_ccs_table_jis_x0212_1990},
155 #ifdef _ICONV_CONVERTER_KOI8_R
156 {"koi8_r", (_CONST _VOID_PTR)&_iconv_ccs_table_koi8_r},
158 #ifdef _ICONV_CONVERTER_KOI8_U
159 {"koi8_u", (_CONST _VOID_PTR)&_iconv_ccs_table_koi8_u},
161 #ifdef _ICONV_CONVERTER_KSX1001
162 {"ksx1001", (_CONST _VOID_PTR)&_iconv_ccs_table_ksx1001},
164 #ifdef _ICONV_CONVERTER_SHIFT_JIS
165 {"shift_jis", (_CONST _VOID_PTR)&_iconv_ccs_table_shift_jis},
167 #ifdef _ICONV_CONVERTER_US_ASCII
168 {"us_ascii", (_CONST _VOID_PTR)&_iconv_ccs_table_us_ascii},
170 {NULL, (_CONST _VOID_PTR)NULL}