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

Method ReadUntilCharNotIn

src/core/string_consumer.hpp:675–679  ·  view source on GitHub ↗

* Read 8-bit chars, while they are in 'chars', until they are not; and advance reader. * @return Matching chars. */

Source from the content-addressed store, hash-verified

673 * @return Matching chars.
674 */
675 [[nodiscard]] std::string_view ReadUntilCharNotIn(std::string_view chars)
676 {
677 size_type len = this->FindCharNotIn(chars);
678 return this->Read(len);
679 }
680 /**
681 * Skip 8-bit chars, while they are in 'chars', until they are not.
682 */

Callers 3

SetDebugStringFunction · 0.80
DumpLineFunction · 0.80

Calls 2

FindCharNotInMethod · 0.95
ReadMethod · 0.95

Tested by

no test coverage detected