| 465 | } |
| 466 | |
| 467 | std::string regex_escape(const std::string & s) { |
| 468 | static const std::regex special_chars("[.^$|()*+?\\[\\]{}\\\\]"); |
| 469 | return std::regex_replace(s, special_chars, "\\$0"); |
| 470 | } |
| 471 | |
| 472 | std::string string_join(const std::vector<std::string> & values, const std::string & separator) { |
| 473 | std::ostringstream result; |
no outgoing calls
no test coverage detected