1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2017 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __HB_ENCODING_H__
21 #define __HB_ENCODING_H__
31 typedef struct _GeditEncoding GeditEncoding
;
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
,
53 GEDIT_ENCODING_UTF_16
,
54 GEDIT_ENCODING_UTF_16_BE
,
55 GEDIT_ENCODING_UTF_16_LE
,
56 GEDIT_ENCODING_UTF_32
,
60 GEDIT_ENCODING_ARMSCII_8
,
62 GEDIT_ENCODING_BIG5_HKSCS
,
63 GEDIT_ENCODING_CP_866
,
65 GEDIT_ENCODING_EUC_JP
,
66 GEDIT_ENCODING_EUC_JP_MS
,
68 GEDIT_ENCODING_EUC_KR
,
69 GEDIT_ENCODING_EUC_TW
,
71 GEDIT_ENCODING_GB18030
,
72 GEDIT_ENCODING_GB2312
,
74 GEDIT_ENCODING_GEOSTD8
,
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
,
84 GEDIT_ENCODING_ISO_2022_JP
,
85 GEDIT_ENCODING_ISO_2022_KR
,
86 GEDIT_ENCODING_ISO_IR_111
,
88 GEDIT_ENCODING_KOI8_R
,
89 GEDIT_ENCODING_KOI8__R
,
90 GEDIT_ENCODING_KOI8_U
,
92 GEDIT_ENCODING_SHIFT_JIS
,
94 GEDIT_ENCODING_TIS_620
,
96 GEDIT_ENCODING_VISCII
,
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
,
110 GEDIT_ENCODING_UTF_8
,
111 GEDIT_ENCODING_UNKNOWN
113 } GeditEncodingIndex
;
115 const GeditEncoding
*gedit_encoding_get_from_index (gint index
);
117 const GeditEncoding
*gedit_encoding_get_utf8 (void);
119 const gchar
*homebank_file_getencoding(gchar
*filename
);
120 gchar
*homebank_utf8_ensure(gchar
*buffer
);