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

Method ReadCharIf

src/core/string_consumer.hpp:478–481  ·  view source on GitHub ↗

* Check whether the next 8-bit char matches 'c', and skip it. */

Source from the content-addressed store, hash-verified

476 * Check whether the next 8-bit char matches 'c', and skip it.
477 */
478 [[nodiscard]] bool ReadCharIf(char c)
479 {
480 return this->ReadIf({&c, 1});
481 }
482 /**
483 * If the next data matches the 8-bit char 'c', then skip it.
484 */

Callers 9

LoadFromDiskMethod · 0.80
CompileTypemaskFunction · 0.80
NetworkGameLoopFunction · 0.80
ParseRelNumFunction · 0.80
ParseWordFunction · 0.80
EmitGenderFunction · 0.80
ParseCommandStringFunction · 0.80
HandleStringMethod · 0.80

Calls 1

ReadIfMethod · 0.95

Tested by

no test coverage detected