Lines Matching defs:line
99 std::string line;
102 std::getline(remaining_output, line);
104 first_line = line;
108 BM_CHECK(!NC.regex->Match(line))
109 << "Unexpected match for line \"" << line << "\" for MR_Not regex \""
114 if (TC.regex->Match(line)) return;
116 << "Expected line \"" << line << "\" to match regex \"" << TC.regex_str
202 std::vector<std::string> SplitCsv_(const std::string& line);
230 // now go over every line and publish it to the ResultsChecker
231 std::string line;
235 std::getline(output, line);
237 SetHeader_(line); // this is important
241 SetValues_(line);
279 std::vector<std::string> ResultsChecker::SplitCsv_(const std::string& line) {
281 if (line.empty()) return out;
283 size_t prev = 0, pos = line.find_first_of(','), curr = pos;
284 while (pos != line.npos) {
286 if (line[prev] == '"') ++prev;
287 if (line[curr - 1] == '"') --curr;
288 out.push_back(line.substr(prev, curr - prev));
290 pos = line.find_first_of(',', pos + 1);
293 curr = line.size();
294 if (line[prev] == '"') ++prev;
295 if (line[curr - 1] == '"') --curr;
296 out.push_back(line.substr(prev, curr - prev));