Merge branch 'upstream'
[chaz/homebank] / src / hb-encoding.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HB_ENCODING_H__
21 #define __HB_ENCODING_H__
22
23
24 struct _GeditEncoding
25 {
26 gint index;
27 const gchar *charset;
28 const gchar *name;
29 };
30
31 typedef struct _GeditEncoding GeditEncoding;
32
33 typedef enum
34 {
35
36 GEDIT_ENCODING_ISO_8859_1,
37 GEDIT_ENCODING_ISO_8859_2,
38 GEDIT_ENCODING_ISO_8859_3,
39 GEDIT_ENCODING_ISO_8859_4,
40 GEDIT_ENCODING_ISO_8859_5,
41 GEDIT_ENCODING_ISO_8859_6,
42 GEDIT_ENCODING_ISO_8859_7,
43 GEDIT_ENCODING_ISO_8859_8,
44 GEDIT_ENCODING_ISO_8859_8_I,
45 GEDIT_ENCODING_ISO_8859_9,
46 GEDIT_ENCODING_ISO_8859_10,
47 GEDIT_ENCODING_ISO_8859_13,
48 GEDIT_ENCODING_ISO_8859_14,
49 GEDIT_ENCODING_ISO_8859_15,
50 GEDIT_ENCODING_ISO_8859_16,
51
52 GEDIT_ENCODING_UTF_7,
53 GEDIT_ENCODING_UTF_16,
54 GEDIT_ENCODING_UTF_16_BE,
55 GEDIT_ENCODING_UTF_16_LE,
56 GEDIT_ENCODING_UTF_32,
57 GEDIT_ENCODING_UCS_2,
58 GEDIT_ENCODING_UCS_4,
59
60 GEDIT_ENCODING_ARMSCII_8,
61 GEDIT_ENCODING_BIG5,
62 GEDIT_ENCODING_BIG5_HKSCS,
63 GEDIT_ENCODING_CP_866,
64
65 GEDIT_ENCODING_EUC_JP,
66 GEDIT_ENCODING_EUC_JP_MS,
67 GEDIT_ENCODING_CP932,
68 GEDIT_ENCODING_EUC_KR,
69 GEDIT_ENCODING_EUC_TW,
70
71 GEDIT_ENCODING_GB18030,
72 GEDIT_ENCODING_GB2312,
73 GEDIT_ENCODING_GBK,
74 GEDIT_ENCODING_GEOSTD8,
75 GEDIT_ENCODING_HZ,
76
77 GEDIT_ENCODING_IBM_850,
78 GEDIT_ENCODING_IBM_852,
79 GEDIT_ENCODING_IBM_855,
80 GEDIT_ENCODING_IBM_857,
81 GEDIT_ENCODING_IBM_862,
82 GEDIT_ENCODING_IBM_864,
83
84 GEDIT_ENCODING_ISO_2022_JP,
85 GEDIT_ENCODING_ISO_2022_KR,
86 GEDIT_ENCODING_ISO_IR_111,
87 GEDIT_ENCODING_JOHAB,
88 GEDIT_ENCODING_KOI8_R,
89 GEDIT_ENCODING_KOI8__R,
90 GEDIT_ENCODING_KOI8_U,
91
92 GEDIT_ENCODING_SHIFT_JIS,
93 GEDIT_ENCODING_TCVN,
94 GEDIT_ENCODING_TIS_620,
95 GEDIT_ENCODING_UHC,
96 GEDIT_ENCODING_VISCII,
97
98 GEDIT_ENCODING_WINDOWS_1250,
99 GEDIT_ENCODING_WINDOWS_1251,
100 GEDIT_ENCODING_WINDOWS_1252,
101 GEDIT_ENCODING_WINDOWS_1253,
102 GEDIT_ENCODING_WINDOWS_1254,
103 GEDIT_ENCODING_WINDOWS_1255,
104 GEDIT_ENCODING_WINDOWS_1256,
105 GEDIT_ENCODING_WINDOWS_1257,
106 GEDIT_ENCODING_WINDOWS_1258,
107
108 GEDIT_ENCODING_LAST,
109
110 GEDIT_ENCODING_UTF_8,
111 GEDIT_ENCODING_UNKNOWN
112
113 } GeditEncodingIndex;
114
115 const GeditEncoding *gedit_encoding_get_from_index (gint index);
116
117 const GeditEncoding *gedit_encoding_get_utf8 (void);
118
119 const gchar *homebank_file_getencoding(gchar *filename);
120 gchar *homebank_utf8_ensure(gchar *buffer);
121
122 #endif
123
This page took 0.044417 seconds and 5 git commands to generate.