| 106 | |
| 107 | } |
| 108 | void unescape(std::string &str, char toUnescape) |
| 109 | { |
| 110 | |
| 111 | size_t pos; |
| 112 | std::string escaped = escapeCharacter(toUnescape); |
| 113 | while ((pos = str.find(escaped)) != std::string::npos) |
| 114 | { |
| 115 | str = str.replace(pos, escaped.size(), std::string(1, toUnescape)); |
| 116 | } |
| 117 | |
| 118 | } |
| 119 | } |
no test coverage detected