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

Method ReadUntilChar

src/core/string_consumer.hpp:765–768  ·  view source on GitHub ↗

* Read data until the first occurrence of 8-bit char 'c', and advance reader. * @param c Separator char. * @param sep Whether to include/exclude 'c' from the result, and/or skip it. */

Source from the content-addressed store, hash-verified

763 * @param sep Whether to include/exclude 'c' from the result, and/or skip it.
764 */
765 [[nodiscard]] std::string_view ReadUntilChar(char c, SeparatorUsage sep)
766 {
767 return this->ReadUntil({&c, 1}, sep);
768 }
769 /**
770 * Skip data until the first occurrence of 8-bit char 'c'.
771 * @param c Separator char.

Callers 15

LoadFromDiskMethod · 0.80
ConStartAIFunction · 0.80
ParseKeycodeFunction · 0.80
ParseHotkeysFunction · 0.80
NetworkGameLoopFunction · 0.80
OnReceiveDataMethod · 0.80
IsInNetmaskMethod · 0.80
ParseWordFunction · 0.80
ParseCommandStringFunction · 0.80
HandleStringMethod · 0.80
HandlePragmaMethod · 0.80

Calls 1

ReadUntilMethod · 0.95

Tested by

no test coverage detected