| 465 | } |
| 466 | |
| 467 | std::string string_join(const std::vector<std::string> & values, const std::string & separator) { |
| 468 | std::ostringstream result; |
| 469 | for (size_t i = 0; i < values.size(); ++i) { |
| 470 | if (i > 0) { |
| 471 | result << separator; |
| 472 | } |
| 473 | result << values[i]; |
| 474 | } |
| 475 | return result.str(); |
| 476 | } |
| 477 | |
| 478 | std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) { |
| 479 | std::vector<std::string> parts; |