diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
commit | 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch) | |
tree | 181aa272821ace382565b3c3465949101b98e253 /src/SongFilter.cxx | |
parent | 2bbff77e489ae72a332b18b122844bd761d75764 (diff) |
Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
Diffstat (limited to 'src/SongFilter.cxx')
-rw-r--r-- | src/SongFilter.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 8874b3448..62fc8b39f 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -21,6 +21,7 @@ #include "SongFilter.hxx" #include "Song.hxx" #include "tag/Tag.hxx" +#include "util/ASCII.hxx" #include <glib.h> @@ -35,11 +36,11 @@ unsigned locate_parse_type(const char *str) { - if (0 == g_ascii_strcasecmp(str, LOCATE_TAG_FILE_KEY) || - 0 == g_ascii_strcasecmp(str, LOCATE_TAG_FILE_KEY_OLD)) + if (StringEqualsCaseASCII(str, LOCATE_TAG_FILE_KEY) || + StringEqualsCaseASCII(str, LOCATE_TAG_FILE_KEY_OLD)) return LOCATE_TAG_FILE_TYPE; - if (0 == g_ascii_strcasecmp(str, LOCATE_TAG_ANY_KEY)) + if (StringEqualsCaseASCII(str, LOCATE_TAG_ANY_KEY)) return LOCATE_TAG_ANY_TYPE; return tag_name_parse_i(str); |