| 610 | } |
| 611 | |
| 612 | std::string Set2String(const std::unordered_set<std::string>& elems, char delim) { |
| 613 | std::string value; |
| 614 | for (const auto &e : elems) { |
| 615 | value.append(e); |
| 616 | value.append(1, delim); |
| 617 | } |
| 618 | if (!value.empty()) { |
| 619 | value.resize(value.size() - 1); |
| 620 | } |
| 621 | return value; |
| 622 | } |
| 623 | |
| 624 | std::string StringConcat(const std::vector<std::string>& elems, char delim) { |
| 625 | std::string result; |
no test coverage detected