MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / escape

Function escape

Source/external/json.hpp:2974–2979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2972 */
2973template<typename StringType>
2974inline StringType escape(StringType s)
2975{
2976 replace_substring(s, StringType{"~"}, StringType{"~0"});
2977 replace_substring(s, StringType{"/"}, StringType{"~1"});
2978 return s;
2979}
2980
2981/*!
2982 * @brief string unescaping as described in RFC 6901 (Sect. 4)

Callers 4

diagnosticsMethod · 0.85
to_stringFunction · 0.85
json.hppFile · 0.85
basic_json diffFunction · 0.85

Calls 1

replace_substringFunction · 0.85

Tested by

no test coverage detected