MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / RequiresJSONStringEscaping

Function RequiresJSONStringEscaping

include/util/string_util.hpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}();
28
29inline bool RequiresJSONStringEscaping(const std::string &string)
30{
31 uint8_t needs = 0;
32 for (uint8_t c : string)
33 {
34 needs |= json_quotable_character[c];
35 }
36 return needs;
37}
38
39inline void EscapeJSONString(const std::string &input, std::string &output)
40{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected