| 86 | |
| 87 | template <typename I> |
| 88 | std::string join(I iter, I end, std::string const& delim) { |
| 89 | if (iter==end) |
| 90 | return {}; |
| 91 | |
| 92 | std::string ret = *iter; |
| 93 | for(++iter; iter!=end; ++iter) { |
| 94 | ret.append(delim); |
| 95 | ret.append(*iter); |
| 96 | } |
| 97 | return ret; |
| 98 | } |
| 99 | |
| 100 | std::vector<std::string> regex_split(std::string const& text, std::regex const& re) |
| 101 | { |
no outgoing calls
no test coverage detected