MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SkipIf

Method SkipIf

src/core/string_consumer.hpp:463–466  ·  view source on GitHub ↗

* If the next data matches 'str', then skip it. */

Source from the content-addressed store, hash-verified

461 * If the next data matches 'str', then skip it.
462 */
463 void SkipIf(std::string_view str)
464 {
465 if (this->PeekIf(str)) this->Skip(str.size());
466 }
467
468 /**
469 * Check whether the next 8-bit char matches 'c'.

Callers 5

SkipCharIfMethod · 0.95
ReadUntilMethod · 0.95
SkipUntilMethod · 0.95
SkipIntegerBaseMethod · 0.95

Calls 3

PeekIfMethod · 0.95
SkipMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected