From 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 23:09:51 +0200 Subject: Util/ASCII: add function StringEqualsCaseASCII() Replaces GLib's g_ascii_strcasecmp(). --- src/tag/Tag.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tag/Tag.cxx') diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx index 6ff8b3dc9..6bf070429 100644 --- a/src/tag/Tag.cxx +++ b/src/tag/Tag.cxx @@ -22,6 +22,7 @@ #include "TagPool.hxx" #include "TagString.hxx" #include "TagSettings.h" +#include "util/ASCII.hxx" #include #include @@ -50,7 +51,7 @@ tag_name_parse_i(const char *name) for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; ++i) { assert(tag_item_names[i] != nullptr); - if (g_ascii_strcasecmp(name, tag_item_names[i]) == 0) + if (StringEqualsCaseASCII(name, tag_item_names[i])) return (TagType)i; } -- cgit v1.2.3