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

Method SkipUntilChar

src/core/string_consumer.hpp:774–777  ·  view source on GitHub ↗

* Skip data until the first occurrence of 8-bit char 'c'. * @param c Separator char. * @param sep Whether to also skip 'c'. */

Source from the content-addressed store, hash-verified

772 * @param sep Whether to also skip 'c'.
773 */
774 void SkipUntilChar(char c, SeparatorUsage sep)
775 {
776 this->SkipUntil({&c, 1}, sep);
777 }
778
779 /**
780 * Peek data until the first occurrence of UTF-8 char 'c'.

Callers 3

NetworkGameLoopFunction · 0.80
OnReceiveDataMethod · 0.80
ParseCommandStringFunction · 0.80

Calls 1

SkipUntilMethod · 0.95

Tested by

no test coverage detected