| 125 | |
| 126 | template <typename StringLike> |
| 127 | static std::string JoinStringLikes(const std::vector<StringLike>& strings, |
| 128 | std::string_view delimiter) { |
| 129 | if (strings.size() == 0) { |
| 130 | return ""; |
| 131 | } |
| 132 | std::string out = std::string(strings.front()); |
| 133 | for (size_t i = 1; i < strings.size(); ++i) { |
| 134 | out.append(delimiter.begin(), delimiter.end()); |
| 135 | out.append(strings[i].begin(), strings[i].end()); |
| 136 | } |
| 137 | return out; |
| 138 | } |
| 139 | |
| 140 | std::string JoinStrings(const std::vector<std::string_view>& strings, |
| 141 | std::string_view delimiter) { |
no test coverage detected