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/util/StringUtil.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/util/StringUtil.cxx') diff --git a/src/util/StringUtil.cxx b/src/util/StringUtil.cxx index 048f009f5..7e295bf90 100644 --- a/src/util/StringUtil.cxx +++ b/src/util/StringUtil.cxx @@ -19,8 +19,7 @@ #include "StringUtil.hxx" #include "CharUtil.hxx" - -#include +#include "ASCII.hxx" #include @@ -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; -- cgit v1.2.3