2373
|
1 /* Audacious
|
|
2 * Copyright (C) 2005-2007 Audacious development team.
|
|
3 *
|
|
4 * BMP - Cross-platform multimedia player
|
|
5 * Copyright (C) 2003-2004 BMP development team.
|
|
6 *
|
|
7 * Based on XMMS:
|
|
8 * Copyright (C) 1998-2003 XMMS development team.
|
|
9 *
|
|
10 * This program is free software; you can redistribute it and/or modify
|
|
11 * it under the terms of the GNU General Public License as published by
|
|
12 * the Free Software Foundation; under version 2 of the License.
|
|
13 *
|
|
14 * This program is distributed in the hope that it will be useful,
|
|
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 * GNU General Public License for more details.
|
|
18 *
|
|
19 * You should have received a copy of the GNU General Public License
|
|
20 * along with this program; if not, write to the Free Software
|
|
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
22 * 02110-1301, USA.
|
|
23 */
|
|
24
|
|
25 #ifndef STRINGS_H
|
|
26 #define STRINGS_H
|
|
27
|
|
28 #include <glib.h>
|
|
29
|
|
30 gchar *escape_shell_chars(const gchar * string);
|
|
31
|
|
32 gchar *str_append(gchar * str, const gchar * add_str);
|
|
33 gchar *str_replace(gchar * str, gchar * new_str);
|
|
34 void str_replace_in(gchar ** str, gchar * new_str);
|
|
35
|
|
36 gboolean str_has_prefix_nocase(const gchar * str, const gchar * prefix);
|
|
37 gboolean str_has_suffix_nocase(const gchar * str, const gchar * suffix);
|
|
38 gboolean str_has_suffixes_nocase(const gchar * str, gchar * const *suffixes);
|
|
39
|
|
40 gchar *str_to_utf8_fallback(const gchar * str);
|
|
41 gchar *filename_to_utf8(const gchar * filename);
|
|
42 gchar *str_to_utf8(const gchar * str);
|
|
43
|
|
44 const gchar *str_skip_chars(const gchar * str, const gchar * chars);
|
|
45
|
|
46 gchar *convert_title_text(gchar * text);
|
|
47
|
|
48 gchar *chardet_to_utf8(const gchar *str, gssize len,
|
|
49 gsize *arg_bytes_read, gsize *arg_bytes_write,
|
|
50 GError **arg_error);
|
|
51
|
|
52 #endif
|