2 * Routines for handling character sets
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
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.
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.
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.
22 #ifndef __CHARSETS_H__
23 #define __CHARSETS_H__
25 #include "ws_symbol_export.h"
29 #endif /* __cplusplus */
32 void ASCII_to_EBCDIC(guint8 *buf, guint bytes);
33 guint8 ASCII_to_EBCDIC1(guint8 c);
36 void EBCDIC_to_ASCII(guint8 *buf, guint bytes);
38 guint8 EBCDIC_to_ASCII1(guint8 c);
40 WS_DLL_PUBLIC gunichar
41 GSM_to_UNICHAR(guint8 c);
43 WS_DLL_PUBLIC gunichar
44 GSMext_to_UNICHAR(guint8 c);
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.
52 /* Table for windows-1250 */
53 extern const gunichar2 charset_table_cp1250[0x80];
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];
71 /* Tables for Mac character sets */
72 extern const gunichar2 charset_table_mac_roman[0x80];
74 /* Tables for DOS code pages */
75 extern const gunichar2 charset_table_cp437[0x80];
79 #endif /* __cplusplus */
81 #endif /* __CHARSETS_H__ */
84 * Editor modelines - http://www.wireshark.org/tools/modelines.html
89 * indent-tabs-mode: nil
92 * vi: set shiftwidth=4 tabstop=8 expandtab:
93 * :indentSize=4:tabSize=8:noTabs=true: