escape "~"" to "~0" and "/" to "~1"
| 7212 | |
| 7213 | /// escape "~"" to "~0" and "/" to "~1" |
| 7214 | static std::string escape(std::string s) |
| 7215 | { |
| 7216 | replace_substring(s, "~", "~0"); |
| 7217 | replace_substring(s, "/", "~1"); |
| 7218 | return s; |
| 7219 | } |
| 7220 | |
| 7221 | /// unescape "~1" to tilde and "~0" to slash (order is important!) |
| 7222 | static void unescape(std::string& s) |
nothing calls this directly
no outgoing calls
no test coverage detected