Advance the string iterator to the next character which is neither a space or a comment * * @param[in,out] fs Stream to drop comments from */
| 70 | * @param[in,out] fs Stream to drop comments from |
| 71 | */ |
| 72 | void discard_comments_and_spaces(std::ifstream &fs) |
| 73 | { |
| 74 | while (true) |
| 75 | { |
| 76 | discard_comments(fs); |
| 77 | |
| 78 | if (isspace(fs.peek()) == 0) |
| 79 | { |
| 80 | break; |
| 81 | } |
| 82 | |
| 83 | fs.ignore(1); |
| 84 | } |
| 85 | } |
| 86 | } // namespace |
| 87 | |
| 88 | #ifndef BENCHMARK_EXAMPLES |
no test coverage detected