Move GSM guint8 to unicode conversion functions to charsets.c
[metze/wireshark/wip.git] / epan / charsets.h
1 /* charsets.h
2  * Routines for handling character sets
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 #ifndef __CHARSETS_H__
23 #define __CHARSETS_H__
24
25 #include "ws_symbol_export.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
30
31 #if 0
32 void ASCII_to_EBCDIC(guint8 *buf, guint bytes);
33 guint8 ASCII_to_EBCDIC1(guint8 c);
34 #endif
35 WS_DLL_PUBLIC
36 void EBCDIC_to_ASCII(guint8 *buf, guint bytes);
37 WS_DLL_PUBLIC
38 guint8 EBCDIC_to_ASCII1(guint8 c);
39
40 WS_DLL_PUBLIC gunichar
41 GSM_to_UNICHAR(guint8 c);
42
43 WS_DLL_PUBLIC gunichar
44 GSMext_to_UNICHAR(guint8 c);
45
46 /*
47  * Translation tables that map the upper 128 code points in single-byte
48  * "extended ASCII" character encodings to Unicode code points in the
49  * Basic Multilingual Plane.
50  */
51
52 /* Table for windows-1250 */
53 extern const gunichar2 charset_table_cp1250[0x80];
54
55 /* Tables for ISO-8859-X */
56 extern const gunichar2 charset_table_iso_8859_2[0x80];
57 extern const gunichar2 charset_table_iso_8859_3[0x80];
58 extern const gunichar2 charset_table_iso_8859_4[0x80];
59 extern const gunichar2 charset_table_iso_8859_5[0x80];
60 extern const gunichar2 charset_table_iso_8859_6[0x80];
61 extern const gunichar2 charset_table_iso_8859_7[0x80];
62 extern const gunichar2 charset_table_iso_8859_8[0x80];
63 extern const gunichar2 charset_table_iso_8859_9[0x80];
64 extern const gunichar2 charset_table_iso_8859_10[0x80];
65 extern const gunichar2 charset_table_iso_8859_11[0x80];
66 extern const gunichar2 charset_table_iso_8859_13[0x80];
67 extern const gunichar2 charset_table_iso_8859_14[0x80];
68 extern const gunichar2 charset_table_iso_8859_15[0x80];
69 extern const gunichar2 charset_table_iso_8859_16[0x80];
70
71 /* Tables for Mac character sets */
72 extern const gunichar2 charset_table_mac_roman[0x80];
73
74 /* Tables for DOS code pages */
75 extern const gunichar2 charset_table_cp437[0x80];
76
77 #ifdef __cplusplus
78 }
79 #endif /* __cplusplus */
80
81 #endif /* __CHARSETS_H__ */
82
83 /*
84  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
85  *
86  * Local variables:
87  * c-basic-offset: 4
88  * tab-width: 8
89  * indent-tabs-mode: nil
90  * End:
91  *
92  * vi: set shiftwidth=4 tabstop=8 expandtab:
93  * :indentSize=4:tabSize=8:noTabs=true:
94  */