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

@@ -19,8 +19,7 @@
#include "StringUtil.hxx"
#include "CharUtil.hxx"
#include <glib.h>
#include "ASCII.hxx"
#include <assert.h>
@@ -40,7 +39,7 @@ string_array_contains(const char *const* haystack, const char *needle)
assert(needle != nullptr);
for (; *haystack != nullptr; ++haystack)
if (g_ascii_strcasecmp(*haystack, needle) == 0)
if (StringEqualsCaseASCII(*haystack, needle))
return true;
return false;