1/* Character set conversion.
2   Copyright (C) 2007, 2020 Free Software Foundation, Inc.
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 3, or (at your option)
7   any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13
14   You should have received a copy of the GNU General Public License along
15   with this program; if not, see <https://www.gnu.org/licenses/>.  */
16
17struct mapping { int standard_name; const char vendor_name[9 + 1]; };
18%struct-type
19%language=ANSI-C
20%define slot-name standard_name
21%define hash-function-name mapping_hash
22%define lookup-function-name mapping_lookup
23%readonly-tables
24%global-table
25%define word-array-name mappings
26%pic
27%%
28# On HP-UX 11.11, look in /usr/lib/nls/iconv.
29ISO-8859-1, "iso88591"
30ISO-8859-2, "iso88592"
31ISO-8859-5, "iso88595"
32ISO-8859-6, "iso88596"
33ISO-8859-7, "iso88597"
34ISO-8859-8, "iso88598"
35ISO-8859-9, "iso88599"
36ISO-8859-15, "iso885915"
37CP437, "cp437"
38CP775, "cp775"
39CP850, "cp850"
40CP852, "cp852"
41CP855, "cp855"
42CP857, "cp857"
43CP861, "cp861"
44CP862, "cp862"
45CP864, "cp864"
46CP865, "cp865"
47CP866, "cp866"
48CP869, "cp869"
49CP874, "cp874"
50CP1250, "cp1250"
51CP1251, "cp1251"
52CP1252, "cp1252"
53CP1253, "cp1253"
54CP1254, "cp1254"
55CP1255, "cp1255"
56CP1256, "cp1256"
57CP1257, "cp1257"
58CP1258, "cp1258"
59HP-ROMAN8, "roman8"
60HP-ARABIC8, "arabic8"
61HP-GREEK8, "greek8"
62HP-HEBREW8, "hebrew8"
63HP-TURKISH8, "turkish8"
64HP-KANA8, "kana8"
65TIS-620, "tis620"
66GB2312, "hp15CN"
67EUC-JP, "eucJP"
68EUC-KR, "eucKR"
69EUC-TW, "eucTW"
70BIG5, "big5"
71SHIFT_JIS, "sjis"
72UTF-8, "utf8"
73