Format a Info in string form.
| 269 | |
| 270 | // Format a Info in string form. |
| 271 | std::string Prefilter::Info::ToString() { |
| 272 | if (is_exact_) { |
| 273 | int n = 0; |
| 274 | std::string s; |
| 275 | for (SSIter i = exact_.begin(); i != exact_.end(); ++i) { |
| 276 | if (n++ > 0) |
| 277 | s += ","; |
| 278 | s += *i; |
| 279 | } |
| 280 | return s; |
| 281 | } |
| 282 | |
| 283 | if (match_) |
| 284 | return match_->DebugString(); |
| 285 | |
| 286 | return ""; |
| 287 | } |
| 288 | |
| 289 | // Add the strings from src to dst. |
| 290 | static void CopyIn(const std::set<std::string>& src, |