| 222 | } |
| 223 | |
| 224 | std::string EscapeOptionString(const std::string& raw_string) { |
| 225 | std::string output; |
| 226 | for (auto c : raw_string) { |
| 227 | if (isSpecialChar(c)) { |
| 228 | output += '\\'; |
| 229 | output += EscapeChar(c); |
| 230 | } else { |
| 231 | output += c; |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | return output; |
| 236 | } |
| 237 | |
| 238 | std::string UnescapeOptionString(const std::string& escaped_string) { |
| 239 | bool escaped = false; |