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