Mercurial > audlegacy
diff src/audacious/strings.h @ 2373:ad1d7687814c trunk
[svn] made strings.h for existing strings.c, cleanups
author | mf0102 |
---|---|
date | Sat, 20 Jan 2007 04:48:41 -0800 |
parents | |
children | ab2b1b6f6179 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/audacious/strings.h Sat Jan 20 04:48:41 2007 -0800 @@ -0,0 +1,52 @@ +/* Audacious + * Copyright (C) 2005-2007 Audacious development team. + * + * BMP - Cross-platform multimedia player + * Copyright (C) 2003-2004 BMP development team. + * + * Based on XMMS: + * Copyright (C) 1998-2003 XMMS development team. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; under version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301, USA. + */ + +#ifndef STRINGS_H +#define STRINGS_H + +#include <glib.h> + +gchar *escape_shell_chars(const gchar * string); + +gchar *str_append(gchar * str, const gchar * add_str); +gchar *str_replace(gchar * str, gchar * new_str); +void str_replace_in(gchar ** str, gchar * new_str); + +gboolean str_has_prefix_nocase(const gchar * str, const gchar * prefix); +gboolean str_has_suffix_nocase(const gchar * str, const gchar * suffix); +gboolean str_has_suffixes_nocase(const gchar * str, gchar * const *suffixes); + +gchar *str_to_utf8_fallback(const gchar * str); +gchar *filename_to_utf8(const gchar * filename); +gchar *str_to_utf8(const gchar * str); + +const gchar *str_skip_chars(const gchar * str, const gchar * chars); + +gchar *convert_title_text(gchar * text); + +gchar *chardet_to_utf8(const gchar *str, gssize len, + gsize *arg_bytes_read, gsize *arg_bytes_write, + GError **arg_error); + +#endif