MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / tryNextLine

Method tryNextLine

src/core/judgingthread.cpp:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void 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
165auto BufferedStreamReader::nextUntilNewLine() -> std::string_view {
166 result.clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected