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

Method SkipCharIf

src/core/string_consumer.hpp:485–488  ·  view source on GitHub ↗

* If the next data matches the 8-bit char 'c', then skip it. */

Source from the content-addressed store, hash-verified

483 * If the next data matches the 8-bit char 'c', then skip it.
484 */
485 void SkipCharIf(char c)
486 {
487 return this->SkipIf({&c, 1});
488 }
489
490 /**
491 * Check whether the next UTF-8 char matches 'c'.

Callers 1

NetworkGameLoopFunction · 0.80

Calls 1

SkipIfMethod · 0.95

Tested by

no test coverage detected