mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-12 10:03:51 +01:00
This commit is contained in:
parent
e36cff19f0
commit
75b360af4a
@ -178,7 +178,7 @@ String valueToString(bool value) { return value ? "true" : "false"; }
|
||||
static bool isAnyCharRequiredQuoting(char const* s, size_t n) {
|
||||
assert(s || !n);
|
||||
|
||||
return std::any_of(s, s + n, [](int c) {
|
||||
return std::any_of(s, s + n, [](unsigned char c) {
|
||||
return c == '\\' || c == '"' || !std::isprint(c);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user