MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / unescape

Function unescape

dependencies/json/json.hpp:12444–12448  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

12442
12443 /// unescape "~1" to tilde and "~0" to slash (order is important!)
12444 static void unescape(std::string& s)
12445 {
12446 replace_substring(s, "~1", "/");
12447 replace_substring(s, "~0", "~");
12448 }
12449
12450 private:
12451 /*!

Callers 1

splitFunction · 0.70

Calls 1

replace_substringFunction · 0.70

Tested by

no test coverage detected