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	UCS_TO_SB_H
27 #define	UCS_TO_SB_H
28 
29 
30 #include "common_defs.h"
31 
32 
33 /*
34  * IMPORTANT:
35  * Since we are using binary search on the table, especially, on u8 data
36  * field, the table should be sorted by ascending order on u8 data field.
37  */
38 static const to_sb_table_component_t u4_sb_tbl[] = {
39 #if defined(US_ASCII)
40 #include "tbls/ucs4_to_us-ascii.tbl"
41 
42 #elif defined(ISO_8859_1)
43 #include "tbls/ucs4_to_iso-8859-1.tbl"
44 
45 #elif defined(ISO_8859_2)
46 #include "tbls/ucs4_to_iso-8859-2.tbl"
47 
48 #elif defined(ISO_8859_3)
49 #include "tbls/ucs4_to_iso-8859-3.tbl"
50 
51 #elif defined(ISO_8859_4)
52 #include "tbls/ucs4_to_iso-8859-4.tbl"
53 
54 #elif defined(ISO_8859_5)
55 #include "tbls/ucs4_to_iso-8859-5.tbl"
56 
57 #elif defined(ISO_8859_6)
58 #include "tbls/ucs4_to_iso-8859-6.tbl"
59 
60 #elif defined(ISO_8859_7)
61 #include "tbls/ucs4_to_iso-8859-7.tbl"
62 
63 #elif defined(ISO_8859_8)
64 #include "tbls/ucs4_to_iso-8859-8.tbl"
65 
66 #elif defined(ISO_8859_9)
67 #include "tbls/ucs4_to_iso-8859-9.tbl"
68 
69 #elif defined(ISO_8859_10)
70 #include "tbls/ucs4_to_iso-8859-10.tbl"
71 
72 #elif defined(ISO_8859_13)
73 #include "tbls/ucs4_to_iso-8859-13.tbl"
74 
75 #elif defined(ISO_8859_14)
76 #include "tbls/ucs4_to_iso-8859-14.tbl"
77 
78 #elif defined(ISO_8859_15)
79 #include "tbls/ucs4_to_iso-8859-15.tbl"
80 
81 #elif defined(ISO_8859_16)
82 #include "tbls/ucs4_to_iso-8859-16.tbl"
83 
84 #elif defined(KOI8_R)
85 #include "tbls/ucs4_to_koi8-r.tbl"
86 
87 #elif defined(KOI8_U)
88 #include "tbls/ucs4_to_koi8-u.tbl"
89 
90 #elif defined(PTCP154)
91 #include "tbls/ucs4_to_ptcp154.tbl"
92 
93 #elif defined(CP437)
94 #include "tbls/ucs4_to_cp437.tbl"
95 
96 #elif defined(CP720)
97 #include "tbls/ucs4_to_cp720.tbl"
98 
99 #elif defined(CP737)
100 #include "tbls/ucs4_to_cp737.tbl"
101 
102 #elif defined(CP775)
103 #include "tbls/ucs4_to_cp775.tbl"
104 
105 #elif defined(CP850)
106 #include "tbls/ucs4_to_cp850.tbl"
107 
108 #elif defined(CP852)
109 #include "tbls/ucs4_to_cp852.tbl"
110 
111 #elif defined(CP855)
112 #include "tbls/ucs4_to_cp855.tbl"
113 
114 #elif defined(CP857)
115 #include "tbls/ucs4_to_cp857.tbl"
116 
117 #elif defined(CP860)
118 #include "tbls/ucs4_to_cp860.tbl"
119 
120 #elif defined(CP861)
121 #include "tbls/ucs4_to_cp861.tbl"
122 
123 #elif defined(CP862)
124 #include "tbls/ucs4_to_cp862.tbl"
125 
126 #elif defined(CP863)
127 #include "tbls/ucs4_to_cp863.tbl"
128 
129 #elif defined(CP864)
130 #include "tbls/ucs4_to_cp864.tbl"
131 
132 #elif defined(CP865)
133 #include "tbls/ucs4_to_cp865.tbl"
134 
135 #elif defined(CP866)
136 #include "tbls/ucs4_to_cp866.tbl"
137 
138 #elif defined(CP869)
139 #include "tbls/ucs4_to_cp869.tbl"
140 
141 #elif defined(CP874)
142 #include "tbls/ucs4_to_cp874.tbl"
143 
144 #elif defined(CP1250)
145 #include "tbls/ucs4_to_cp1250.tbl"
146 
147 #elif defined(CP1251)
148 #include "tbls/ucs4_to_cp1251.tbl"
149 
150 #elif defined(CP1252)
151 #include "tbls/ucs4_to_cp1252.tbl"
152 
153 #elif defined(CP1253)
154 #include "tbls/ucs4_to_cp1253.tbl"
155 
156 #elif defined(CP1254)
157 #include "tbls/ucs4_to_cp1254.tbl"
158 
159 #elif defined(CP1255)
160 #include "tbls/ucs4_to_cp1255.tbl"
161 
162 #elif defined(CP1256)
163 #include "tbls/ucs4_to_cp1256.tbl"
164 
165 #elif defined(CP1257)
166 #include "tbls/ucs4_to_cp1257.tbl"
167 
168 #elif defined(CP1258)
169 #include "tbls/ucs4_to_cp1258.tbl"
170 
171 #else
172 #error	"Error - nothing defined."
173 #endif
174 };
175 
176 #endif	/* UCS_TO_SB_H */
177