~ubuntu-branches/ubuntu/karmic/firebird2.1/karmic

« back to all changes in this revision

Viewing changes to src/intl/utils/mapdump.c

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov
  • Date: 2008-05-26 23:59:25 UTC
  • Revision ID: james.westby@ubuntu.com-20080526235925-2pnqj6nxpppoeaer
Tags: upstream-2.1.0.17798-0.ds2
ImportĀ upstreamĀ versionĀ 2.1.0.17798-0.ds2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 "../jrd/common.h"
 
22
 
 
23
#include "cs_w1254.h"
 
24
 
 
25
/*
 
26
fixed
 
27
#include "cs_cyrl.h"
 
28
#include "cs_865.h"
 
29
#include "cs_863.h"
 
30
#include "cs_861.h"
 
31
#include "cs_860.h"
 
32
#include "cs_857.h"
 
33
#include "cs_w1251.h"
 
34
#include "cs_437.h"
 
35
#include "cs_850.h"
 
36
#include "cs_852.h"
 
37
#include "cs_w1250.h"
 
38
#include "cs_w1252.h"
 
39
#include "cs_w1253.h"
 
40
 
 
41
fixed with errors
 
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
 
46
 
 
47
No errors
 
48
#include "../intl/cs_iso8859_1.h"
 
49
*/
 
50
 
 
51
/* 
 
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"
 
58
*/
 
59
 
 
60
 
 
61
#define UNICODE_INDEX(u)        (((u) % 256) + from_unicode_map [((u) / 256)])
 
62
#define UNICODE_LOOKUP(u)       from_unicode_mapping_array [ UNICODE_INDEX(u) ]
 
63
 
 
64
main()
 
65
{
 
66
        unsigned short uch;
 
67
        int i;
 
68
 
 
69
        for (i = 0; i <= 255; i++) {
 
70
                uch = to_unicode_map[i];
 
71
                printf("0x%02X\t0x%04X\t#\n", i, uch);
 
72
        }
 
73
 
 
74
        printf("Test completed\n");
 
75
}