| 89 | } |
| 90 | |
| 91 | string PrintIdSet(const std::set<TUniqueId>& ids, const std::string& separator) { |
| 92 | stringstream out; |
| 93 | auto it = ids.begin(); |
| 94 | while (it != ids.end()) { |
| 95 | out << PrintId(*it); |
| 96 | if (++it != ids.end()) { |
| 97 | out << separator; |
| 98 | } |
| 99 | } |
| 100 | return out.str(); |
| 101 | } |
| 102 | |
| 103 | bool ParseId(const string& s, TUniqueId* id) { |
| 104 | // For backwards compatibility, this method parses two forms of query ID from text: |
no test coverage detected