TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ unescape()

static void nlohmann::detail::unescape ( std::string &  s)
static

string unescaping as described in RFC 6901 (Sect. 4)

Parameters
[in]sstring to unescape
Returns
unescaped string

Note the order of escaping "~1" to "/" and "~0" to "~" is important.

Definition at line 2572 of file json.hpp.

2573{
2574 replace_substring(s, "~1", "/");
2575 replace_substring(s, "~0", "~");
2576}
void replace_substring(std::string &s, const std::string &f, const std::string &t)
replace all occurrences of a substring by another string
Definition: json.hpp:2539