MCPcopy Create free account
hub / github.com/Samsung/ONE / doesAnyCharRequireEscaping

Function doesAnyCharRequireEscaping

runtime/3rdparty/jsoncpp/jsoncpp.cpp:4597–4603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4595String valueToString(bool value) { return value ? "true" : "false"; }
4596
4597static bool doesAnyCharRequireEscaping(char const *s, size_t n)
4598{
4599 assert(s || !n);
4600
4601 return std::any_of(s, s + n,
4602 [](unsigned char c) { return c == '\\' || c == '"' || c < 0x20 || c > 0x7F; });
4603}
4604
4605static unsigned int utf8ToCodepoint(const char *&s, const char *e)
4606{

Callers 1

valueToQuotedStringNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected