| 151 | } |
| 152 | |
| 153 | void BufferedStreamReader::tryNextLine() { |
| 154 | char c = peekChar(); |
| 155 | if (c != '\r' && c != '\n') |
| 156 | return; |
| 157 | if (c == '\r') |
| 158 | bufPos++; |
| 159 | c = peekChar(); |
| 160 | if (c == '\n') |
| 161 | bufPos++; |
| 162 | lineNumber++; |
| 163 | } |
| 164 | |
| 165 | auto BufferedStreamReader::nextUntilNewLine() -> std::string_view { |
| 166 | result.clear(); |
nothing calls this directly
no outgoing calls
no test coverage detected