MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / unescape

Function unescape

native/thirdpart/json/json.hpp:10945–10949  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

10943
10944 /// unescape "~1" to tilde and "~0" to slash (order is important!)
10945 static void unescape(std::string& s)
10946 {
10947 replace_substring(s, "~1", "/");
10948 replace_substring(s, "~0", "~");
10949 }
10950
10951 /*!
10952 @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