| 86 | } |
| 87 | |
| 88 | string |
| 89 | unescape(string &str) |
| 90 | { |
| 91 | // It's not a real unescape. But it works enough. |
| 92 | for (size_t p = str.find_first_of('\\'); p != string::npos; p = str.find_first_of('\\', p)) { |
| 93 | str.erase(p, 1); |
| 94 | } |
| 95 | return str; |
| 96 | } |
| 97 | |
| 98 | string |
| 99 | escape(string &str) |