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

Method PeekUntilChar

src/core/string_consumer.hpp:756–759  ·  view source on GitHub ↗

* Peek data until the first occurrence of 8-bit char 'c'. * @param c Separator char. * @param sep Whether to include/exclude 'c' from the result. */

Source from the content-addressed store, hash-verified

754 * @param sep Whether to include/exclude 'c' from the result.
755 */
756 [[nodiscard]] std::string_view PeekUntilChar(char c, SeparatorUsage sep) const
757 {
758 return this->PeekUntil({&c, 1}, sep);
759 }
760 /**
761 * Read data until the first occurrence of 8-bit char 'c', and advance reader.
762 * @param c Separator char.

Callers 1

Calls 1

PeekUntilMethod · 0.95

Tested by

no test coverage detected