TODO support bool skip_empty = false
| 19 | |
| 20 | // TODO support bool skip_empty = false |
| 21 | inline std::string join(const std::vector<std::string> &elems, const string& delim) { |
| 22 | std::string str; |
| 23 | for (int i = 0; i < elems.size() - 1; ++i) { |
| 24 | str += elems[i] + delim; |
| 25 | } |
| 26 | str += elems.back(); |
| 27 | return str; |
| 28 | } |
| 29 | |
| 30 | } // namespace PS |
no test coverage detected