| 1 |
/* |
| 2 |
* The contents of this file are subject to the Interbase Public |
| 3 |
* License Version 1.0 (the "License"); you may not use this file |
| 4 |
* except in compliance with the License. You may obtain a copy |
| 5 |
* of the License at http://www.Inprise.com/IPL.html |
| 6 |
* |
| 7 |
* Software distributed under the License is distributed on an |
| 8 |
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express |
| 9 |
* or implied. See the License for the specific language governing |
| 10 |
* rights and limitations under the License. |
| 11 |
* |
| 12 |
* The Original Code was created by Inprise Corporation |
| 13 |
* and its predecessors. Portions created by Inprise Corporation are |
| 14 |
* Copyright (C) Inprise Corporation. |
| 15 |
* |
| 16 |
* All Rights Reserved. |
| 17 |
* Contributor(s): ______________________________________. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include "firebird.h" |
| 21 |
#include "cs_w1254.h" |
| 22 |
|
| 23 |
/* |
| 24 |
fixed |
| 25 |
#include "cs_cyrl.h" |
| 26 |
#include "cs_865.h" |
| 27 |
#include "cs_863.h" |
| 28 |
#include "cs_861.h" |
| 29 |
#include "cs_860.h" |
| 30 |
#include "cs_857.h" |
| 31 |
#include "cs_w1251.h" |
| 32 |
#include "cs_437.h" |
| 33 |
#include "cs_850.h" |
| 34 |
#include "cs_852.h" |
| 35 |
#include "cs_w1250.h" |
| 36 |
#include "cs_w1252.h" |
| 37 |
#include "cs_w1253.h" |
| 38 |
|
| 39 |
fixed with errors |
| 40 |
#include "cs_next.h" -- NeXT has two characters mapping to the same |
| 41 |
Unicode (FE & FF). So round trip is not possible. |
| 42 |
They map to FFFD, which is the replacement character |
| 43 |
so this is not an error |
| 44 |
|
| 45 |
No errors |
| 46 |
#include "../intl/cs_iso8859_1.h" |
| 47 |
*/ |
| 48 |
|
| 49 |
/* |
| 50 |
-- Multibyte character sets -- |
| 51 |
#include "../intl/cs_big5.h" |
| 52 |
#include "../intl/cs_gb2312.h" |
| 53 |
#include "../intl/cs_jis_0208_1990.h" |
| 54 |
#include "../intl/cs_ksc5601.h" |
| 55 |
#include "../intl/csjis2_p.h" |
| 56 |
*/ |
| 57 |
|
| 58 |
|
| 59 |
#define UNICODE_INDEX(u) (((u) % 256) + from_unicode_map [((u) / 256)]) |
| 60 |
#define UNICODE_LOOKUP(u) from_unicode_mapping_array [ UNICODE_INDEX(u) ] |
| 61 |
|
| 62 |
main() |
| 63 |
{ |
| 64 |
unsigned short uch; |
| 65 |
int i; |
| 66 |
|
| 67 |
for (i = 0; i <= 255; i++) { |
| 68 |
uch = to_unicode_map[i]; |
| 69 |
printf("0x%02X\t0x%04X\t#\n", i, uch); |
| 70 |
} |
| 71 |
|
| 72 |
printf("Test completed\n"); |
| 73 |
} |