| 224 | } |
| 225 | |
| 226 | void |
| 227 | printWithPrefix(const std::string& text, const int marked) |
| 228 | { |
| 229 | std::istringstream is(text); |
| 230 | std::string line; |
| 231 | int line_number = 0; |
| 232 | while (std::getline(is, line)) |
| 233 | { |
| 234 | ++line_number; |
| 235 | std::cout << (line_number == marked ? " # :|: " : " :|: ") << line << '\n'; |
| 236 | } |
| 237 | return; |
| 238 | } |
| 239 | |
| 240 | bool |
| 241 | validate(const std::vector<std::string>& file_names) |