| 413 | } |
| 414 | |
| 415 | std::string join(const std::vector<std::string> &text, char sep) |
| 416 | { |
| 417 | std::string ret; |
| 418 | for (std::size_t i = 0; i < text.size(); ++i) { |
| 419 | ret += text[i]; |
| 420 | if (i < text.size() - 1) { |
| 421 | ret += sep; |
| 422 | } |
| 423 | } |
| 424 | return ret; |
| 425 | } |
| 426 | |
| 427 | bool iequals(const std::string& lhs, const std::string& rhs) |
| 428 | { |