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

@@ -33,6 +33,7 @@
#include "protocol/Result.hxx"
#include "ls.hxx"
#include "Volume.hxx"
#include "util/ASCII.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "fs/AllocatedPath.hxx"
@@ -47,8 +48,6 @@
#include "StickerDatabase.hxx"
#endif
#include <glib.h>
#include <assert.h>
#include <string.h>
@@ -298,7 +297,7 @@ handle_idle(Client &client,
continue;
for (j = 0; idle_names[j]; ++j) {
if (!g_ascii_strcasecmp(argv[i], idle_names[j])) {
if (StringEqualsCaseASCII(argv[i], idle_names[j])) {
flags |= (1 << j);
}
}