Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user