Util/ASCII: add function StringEqualsCaseASCII()

Replaces GLib's g_ascii_strcasecmp().
This commit is contained in:
Max Kellermann
2013-10-20 23:09:51 +02:00
parent 2bbff77e48
commit 0e4d2e7277
16 changed files with 110 additions and 52 deletions

View File

@@ -24,6 +24,7 @@
#include "ConfigGlobal.hxx"
#include "ConfigOption.hxx"
#include "system/FatalError.hxx"
#include "util/ASCII.hxx"
#include <glib.h>
@@ -40,7 +41,7 @@ TagLoadConfig()
std::fill_n(ignore_tag_items, TAG_NUM_OF_ITEM_TYPES, true);
if (0 == g_ascii_strcasecmp(value, "none"))
if (StringEqualsCaseASCII(value, "none"))
return;
bool quit = false;