| 2305 | } |
| 2306 | |
| 2307 | void CategoryFilter::WriteString(const StringList& values, |
| 2308 | std::string* out, |
| 2309 | bool included) const { |
| 2310 | bool prepend_comma = !out->empty(); |
| 2311 | int token_cnt = 0; |
| 2312 | for (const auto& value : values) { |
| 2313 | if (token_cnt > 0 || prepend_comma) |
| 2314 | StringAppendF(out, ","); |
| 2315 | StringAppendF(out, "%s%s", (included ? "" : "-"), value.c_str()); |
| 2316 | ++token_cnt; |
| 2317 | } |
| 2318 | } |
| 2319 | |
| 2320 | void CategoryFilter::WriteString(const StringList& delays, |
| 2321 | std::string* out) const { |
nothing calls this directly
no test coverage detected