aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/TagTable.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
commit0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch)
tree181aa272821ace382565b3c3465949101b98e253 /src/tag/TagTable.cxx
parent2bbff77e489ae72a332b18b122844bd761d75764 (diff)
downloadmpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.gz
mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.xz
mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.zip
Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
Diffstat (limited to 'src/tag/TagTable.cxx')
-rw-r--r--src/tag/TagTable.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tag/TagTable.cxx b/src/tag/TagTable.cxx
index c7e920f2e..b51bc35ba 100644
--- a/src/tag/TagTable.cxx
+++ b/src/tag/TagTable.cxx
@@ -18,8 +18,7 @@
*/
#include "TagTable.hxx"
-
-#include <glib.h>
+#include "util/ASCII.hxx"
#include <string.h>
@@ -47,7 +46,7 @@ TagType
tag_table_lookup_i(const struct tag_table *table, const char *name)
{
for (; table->name != nullptr; ++table)
- if (g_ascii_strcasecmp(name, table->name) == 0)
+ if (StringEqualsCaseASCII(name, table->name))
return table->type;
return TAG_NUM_OF_ITEM_TYPES;