MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / unescape

Function unescape

Source/Utils/json.hpp:12370–12374  ·  view source on GitHub ↗

unescape "~1" to tilde and "~0" to slash (order is important!)

Source from the content-addressed store, hash-verified

12368
12369 /// unescape "~1" to tilde and "~0" to slash (order is important!)
12370 static void unescape(std::string& s)
12371 {
12372 replace_substring(s, "~1", "/");
12373 replace_substring(s, "~0", "~");
12374 }
12375
12376 /*!
12377 @param[in] reference_string the reference string to the current value

Callers 1

splitFunction · 0.85

Calls 1

replace_substringFunction · 0.85

Tested by

no test coverage detected