MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / escape

Function escape

include/behaviortree_cpp/contrib/json.hpp:2990–2995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2988 */
2989template<typename StringType>
2990inline StringType escape(StringType s)
2991{
2992 replace_substring(s, StringType{"~"}, StringType{"~0"});
2993 replace_substring(s, StringType{"/"}, StringType{"~1"});
2994 return s;
2995}
2996
2997/*!
2998 * @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