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
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.
12
* The Original Code was created by Inprise Corporation
13
* and its predecessors. Portions created by Inprise Corporation are
14
* Copyright (C) Inprise Corporation.
16
* All Rights Reserved.
17
* Contributor(s): ______________________________________.
21
#include "../jrd/common.h"
42
#include "cs_next.h" -- NeXT has two characters mapping to the same
43
Unicode (FE & FF). So round trip is not possible.
44
They map to FFFD, which is the replacement character
45
so this is not an error
48
#include "../intl/cs_iso8859_1.h"
52
-- Multibyte character sets --
53
#include "../intl/cs_big5.h"
54
#include "../intl/cs_gb2312.h"
55
#include "../intl/cs_jis_0208_1990.h"
56
#include "../intl/cs_ksc5601.h"
57
#include "../intl/csjis2_p.h"
61
#define UNICODE_INDEX(u) (((u) % 256) + from_unicode_map [((u) / 256)])
62
#define UNICODE_LOOKUP(u) from_unicode_mapping_array [ UNICODE_INDEX(u) ]
69
for (i = 0; i <= 255; i++) {
70
uch = to_unicode_map[i];
71
printf("0x%02X\t0x%04X\t#\n", i, uch);
74
printf("Test completed\n");