aboutsummaryrefslogtreecommitdiff
path: root/common/json.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-11 14:02:32 +0600
committerAlexander Tkachev2016-08-24 16:05:07 +0600
commite4e2ec390d364770d16a3a478796c1b949e8645f (patch)
tree4bfcb6288671e646dcf759c00f93e6bc8c5553b5 /common/json.cpp
parent2ac2816d68c11b50796457f7d41896a1ed7d571e (diff)
downloadscummvm-rg350-e4e2ec390d364770d16a3a478796c1b949e8645f.tar.gz
scummvm-rg350-e4e2ec390d364770d16a3a478796c1b949e8645f.tar.bz2
scummvm-rg350-e4e2ec390d364770d16a3a478796c1b949e8645f.zip
CLOUD: Remove wcsncasecmp() usage from SimpleJSON
Replaced with scumm_strnicmp().
Diffstat (limited to 'common/json.cpp')
-rw-r--r--common/json.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/json.cpp b/common/json.cpp
index 878c67e1ae..83ce0db29d 100644
--- a/common/json.cpp
+++ b/common/json.cpp
@@ -281,15 +281,15 @@ JSONValue *JSONValue::parse(const char **data) {
return new JSONValue(str);
}
- // Is it a boolean?
- else if ((simplejson_wcsnlen(*data, 4) && wcsncasecmp(*data, "true", 4) == 0) || (simplejson_wcsnlen(*data, 5) && wcsncasecmp(*data, "false", 5) == 0)) {
- bool value = wcsncasecmp(*data, "true", 4) == 0;
+ // Is it a boolean?
+ else if ((simplejson_wcsnlen(*data, 4) && scumm_strnicmp(*data, "true", 4) == 0) || (simplejson_wcsnlen(*data, 5) && scumm_strnicmp(*data, "false", 5) == 0)) {
+ bool value = scumm_strnicmp(*data, "true", 4) == 0;
(*data) += value ? 4 : 5;
return new JSONValue(value);
}
// Is it a null?
- else if (simplejson_wcsnlen(*data, 4) && wcsncasecmp(*data, "null", 4) == 0) {
+ else if (simplejson_wcsnlen(*data, 4) && scumm_strnicmp(*data, "null", 4) == 0) {
(*data) += 4;
return new JSONValue();
}