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

Method PeekUntilCharNotIn

src/core/string_consumer.hpp:666–670  ·  view source on GitHub ↗

* Peek 8-bit chars, while they are in 'chars', until they are not. * @return Matching chars. */

Source from the content-addressed store, hash-verified

664 * @return Matching chars.
665 */
666 [[nodiscard]] std::string_view PeekUntilCharNotIn(std::string_view chars) const
667 {
668 size_type len = this->FindCharNotIn(chars);
669 return this->Peek(len);
670 }
671 /**
672 * Read 8-bit chars, while they are in 'chars', until they are not; and advance reader.
673 * @return Matching chars.

Callers 1

Calls 2

FindCharNotInMethod · 0.95
PeekMethod · 0.95

Tested by

no test coverage detected