4
Copyright (c) 2008, Robert D. Cameron.
5
Licensed to the public under the Open Software License 3.0.
6
Licensed to International Characters, Inc., under the Academic
9
This is a generated file using ASCII_EBCDIC.py. Do not edit.
17
#include "../../lib/stdint.h"
19
#include "../xmlmodel.h"
21
template<CodeUnit_Base C> struct CR;
22
template<> struct CR<ASCII> {static unsigned char const value = 0x0D;};
23
template<> struct CR<EBCDIC> {static unsigned char const value = 0x0D;};
25
template<CodeUnit_Base C> struct LF;
26
template<> struct LF<ASCII> {static unsigned char const value = 0x0A;};
27
template<> struct LF<EBCDIC> {static unsigned char const value = 0x25;};
29
template<CodeUnit_Base C> struct HT;
30
template<> struct HT<ASCII> {static unsigned char const value = 0x09;};
31
template<> struct HT<EBCDIC> {static unsigned char const value = 0x05;};
33
template<CodeUnit_Base C, unsigned char c> struct Ord;
36
template<> struct Ord<ASCII,'\0'> {static uint8_t const value = 0x0;};
37
template<> struct Ord<ASCII,' '> {static uint8_t const value = 0x20;};
38
template<> struct Ord<ASCII,'!'> {static uint8_t const value = 0x21;};
39
template<> struct Ord<ASCII,'"'> {static uint8_t const value = 0x22;};
40
template<> struct Ord<ASCII,'#'> {static uint8_t const value = 0x23;};
41
template<> struct Ord<ASCII,'$'> {static uint8_t const value = 0x24;};
42
template<> struct Ord<ASCII,'%'> {static uint8_t const value = 0x25;};
43
template<> struct Ord<ASCII,'&'> {static uint8_t const value = 0x26;};
44
template<> struct Ord<ASCII,'\''> {static uint8_t const value = 0x27;};
45
template<> struct Ord<ASCII,'('> {static uint8_t const value = 0x28;};
46
template<> struct Ord<ASCII,')'> {static uint8_t const value = 0x29;};
47
template<> struct Ord<ASCII,'*'> {static uint8_t const value = 0x2a;};
48
template<> struct Ord<ASCII,'+'> {static uint8_t const value = 0x2b;};
49
template<> struct Ord<ASCII,','> {static uint8_t const value = 0x2c;};
50
template<> struct Ord<ASCII,'-'> {static uint8_t const value = 0x2d;};
51
template<> struct Ord<ASCII,'.'> {static uint8_t const value = 0x2e;};
52
template<> struct Ord<ASCII,'/'> {static uint8_t const value = 0x2f;};
53
template<> struct Ord<ASCII,'0'> {static uint8_t const value = 0x30;};
54
template<> struct Ord<ASCII,'1'> {static uint8_t const value = 0x31;};
55
template<> struct Ord<ASCII,'2'> {static uint8_t const value = 0x32;};
56
template<> struct Ord<ASCII,'3'> {static uint8_t const value = 0x33;};
57
template<> struct Ord<ASCII,'4'> {static uint8_t const value = 0x34;};
58
template<> struct Ord<ASCII,'5'> {static uint8_t const value = 0x35;};
59
template<> struct Ord<ASCII,'6'> {static uint8_t const value = 0x36;};
60
template<> struct Ord<ASCII,'7'> {static uint8_t const value = 0x37;};
61
template<> struct Ord<ASCII,'8'> {static uint8_t const value = 0x38;};
62
template<> struct Ord<ASCII,'9'> {static uint8_t const value = 0x39;};
63
template<> struct Ord<ASCII,':'> {static uint8_t const value = 0x3a;};
64
template<> struct Ord<ASCII,';'> {static uint8_t const value = 0x3b;};
65
template<> struct Ord<ASCII,'<'> {static uint8_t const value = 0x3c;};
66
template<> struct Ord<ASCII,'='> {static uint8_t const value = 0x3d;};
67
template<> struct Ord<ASCII,'>'> {static uint8_t const value = 0x3e;};
68
template<> struct Ord<ASCII,'?'> {static uint8_t const value = 0x3f;};
69
template<> struct Ord<ASCII,'@'> {static uint8_t const value = 0x40;};
70
template<> struct Ord<ASCII,'A'> {static uint8_t const value = 0x41;};
71
template<> struct Ord<ASCII,'B'> {static uint8_t const value = 0x42;};
72
template<> struct Ord<ASCII,'C'> {static uint8_t const value = 0x43;};
73
template<> struct Ord<ASCII,'D'> {static uint8_t const value = 0x44;};
74
template<> struct Ord<ASCII,'E'> {static uint8_t const value = 0x45;};
75
template<> struct Ord<ASCII,'F'> {static uint8_t const value = 0x46;};
76
template<> struct Ord<ASCII,'G'> {static uint8_t const value = 0x47;};
77
template<> struct Ord<ASCII,'H'> {static uint8_t const value = 0x48;};
78
template<> struct Ord<ASCII,'I'> {static uint8_t const value = 0x49;};
79
template<> struct Ord<ASCII,'J'> {static uint8_t const value = 0x4a;};
80
template<> struct Ord<ASCII,'K'> {static uint8_t const value = 0x4b;};
81
template<> struct Ord<ASCII,'L'> {static uint8_t const value = 0x4c;};
82
template<> struct Ord<ASCII,'M'> {static uint8_t const value = 0x4d;};
83
template<> struct Ord<ASCII,'N'> {static uint8_t const value = 0x4e;};
84
template<> struct Ord<ASCII,'O'> {static uint8_t const value = 0x4f;};
85
template<> struct Ord<ASCII,'P'> {static uint8_t const value = 0x50;};
86
template<> struct Ord<ASCII,'Q'> {static uint8_t const value = 0x51;};
87
template<> struct Ord<ASCII,'R'> {static uint8_t const value = 0x52;};
88
template<> struct Ord<ASCII,'S'> {static uint8_t const value = 0x53;};
89
template<> struct Ord<ASCII,'T'> {static uint8_t const value = 0x54;};
90
template<> struct Ord<ASCII,'U'> {static uint8_t const value = 0x55;};
91
template<> struct Ord<ASCII,'V'> {static uint8_t const value = 0x56;};
92
template<> struct Ord<ASCII,'W'> {static uint8_t const value = 0x57;};
93
template<> struct Ord<ASCII,'X'> {static uint8_t const value = 0x58;};
94
template<> struct Ord<ASCII,'Y'> {static uint8_t const value = 0x59;};
95
template<> struct Ord<ASCII,'Z'> {static uint8_t const value = 0x5a;};
96
template<> struct Ord<ASCII,'['> {static uint8_t const value = 0x5b;};
97
template<> struct Ord<ASCII,'\\'> {static uint8_t const value = 0x5c;};
98
template<> struct Ord<ASCII,']'> {static uint8_t const value = 0x5d;};
99
template<> struct Ord<ASCII,'^'> {static uint8_t const value = 0x5e;};
100
template<> struct Ord<ASCII,'_'> {static uint8_t const value = 0x5f;};
101
template<> struct Ord<ASCII,'`'> {static uint8_t const value = 0x60;};
102
template<> struct Ord<ASCII,'a'> {static uint8_t const value = 0x61;};
103
template<> struct Ord<ASCII,'b'> {static uint8_t const value = 0x62;};
104
template<> struct Ord<ASCII,'c'> {static uint8_t const value = 0x63;};
105
template<> struct Ord<ASCII,'d'> {static uint8_t const value = 0x64;};
106
template<> struct Ord<ASCII,'e'> {static uint8_t const value = 0x65;};
107
template<> struct Ord<ASCII,'f'> {static uint8_t const value = 0x66;};
108
template<> struct Ord<ASCII,'g'> {static uint8_t const value = 0x67;};
109
template<> struct Ord<ASCII,'h'> {static uint8_t const value = 0x68;};
110
template<> struct Ord<ASCII,'i'> {static uint8_t const value = 0x69;};
111
template<> struct Ord<ASCII,'j'> {static uint8_t const value = 0x6a;};
112
template<> struct Ord<ASCII,'k'> {static uint8_t const value = 0x6b;};
113
template<> struct Ord<ASCII,'l'> {static uint8_t const value = 0x6c;};
114
template<> struct Ord<ASCII,'m'> {static uint8_t const value = 0x6d;};
115
template<> struct Ord<ASCII,'n'> {static uint8_t const value = 0x6e;};
116
template<> struct Ord<ASCII,'o'> {static uint8_t const value = 0x6f;};
117
template<> struct Ord<ASCII,'p'> {static uint8_t const value = 0x70;};
118
template<> struct Ord<ASCII,'q'> {static uint8_t const value = 0x71;};
119
template<> struct Ord<ASCII,'r'> {static uint8_t const value = 0x72;};
120
template<> struct Ord<ASCII,'s'> {static uint8_t const value = 0x73;};
121
template<> struct Ord<ASCII,'t'> {static uint8_t const value = 0x74;};
122
template<> struct Ord<ASCII,'u'> {static uint8_t const value = 0x75;};
123
template<> struct Ord<ASCII,'v'> {static uint8_t const value = 0x76;};
124
template<> struct Ord<ASCII,'w'> {static uint8_t const value = 0x77;};
125
template<> struct Ord<ASCII,'x'> {static uint8_t const value = 0x78;};
126
template<> struct Ord<ASCII,'y'> {static uint8_t const value = 0x79;};
127
template<> struct Ord<ASCII,'z'> {static uint8_t const value = 0x7a;};
128
template<> struct Ord<ASCII,'{'> {static uint8_t const value = 0x7b;};
129
template<> struct Ord<ASCII,'|'> {static uint8_t const value = 0x7c;};
130
template<> struct Ord<ASCII,'}'> {static uint8_t const value = 0x7d;};
132
template<> struct Ord<EBCDIC,'\0'> {static uint8_t const value = 0x0;};
133
template<> struct Ord<EBCDIC,' '> {static uint8_t const value = 0x40;};
134
template<> struct Ord<EBCDIC,'!'> {static uint8_t const value = 0x5a;};
135
template<> struct Ord<EBCDIC,'"'> {static uint8_t const value = 0x7f;};
136
template<> struct Ord<EBCDIC,'#'> {static uint8_t const value = 0x7b;};
137
template<> struct Ord<EBCDIC,'$'> {static uint8_t const value = 0x5b;};
138
template<> struct Ord<EBCDIC,'%'> {static uint8_t const value = 0x6c;};
139
template<> struct Ord<EBCDIC,'&'> {static uint8_t const value = 0x50;};
140
template<> struct Ord<EBCDIC,'\''> {static uint8_t const value = 0x7d;};
141
template<> struct Ord<EBCDIC,'('> {static uint8_t const value = 0x4d;};
142
template<> struct Ord<EBCDIC,')'> {static uint8_t const value = 0x5d;};
143
template<> struct Ord<EBCDIC,'*'> {static uint8_t const value = 0x5c;};
144
template<> struct Ord<EBCDIC,'+'> {static uint8_t const value = 0x4e;};
145
template<> struct Ord<EBCDIC,','> {static uint8_t const value = 0x6b;};
146
template<> struct Ord<EBCDIC,'-'> {static uint8_t const value = 0x60;};
147
template<> struct Ord<EBCDIC,'.'> {static uint8_t const value = 0x4b;};
148
template<> struct Ord<EBCDIC,'/'> {static uint8_t const value = 0x61;};
149
template<> struct Ord<EBCDIC,'0'> {static uint8_t const value = 0xf0;};
150
template<> struct Ord<EBCDIC,'1'> {static uint8_t const value = 0xf1;};
151
template<> struct Ord<EBCDIC,'2'> {static uint8_t const value = 0xf2;};
152
template<> struct Ord<EBCDIC,'3'> {static uint8_t const value = 0xf3;};
153
template<> struct Ord<EBCDIC,'4'> {static uint8_t const value = 0xf4;};
154
template<> struct Ord<EBCDIC,'5'> {static uint8_t const value = 0xf5;};
155
template<> struct Ord<EBCDIC,'6'> {static uint8_t const value = 0xf6;};
156
template<> struct Ord<EBCDIC,'7'> {static uint8_t const value = 0xf7;};
157
template<> struct Ord<EBCDIC,'8'> {static uint8_t const value = 0xf8;};
158
template<> struct Ord<EBCDIC,'9'> {static uint8_t const value = 0xf9;};
159
template<> struct Ord<EBCDIC,':'> {static uint8_t const value = 0x7a;};
160
template<> struct Ord<EBCDIC,';'> {static uint8_t const value = 0x5e;};
161
template<> struct Ord<EBCDIC,'<'> {static uint8_t const value = 0x4c;};
162
template<> struct Ord<EBCDIC,'='> {static uint8_t const value = 0x7e;};
163
template<> struct Ord<EBCDIC,'>'> {static uint8_t const value = 0x6e;};
164
template<> struct Ord<EBCDIC,'?'> {static uint8_t const value = 0x6f;};
165
template<> struct Ord<EBCDIC,'@'> {static uint8_t const value = 0x7c;};
166
template<> struct Ord<EBCDIC,'A'> {static uint8_t const value = 0xc1;};
167
template<> struct Ord<EBCDIC,'B'> {static uint8_t const value = 0xc2;};
168
template<> struct Ord<EBCDIC,'C'> {static uint8_t const value = 0xc3;};
169
template<> struct Ord<EBCDIC,'D'> {static uint8_t const value = 0xc4;};
170
template<> struct Ord<EBCDIC,'E'> {static uint8_t const value = 0xc5;};
171
template<> struct Ord<EBCDIC,'F'> {static uint8_t const value = 0xc6;};
172
template<> struct Ord<EBCDIC,'G'> {static uint8_t const value = 0xc7;};
173
template<> struct Ord<EBCDIC,'H'> {static uint8_t const value = 0xc8;};
174
template<> struct Ord<EBCDIC,'I'> {static uint8_t const value = 0xc9;};
175
template<> struct Ord<EBCDIC,'J'> {static uint8_t const value = 0xd1;};
176
template<> struct Ord<EBCDIC,'K'> {static uint8_t const value = 0xd2;};
177
template<> struct Ord<EBCDIC,'L'> {static uint8_t const value = 0xd3;};
178
template<> struct Ord<EBCDIC,'M'> {static uint8_t const value = 0xd4;};
179
template<> struct Ord<EBCDIC,'N'> {static uint8_t const value = 0xd5;};
180
template<> struct Ord<EBCDIC,'O'> {static uint8_t const value = 0xd6;};
181
template<> struct Ord<EBCDIC,'P'> {static uint8_t const value = 0xd7;};
182
template<> struct Ord<EBCDIC,'Q'> {static uint8_t const value = 0xd8;};
183
template<> struct Ord<EBCDIC,'R'> {static uint8_t const value = 0xd9;};
184
template<> struct Ord<EBCDIC,'S'> {static uint8_t const value = 0xe2;};
185
template<> struct Ord<EBCDIC,'T'> {static uint8_t const value = 0xe3;};
186
template<> struct Ord<EBCDIC,'U'> {static uint8_t const value = 0xe4;};
187
template<> struct Ord<EBCDIC,'V'> {static uint8_t const value = 0xe5;};
188
template<> struct Ord<EBCDIC,'W'> {static uint8_t const value = 0xe6;};
189
template<> struct Ord<EBCDIC,'X'> {static uint8_t const value = 0xe7;};
190
template<> struct Ord<EBCDIC,'Y'> {static uint8_t const value = 0xe8;};
191
template<> struct Ord<EBCDIC,'Z'> {static uint8_t const value = 0xe9;};
192
template<> struct Ord<EBCDIC,'['> {static uint8_t const value = 0xba;};
193
template<> struct Ord<EBCDIC,'\\'> {static uint8_t const value = 0xe0;};
194
template<> struct Ord<EBCDIC,']'> {static uint8_t const value = 0xbb;};
195
template<> struct Ord<EBCDIC,'^'> {static uint8_t const value = 0xb0;};
196
template<> struct Ord<EBCDIC,'_'> {static uint8_t const value = 0x6d;};
197
template<> struct Ord<EBCDIC,'`'> {static uint8_t const value = 0x79;};
198
template<> struct Ord<EBCDIC,'a'> {static uint8_t const value = 0x81;};
199
template<> struct Ord<EBCDIC,'b'> {static uint8_t const value = 0x82;};
200
template<> struct Ord<EBCDIC,'c'> {static uint8_t const value = 0x83;};
201
template<> struct Ord<EBCDIC,'d'> {static uint8_t const value = 0x84;};
202
template<> struct Ord<EBCDIC,'e'> {static uint8_t const value = 0x85;};
203
template<> struct Ord<EBCDIC,'f'> {static uint8_t const value = 0x86;};
204
template<> struct Ord<EBCDIC,'g'> {static uint8_t const value = 0x87;};
205
template<> struct Ord<EBCDIC,'h'> {static uint8_t const value = 0x88;};
206
template<> struct Ord<EBCDIC,'i'> {static uint8_t const value = 0x89;};
207
template<> struct Ord<EBCDIC,'j'> {static uint8_t const value = 0x91;};
208
template<> struct Ord<EBCDIC,'k'> {static uint8_t const value = 0x92;};
209
template<> struct Ord<EBCDIC,'l'> {static uint8_t const value = 0x93;};
210
template<> struct Ord<EBCDIC,'m'> {static uint8_t const value = 0x94;};
211
template<> struct Ord<EBCDIC,'n'> {static uint8_t const value = 0x95;};
212
template<> struct Ord<EBCDIC,'o'> {static uint8_t const value = 0x96;};
213
template<> struct Ord<EBCDIC,'p'> {static uint8_t const value = 0x97;};
214
template<> struct Ord<EBCDIC,'q'> {static uint8_t const value = 0x98;};
215
template<> struct Ord<EBCDIC,'r'> {static uint8_t const value = 0x99;};
216
template<> struct Ord<EBCDIC,'s'> {static uint8_t const value = 0xa2;};
217
template<> struct Ord<EBCDIC,'t'> {static uint8_t const value = 0xa3;};
218
template<> struct Ord<EBCDIC,'u'> {static uint8_t const value = 0xa4;};
219
template<> struct Ord<EBCDIC,'v'> {static uint8_t const value = 0xa5;};
220
template<> struct Ord<EBCDIC,'w'> {static uint8_t const value = 0xa6;};
221
template<> struct Ord<EBCDIC,'x'> {static uint8_t const value = 0xa7;};
222
template<> struct Ord<EBCDIC,'y'> {static uint8_t const value = 0xa8;};
223
template<> struct Ord<EBCDIC,'z'> {static uint8_t const value = 0xa9;};
224
template<> struct Ord<EBCDIC,'{'> {static uint8_t const value = 0xc0;};
225
template<> struct Ord<EBCDIC,'|'> {static uint8_t const value = 0x4f;};
226
template<> struct Ord<EBCDIC,'}'> {static uint8_t const value = 0xd0;};
228
template <unsigned char _> struct UC2lc {static unsigned char const value = _;};
229
template <> struct UC2lc<'A'> {static unsigned char const value = 'a';};
230
template <> struct UC2lc<'B'> {static unsigned char const value = 'b';};
231
template <> struct UC2lc<'C'> {static unsigned char const value = 'c';};
232
template <> struct UC2lc<'D'> {static unsigned char const value = 'd';};
233
template <> struct UC2lc<'E'> {static unsigned char const value = 'e';};
234
template <> struct UC2lc<'F'> {static unsigned char const value = 'f';};
235
template <> struct UC2lc<'G'> {static unsigned char const value = 'g';};
236
template <> struct UC2lc<'H'> {static unsigned char const value = 'h';};
237
template <> struct UC2lc<'I'> {static unsigned char const value = 'i';};
238
template <> struct UC2lc<'J'> {static unsigned char const value = 'j';};
239
template <> struct UC2lc<'K'> {static unsigned char const value = 'k';};
240
template <> struct UC2lc<'L'> {static unsigned char const value = 'l';};
241
template <> struct UC2lc<'M'> {static unsigned char const value = 'm';};
242
template <> struct UC2lc<'N'> {static unsigned char const value = 'n';};
243
template <> struct UC2lc<'O'> {static unsigned char const value = 'o';};
244
template <> struct UC2lc<'P'> {static unsigned char const value = 'p';};
245
template <> struct UC2lc<'Q'> {static unsigned char const value = 'q';};
246
template <> struct UC2lc<'R'> {static unsigned char const value = 'r';};
247
template <> struct UC2lc<'S'> {static unsigned char const value = 's';};
248
template <> struct UC2lc<'T'> {static unsigned char const value = 't';};
249
template <> struct UC2lc<'U'> {static unsigned char const value = 'u';};
250
template <> struct UC2lc<'V'> {static unsigned char const value = 'v';};
251
template <> struct UC2lc<'W'> {static unsigned char const value = 'w';};
252
template <> struct UC2lc<'X'> {static unsigned char const value = 'x';};
253
template <> struct UC2lc<'Y'> {static unsigned char const value = 'y';};
254
template <> struct UC2lc<'Z'> {static unsigned char const value = 'z';};
256
template <unsigned char _> struct lc2UC {static unsigned char const value = _;};
257
template <> struct lc2UC<'a'> {static unsigned char const value = 'A';};
258
template <> struct lc2UC<'b'> {static unsigned char const value = 'B';};
259
template <> struct lc2UC<'c'> {static unsigned char const value = 'C';};
260
template <> struct lc2UC<'d'> {static unsigned char const value = 'D';};
261
template <> struct lc2UC<'e'> {static unsigned char const value = 'E';};
262
template <> struct lc2UC<'f'> {static unsigned char const value = 'F';};
263
template <> struct lc2UC<'g'> {static unsigned char const value = 'G';};
264
template <> struct lc2UC<'h'> {static unsigned char const value = 'H';};
265
template <> struct lc2UC<'i'> {static unsigned char const value = 'I';};
266
template <> struct lc2UC<'j'> {static unsigned char const value = 'J';};
267
template <> struct lc2UC<'k'> {static unsigned char const value = 'K';};
268
template <> struct lc2UC<'l'> {static unsigned char const value = 'L';};
269
template <> struct lc2UC<'m'> {static unsigned char const value = 'M';};
270
template <> struct lc2UC<'n'> {static unsigned char const value = 'N';};
271
template <> struct lc2UC<'o'> {static unsigned char const value = 'O';};
272
template <> struct lc2UC<'p'> {static unsigned char const value = 'P';};
273
template <> struct lc2UC<'q'> {static unsigned char const value = 'Q';};
274
template <> struct lc2UC<'r'> {static unsigned char const value = 'R';};
275
template <> struct lc2UC<'s'> {static unsigned char const value = 'S';};
276
template <> struct lc2UC<'t'> {static unsigned char const value = 'T';};
277
template <> struct lc2UC<'u'> {static unsigned char const value = 'U';};
278
template <> struct lc2UC<'v'> {static unsigned char const value = 'V';};
279
template <> struct lc2UC<'w'> {static unsigned char const value = 'W';};
280
template <> struct lc2UC<'x'> {static unsigned char const value = 'X';};
281
template <> struct lc2UC<'y'> {static unsigned char const value = 'Y';};
282
template <> struct lc2UC<'z'> {static unsigned char const value = 'Z';};