1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	SB_TO_UCS_H
27 #define	SB_TO_UCS_H
28 
29 
30 #include "common_defs.h"
31 
32 
33 static const to_utf8_table_component_t sb_u4_tbl[256] = {
34 #if defined(US_ASCII)
35 #include "tbls/us-ascii_to_ucs4.tbl"
36 
37 #elif defined(ISO_8859_1)
38 #include "tbls/iso-8859-1_to_ucs4.tbl"
39 
40 #elif defined(ISO_8859_2)
41 #include "tbls/iso-8859-2_to_ucs4.tbl"
42 
43 #elif defined(ISO_8859_3)
44 #include "tbls/iso-8859-3_to_ucs4.tbl"
45 
46 #elif defined(ISO_8859_4)
47 #include "tbls/iso-8859-4_to_ucs4.tbl"
48 
49 #elif defined(ISO_8859_5)
50 #include "tbls/iso-8859-5_to_ucs4.tbl"
51 
52 #elif defined(ISO_8859_6)
53 #include "tbls/iso-8859-6_to_ucs4.tbl"
54 
55 #elif defined(ISO_8859_7)
56 #include "tbls/iso-8859-7_to_ucs4.tbl"
57 
58 #elif defined(ISO_8859_8)
59 #include "tbls/iso-8859-8_to_ucs4.tbl"
60 
61 #elif defined(ISO_8859_9)
62 #include "tbls/iso-8859-9_to_ucs4.tbl"
63 
64 #elif defined(ISO_8859_10)
65 #include "tbls/iso-8859-10_to_ucs4.tbl"
66 
67 #elif defined(ISO_8859_13)
68 #include "tbls/iso-8859-13_to_ucs4.tbl"
69 
70 #elif defined(ISO_8859_14)
71 #include "tbls/iso-8859-14_to_ucs4.tbl"
72 
73 #elif defined(ISO_8859_15)
74 #include "tbls/iso-8859-15_to_ucs4.tbl"
75 
76 #elif defined(ISO_8859_16)
77 #include "tbls/iso-8859-16_to_ucs4.tbl"
78 
79 #elif defined(KOI8_R)
80 #include "tbls/koi8-r_to_ucs4.tbl"
81 
82 #elif defined(KOI8_U)
83 #include "tbls/koi8-u_to_ucs4.tbl"
84 
85 #elif defined(PTCP154)
86 #include "tbls/ptcp154_to_ucs4.tbl"
87 
88 #elif defined(CP437)
89 #include "tbls/cp437_to_ucs4.tbl"
90 
91 #elif defined(CP720)
92 #include "tbls/cp720_to_ucs4.tbl"
93 
94 #elif defined(CP737)
95 #include "tbls/cp737_to_ucs4.tbl"
96 
97 #elif defined(CP775)
98 #include "tbls/cp775_to_ucs4.tbl"
99 
100 #elif defined(CP850)
101 #include "tbls/cp850_to_ucs4.tbl"
102 
103 #elif defined(CP852)
104 #include "tbls/cp852_to_ucs4.tbl"
105 
106 #elif defined(CP855)
107 #include "tbls/cp855_to_ucs4.tbl"
108 
109 #elif defined(CP857)
110 #include "tbls/cp857_to_ucs4.tbl"
111 
112 #elif defined(CP860)
113 #include "tbls/cp860_to_ucs4.tbl"
114 
115 #elif defined(CP861)
116 #include "tbls/cp861_to_ucs4.tbl"
117 
118 #elif defined(CP862)
119 #include "tbls/cp862_to_ucs4.tbl"
120 
121 #elif defined(CP863)
122 #include "tbls/cp863_to_ucs4.tbl"
123 
124 #elif defined(CP864)
125 #include "tbls/cp864_to_ucs4.tbl"
126 
127 #elif defined(CP865)
128 #include "tbls/cp865_to_ucs4.tbl"
129 
130 #elif defined(CP866)
131 #include "tbls/cp866_to_ucs4.tbl"
132 
133 #elif defined(CP869)
134 #include "tbls/cp869_to_ucs4.tbl"
135 
136 #elif defined(CP874)
137 #include "tbls/cp874_to_ucs4.tbl"
138 
139 #elif defined(CP1250)
140 #include "tbls/cp1250_to_ucs4.tbl"
141 
142 #elif defined(CP1251)
143 #include "tbls/cp1251_to_ucs4.tbl"
144 
145 #elif defined(CP1252)
146 #include "tbls/cp1252_to_ucs4.tbl"
147 
148 #elif defined(CP1253)
149 #include "tbls/cp1253_to_ucs4.tbl"
150 
151 #elif defined(CP1254)
152 #include "tbls/cp1254_to_ucs4.tbl"
153 
154 #elif defined(CP1255)
155 #include "tbls/cp1255_to_ucs4.tbl"
156 
157 #elif defined(CP1256)
158 #include "tbls/cp1256_to_ucs4.tbl"
159 
160 #elif defined(CP1257)
161 #include "tbls/cp1257_to_ucs4.tbl"
162 
163 #elif defined(CP1258)
164 #include "tbls/cp1258_to_ucs4.tbl"
165 
166 #else
167 #error	"Error - nothing defined."
168 #endif
169 };
170 
171 #endif	/* SB_TO_UCS_H */
172