1 /* EasyTAG - Tag editor for audio files 2 * Copyright (C) 2014 David King <amigadave@amigadave.com> 3 * Copyright (C) 2000-2003 Jerome Couderc <easytag@gmail.com> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef ET_CHARSET_H_ 21 #define ET_CHARSET_H_ 22 23 #include <gtk/gtk.h> 24 25 G_BEGIN_DECLS 26 27 const char *get_encoding_from_locale (const char *locale); 28 const gchar *get_locale (void); 29 30 gchar *convert_string (const gchar *string, const gchar *from_codeset, const gchar *to_codeset, const gboolean display_error); 31 gchar *convert_string_1 (const gchar *string, gssize length, const gchar *from_codeset, const gchar *to_codeset, const gboolean display_error); 32 33 gchar *filename_from_display (const gchar *string); 34 35 gchar *Try_To_Validate_Utf8_String (const gchar *string); 36 37 void Charset_Populate_Combobox (GtkComboBox *combo, gint select_charset); 38 const gchar * et_charset_get_name_from_index (guint index); 39 40 void Charset_Insert_Locales_Init (void); 41 void Charset_Insert_Locales_Destroy (void); 42 43 G_END_DECLS 44 45 #endif /* ET_CHARSET_H_ */ 46