MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / SkipToEndOfLine

Method SkipToEndOfLine

src/openrct2/localisation/LanguagePack.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 static void SkipToEndOfLine(IStringReader* reader)
180 {
181 codepoint_t codepoint;
182 while (reader->TryPeek(&codepoint))
183 {
184 if (codepoint != '\r' && codepoint != '\n')
185 {
186 reader->Skip();
187 }
188 else
189 {
190 break;
191 }
192 }
193 }
194
195 void ParseLine(IStringReader* reader)
196 {

Callers

nothing calls this directly

Calls 2

TryPeekMethod · 0.80
SkipMethod · 0.45

Tested by

no test coverage detected