blob: de5db7f5140b1b33a44e559f049539adb8d8ab20 [file] [log] [blame]
Alistair Delvabeaee832021-02-24 11:27:23 -08001/* Copyright 1996,1997,2001,2002,2009 Alain Knaff.
2 * This file is part of mtools.
3 *
4 * Mtools 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 of the License, or
7 * (at your option) any later version.
8 *
9 * Mtools 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
15 * along with Mtools. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18typedef struct Codepage_l {
Yi Kong39bbd962022-01-09 19:41:38 +080019 int nr;
Alistair Delvabeaee832021-02-24 11:27:23 -080020 unsigned char tounix[128];
21} Codepage_t;
22
23
24typedef struct country_l {
25 int country;
26 int codepage;
27 int default_codepage;
28 int to_upper;
29} country_t;
30
31
32void init_codepage(void);
33unsigned char to_dos(unsigned char c);
34void to_unix(char *a, int n);
35char contents_to_unix(char a);
36
37extern Codepage_t *Codepage;
38extern char *mstoupper;
39extern country_t countries[];
40extern unsigned char toucase[][128];
41extern Codepage_t codepages[];
42extern char *country_string;