Mercurial > audlegacy
diff src/audacious/strings.h @ 4606:6b76f8589f5d
Added a temporary function str_assert_utf8() for finding points in code
where string data should be UTF-8 but might not be. In case of valid UTF-8
a copy of string is returned. If string is NOT valid UTF-8, a call backtrace
is printed and str_to_utf() is called instead.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Wed, 04 Jun 2008 23:17:47 +0300 |
| parents | 2eee464379dc |
| children |
line wrap: on
line diff
--- a/src/audacious/strings.h Wed Jun 04 22:40:03 2008 +0300 +++ b/src/audacious/strings.h Wed Jun 04 23:17:47 2008 +0300 @@ -40,6 +40,7 @@ gboolean str_has_suffix_nocase(const gchar * str, const gchar * suffix); gboolean str_has_suffixes_nocase(const gchar * str, gchar * const *suffixes); +gchar *str_assert_utf8(const gchar *str); gchar *str_to_utf8(const gchar * str); gchar *str_to_utf8_fallback(const gchar * str);
