Kannel: Open Source WAP and SMS gateway  $Revision: 5037 $
latin1_to_gsm.h
Go to the documentation of this file.
1 #ifndef LATIN1_TO_GSM_H
2 #define LATIN1_TO_GSM_H
3 
4 static const int latin1_to_gsm[256] = {
5 /* 0x00 */ NRP, /* pc: NON PRINTABLE */
6 /* 0x01 */ NRP, /* pc: NON PRINTABLE */
7 /* 0x02 */ NRP, /* pc: NON PRINTABLE */
8 /* 0x03 */ NRP, /* pc: NON PRINTABLE */
9 /* 0x04 */ NRP, /* pc: NON PRINTABLE */
10 /* 0x05 */ NRP, /* pc: NON PRINTABLE */
11 /* 0x06 */ NRP, /* pc: NON PRINTABLE */
12 /* 0x07 */ NRP, /* pc: NON PRINTABLE */
13 /* 0x08 */ NRP, /* pc: NON PRINTABLE */
14 /* 0x09 */ NRP, /* pc: NON PRINTABLE */
15 /* 0x0a */ 0x0a, /* pc: NON PRINTABLE */
16 /* 0x0b */ NRP, /* pc: NON PRINTABLE */
17 /* 0x0c */ -0x0a, /* pc: NON PRINTABLE */
18 /* 0x0d */ 0x0d, /* pc: NON PRINTABLE */
19 /* 0x0e */ NRP, /* pc: NON PRINTABLE */
20 /* 0x0f */ NRP, /* pc: NON PRINTABLE */
21 /* 0x10 */ NRP, /* pc: NON PRINTABLE */
22 /* 0x11 */ NRP, /* pc: NON PRINTABLE */
23 /* 0x12 */ NRP, /* pc: NON PRINTABLE */
24 /* 0x13 */ NRP, /* pc: NON PRINTABLE */
25 /* 0x14 */ NRP, /* pc: NON PRINTABLE */
26 /* 0x15 */ NRP, /* pc: NON PRINTABLE */
27 /* 0x16 */ NRP, /* pc: NON PRINTABLE */
28 /* 0x17 */ NRP, /* pc: NON PRINTABLE */
29 /* 0x18 */ NRP, /* pc: NON PRINTABLE */
30 /* 0x19 */ NRP, /* pc: NON PRINTABLE */
31 /* 0x1a */ NRP, /* pc: NON PRINTABLE */
32 /* 0x1b */ NRP, /* pc: NON PRINTABLE */
33 /* 0x1c */ NRP, /* pc: NON PRINTABLE */
34 /* 0x1d */ NRP, /* pc: NON PRINTABLE */
35 /* 0x1e */ NRP, /* pc: NON PRINTABLE */
36 /* 0x1f */ NRP, /* pc: NON PRINTABLE */
37 /* 0x20 */ 0x20, /* pc: */
38 /* 0x21 */ 0x21, /* pc: ! */
39 /* 0x22 */ 0x22, /* pc: " */
40 /* 0x23 */ 0x23, /* pc: # */
41 /* 0x24 */ 0x02, /* pc: $ */
42 /* 0x25 */ 0x25, /* pc: % */
43 /* 0x26 */ 0x26, /* pc: & */
44 /* 0x27 */ 0x27, /* pc: ' */
45 /* 0x28 */ 0x28, /* pc: ( */
46 /* 0x29 */ 0x29, /* pc: ) */
47 /* 0x2a */ 0x2a, /* pc: * */
48 /* 0x2b */ 0x2b, /* pc: + */
49 /* 0x2c */ 0x2c, /* pc: , */
50 /* 0x2d */ 0x2d, /* pc: - */
51 /* 0x2e */ 0x2e, /* pc: . */
52 /* 0x2f */ 0x2f, /* pc: / */
53 /* 0x30 */ 0x30, /* pc: 0 */
54 /* 0x31 */ 0x31, /* pc: 1 */
55 /* 0x32 */ 0x32, /* pc: 2 */
56 /* 0x33 */ 0x33, /* pc: 3 */
57 /* 0x34 */ 0x34, /* pc: 4 */
58 /* 0x35 */ 0x35, /* pc: 5 */
59 /* 0x36 */ 0x36, /* pc: 6 */
60 /* 0x37 */ 0x37, /* pc: 7 */
61 /* 0x38 */ 0x38, /* pc: 8 */
62 /* 0x39 */ 0x39, /* pc: 9 */
63 /* 0x3a */ 0x3a, /* pc: : */
64 /* 0x3b */ 0x3b, /* pc: ; */
65 /* 0x3c */ 0x3c, /* pc: < */
66 /* 0x3d */ 0x3d, /* pc: = */
67 /* 0x3e */ 0x3e, /* pc: > */
68 /* 0x3f */ 0x3f, /* pc: ? */
69 /* 0x40 */ 0x00, /* pc: @ */
70 /* 0x41 */ 0x41, /* pc: A */
71 /* 0x42 */ 0x42, /* pc: B */
72 /* 0x43 */ 0x43, /* pc: C */
73 /* 0x44 */ 0x44, /* pc: D */
74 /* 0x45 */ 0x45, /* pc: E */
75 /* 0x46 */ 0x46, /* pc: F */
76 /* 0x47 */ 0x47, /* pc: G */
77 /* 0x48 */ 0x48, /* pc: H */
78 /* 0x49 */ 0x49, /* pc: I */
79 /* 0x4a */ 0x4a, /* pc: J */
80 /* 0x4b */ 0x4b, /* pc: K */
81 /* 0x4c */ 0x4c, /* pc: L */
82 /* 0x4d */ 0x4d, /* pc: M */
83 /* 0x4e */ 0x4e, /* pc: N */
84 /* 0x4f */ 0x4f, /* pc: O */
85 /* 0x50 */ 0x50, /* pc: P */
86 /* 0x51 */ 0x51, /* pc: Q */
87 /* 0x52 */ 0x52, /* pc: R */
88 /* 0x53 */ 0x53, /* pc: S */
89 /* 0x54 */ 0x54, /* pc: T */
90 /* 0x55 */ 0x55, /* pc: U */
91 /* 0x56 */ 0x56, /* pc: V */
92 /* 0x57 */ 0x57, /* pc: W */
93 /* 0x58 */ 0x58, /* pc: X */
94 /* 0x59 */ 0x59, /* pc: Y */
95 /* 0x5a */ 0x5a, /* pc: Z */
96 /* 0x5b */ -0x3c, /* pc: [ */
97 /* 0x5c */ -0x2f, /* pc: \ */
98 /* 0x5d */ -0x3e, /* pc: ] */
99 /* 0x5e */ -0x14, /* pc: ^ */
100 /* 0x5f */ 0x11, /* pc: _ */
101 /* 0x60 */ NRP, /* pc: ` */
102 /* 0x61 */ 0x61, /* pc: a */
103 /* 0x62 */ 0x62, /* pc: b */
104 /* 0x63 */ 0x63, /* pc: c */
105 /* 0x64 */ 0x64, /* pc: d */
106 /* 0x65 */ 0x65, /* pc: e */
107 /* 0x66 */ 0x66, /* pc: f */
108 /* 0x67 */ 0x67, /* pc: g */
109 /* 0x68 */ 0x68, /* pc: h */
110 /* 0x69 */ 0x69, /* pc: i */
111 /* 0x6a */ 0x6a, /* pc: j */
112 /* 0x6b */ 0x6b, /* pc: k */
113 /* 0x6c */ 0x6c, /* pc: l */
114 /* 0x6d */ 0x6d, /* pc: m */
115 /* 0x6e */ 0x6e, /* pc: n */
116 /* 0x6f */ 0x6f, /* pc: o */
117 /* 0x70 */ 0x70, /* pc: p */
118 /* 0x71 */ 0x71, /* pc: q */
119 /* 0x72 */ 0x72, /* pc: r */
120 /* 0x73 */ 0x73, /* pc: s */
121 /* 0x74 */ 0x74, /* pc: t */
122 /* 0x75 */ 0x75, /* pc: u */
123 /* 0x76 */ 0x76, /* pc: v */
124 /* 0x77 */ 0x77, /* pc: w */
125 /* 0x78 */ 0x78, /* pc: x */
126 /* 0x79 */ 0x79, /* pc: y */
127 /* 0x7a */ 0x7a, /* pc: z */
128 /* 0x7b */ -0x28, /* pc: { */
129 /* 0x7c */ -0x40, /* pc: | */
130 /* 0x7d */ -0x29, /* pc: } */
131 /* 0x7e */ -0x3d, /* pc: ~ */
132 /* 0x7f */ NRP, /* pc: NON PRINTABLE */
133 /* 0x80 */ NRP, /* pc: NON PRINTABLE */
134 /* 0x81 */ NRP, /* pc: NON PRINTABLE */
135 /* 0x82 */ NRP, /* pc: NON PRINTABLE */
136 /* 0x83 */ NRP, /* pc: NON PRINTABLE */
137 /* 0x84 */ NRP, /* pc: NON PRINTABLE */
138 /* 0x85 */ NRP, /* pc: NON PRINTABLE */
139 /* 0x86 */ NRP, /* pc: NON PRINTABLE */
140 /* 0x87 */ NRP, /* pc: NON PRINTABLE */
141 /* 0x88 */ NRP, /* pc: NON PRINTABLE */
142 /* 0x89 */ NRP, /* pc: NON PRINTABLE */
143 /* 0x8a */ NRP, /* pc: NON PRINTABLE */
144 /* 0x8b */ NRP, /* pc: NON PRINTABLE */
145 /* 0x8c */ NRP, /* pc: NON PRINTABLE */
146 /* 0x8d */ NRP, /* pc: NON PRINTABLE */
147 /* 0x8e */ NRP, /* pc: NON PRINTABLE */
148 /* 0x8f */ NRP, /* pc: NON PRINTABLE */
149 /* 0x90 */ NRP, /* pc: NON PRINTABLE */
150 /* 0x91 */ NRP, /* pc: NON PRINTABLE */
151 /* 0x92 */ NRP, /* pc: NON PRINTABLE */
152 /* 0x93 */ NRP, /* pc: NON PRINTABLE */
153 /* 0x94 */ NRP, /* pc: NON PRINTABLE */
154 /* 0x95 */ NRP, /* pc: NON PRINTABLE */
155 /* 0x96 */ NRP, /* pc: NON PRINTABLE */
156 /* 0x97 */ NRP, /* pc: NON PRINTABLE */
157 /* 0x98 */ NRP, /* pc: NON PRINTABLE */
158 /* 0x99 */ NRP, /* pc: NON PRINTABLE */
159 /* 0x9a */ NRP, /* pc: NON PRINTABLE */
160 /* 0x9b */ NRP, /* pc: NON PRINTABLE */
161 /* 0x9c */ NRP, /* pc: NON PRINTABLE */
162 /* 0x9d */ NRP, /* pc: NON PRINTABLE */
163 /* 0x9e */ NRP, /* pc: NON PRINTABLE */
164 /* 0x9f */ NRP, /* pc: NON PRINTABLE */
165 /* 0xa0 */ NRP, /* pc: NON PRINTABLE */
166 /* 0xa1 */ 0x40, /* pc: INVERTED EXCLAMATION MARK */
167 /* 0xa2 */ NRP, /* pc: NON PRINTABLE */
168 /* 0xa3 */ 0x01, /* pc: POUND SIGN */
169 /* 0xa4 */ 0x24, /* pc: CURRENCY SIGN */
170 /* 0xa5 */ 0x03, /* pc: YEN SIGN*/
171 /* 0xa6 */ NRP, /* pc: NON PRINTABLE */
172 /* 0xa7 */ 0x5f, /* pc: SECTION SIGN */
173 /* 0xa8 */ NRP, /* pc: NON PRINTABLE */
174 /* 0xa9 */ NRP, /* pc: NON PRINTABLE */
175 /* 0xaa */ NRP, /* pc: NON PRINTABLE */
176 /* 0xab */ NRP, /* pc: NON PRINTABLE */
177 /* 0xac */ NRP, /* pc: NON PRINTABLE */
178 /* 0xad */ NRP, /* pc: NON PRINTABLE */
179 /* 0xae */ NRP, /* pc: NON PRINTABLE */
180 /* 0xaf */ NRP, /* pc: NON PRINTABLE */
181 /* 0xb0 */ NRP, /* pc: NON PRINTABLE */
182 /* 0xb1 */ NRP, /* pc: NON PRINTABLE */
183 /* 0xb2 */ NRP, /* pc: NON PRINTABLE */
184 /* 0xb3 */ NRP, /* pc: NON PRINTABLE */
185 /* 0xb4 */ NRP, /* pc: NON PRINTABLE */
186 /* 0xb5 */ NRP, /* pc: NON PRINTABLE */
187 /* 0xb6 */ NRP, /* pc: NON PRINTABLE */
188 /* 0xb7 */ NRP, /* pc: NON PRINTABLE */
189 /* 0xb8 */ NRP, /* pc: NON PRINTABLE */
190 /* 0xb9 */ NRP, /* pc: NON PRINTABLE */
191 /* 0xba */ NRP, /* pc: NON PRINTABLE */
192 /* 0xbb */ NRP, /* pc: NON PRINTABLE */
193 /* 0xbc */ NRP, /* pc: NON PRINTABLE */
194 /* 0xbd */ NRP, /* pc: NON PRINTABLE */
195 /* 0xbe */ NRP, /* pc: NON PRINTABLE */
196 /* 0xbf */ 0x60, /* pc: INVERTED QUESTION MARK */
197 /* 0xc0 */ NRP, /* pc: NON PRINTABLE */
198 /* 0xc1 */ NRP, /* pc: NON PRINTABLE */
199 /* 0xc2 */ NRP, /* pc: NON PRINTABLE */
200 /* 0xc3 */ NRP, /* pc: NON PRINTABLE */
201 /* 0xc4 */ 0x5b, /* pc: LATIN CAPITAL LETTER A WITH DIAERESIS */
202 /* 0xc5 */ 0x0e, /* pc: LATIN CAPITAL LETTER A WITH RING ABOVE */
203 /* 0xc6 */ 0x1c, /* pc: LATIN CAPITAL LETTER AE */
204 /* 0xc7 */ 0x09, /* pc: LATIN CAPITAL LETTER C WITH CEDILLA (mapped to small) */
205 /* 0xc8 */ NRP, /* pc: NON PRINTABLE */
206 /* 0xc9 */ 0x1f, /* pc: LATIN CAPITAL LETTER E WITH ACUTE */
207 /* 0xca */ NRP, /* pc: NON PRINTABLE */
208 /* 0xcb */ NRP, /* pc: NON PRINTABLE */
209 /* 0xcc */ NRP, /* pc: NON PRINTABLE */
210 /* 0xcd */ NRP, /* pc: NON PRINTABLE */
211 /* 0xce */ NRP, /* pc: NON PRINTABLE */
212 /* 0xcf */ NRP, /* pc: NON PRINTABLE */
213 /* 0xd0 */ NRP, /* pc: NON PRINTABLE */
214 /* 0xd1 */ 0x5d, /* pc: LATIN CAPITAL LETTER N WITH TILDE */
215 /* 0xd2 */ NRP, /* pc: NON PRINTABLE */
216 /* 0xd3 */ NRP, /* pc: NON PRINTABLE */
217 /* 0xd4 */ NRP, /* pc: NON PRINTABLE */
218 /* 0xd5 */ NRP, /* pc: NON PRINTABLE */
219 /* 0xd6 */ 0x5c, /* pc: LATIN CAPITAL LETTER O WITH DIAEREIS */
220 /* 0xd7 */ NRP, /* pc: NON PRINTABLE */
221 /* 0xd8 */ 0x0b, /* pc: LATIN CAPITAL LETTER O WITH STROKE */
222 /* 0xd9 */ NRP, /* pc: NON PRINTABLE */
223 /* 0xda */ NRP, /* pc: NON PRINTABLE */
224 /* 0xdb */ NRP, /* pc: NON PRINTABLE */
225 /* 0xdc */ 0x5e, /* pc: LATIN CAPITAL LETTER U WITH DIAERESIS */
226 /* 0xdd */ NRP, /* pc: NON PRINTABLE */
227 /* 0xde */ NRP, /* pc: NON PRINTABLE */
228 /* 0xdf */ 0x1e, /* pc: LATIN SMALL LETTER SHARP S */
229 /* 0xe0 */ 0x7f, /* pc: LATIN SMALL LETTER A WITH GRAVE */
230 /* 0xe1 */ NRP, /* pc: NON PRINTABLE */
231 /* 0xe2 */ NRP, /* pc: NON PRINTABLE */
232 /* 0xe3 */ NRP, /* pc: NON PRINTABLE */
233 /* 0xe4 */ 0x7b, /* pc: LATIN SMALL LETTER A WITH DIAERESIS */
234 /* 0xe5 */ 0x0f, /* pc: LATIN SMALL LETTER A WITH RING ABOVE */
235 /* 0xe6 */ 0x1d, /* pc: LATIN SMALL LETTER AE */
236 /* 0xe7 */ 0x09, /* pc: LATIN SMALL LETTER C WITH CEDILLA */
237 /* 0xe8 */ 0x04, /* pc: NON PRINTABLE */
238 /* 0xe9 */ 0x05, /* pc: NON PRINTABLE */
239 /* 0xea */ NRP, /* pc: NON PRINTABLE */
240 /* 0xeb */ NRP, /* pc: NON PRINTABLE */
241 /* 0xec */ 0x07, /* pc: NON PRINTABLE */
242 /* 0xed */ NRP, /* pc: NON PRINTABLE */
243 /* 0xee */ NRP, /* pc: NON PRINTABLE */
244 /* 0xef */ NRP, /* pc: NON PRINTABLE */
245 /* 0xf0 */ NRP, /* pc: NON PRINTABLE */
246 /* 0xf1 */ 0x7d, /* pc: NON PRINTABLE */
247 /* 0xf2 */ 0x08, /* pc: NON PRINTABLE */
248 /* 0xf3 */ NRP, /* pc: NON PRINTABLE */
249 /* 0xf4 */ NRP, /* pc: NON PRINTABLE */
250 /* 0xf5 */ NRP, /* pc: NON PRINTABLE */
251 /* 0xf6 */ 0x7c, /* pc: NON PRINTABLE */
252 /* 0xf7 */ NRP, /* pc: NON PRINTABLE */
253 /* 0xf8 */ 0x0c, /* pc: NON PRINTABLE */
254 /* 0xf9 */ 0x06, /* pc: NON PRINTABLE */
255 /* 0xfa */ NRP, /* pc: NON PRINTABLE */
256 /* 0xfb */ NRP, /* pc: NON PRINTABLE */
257 /* 0xfc */ 0x7e, /* pc: NON PRINTABLE */
258 /* 0xfd */ NRP, /* pc: NON PRINTABLE */
259 /* 0xfe */ NRP, /* pc: NON PRINTABLE */
260 /* 0xff */ NRP, /* pc: NON PRINTABLE */
261 };
262 
263 #endif
static const int latin1_to_gsm[256]
Definition: latin1_to_gsm.h:4
#define NRP
Definition: charset.c:73
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.