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

Method PeekUntilCharIn

src/core/string_consumer.hpp:639–643  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

637 * @return Non-matching chars.
638 */
639 [[nodiscard]] std::string_view PeekUntilCharIn(std::string_view chars) const
640 {
641 size_type len = this->FindCharIn(chars);
642 return this->Peek(len);
643 }
644 /**
645 * Read 8-bit chars, while they are not in 'chars', until they are; and advance reader.
646 * @return Non-matching chars.

Callers 1

Calls 2

FindCharInMethod · 0.95
PeekMethod · 0.95

Tested by

no test coverage detected