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

Method ReadUntilCharIn

src/core/string_consumer.hpp:648–652  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

646 * @return Non-matching chars.
647 */
648 [[nodiscard]] std::string_view ReadUntilCharIn(std::string_view chars)
649 {
650 size_type len = this->FindCharIn(chars);
651 return this->Read(len);
652 }
653 /**
654 * Skip 8-bit chars, while they are not in 'chars', until they are.
655 */

Callers 6

LookupManyOfManyFunction · 0.80
LoadFromDiskMethod · 0.80
ParseCommandLineFunction · 0.80
ParseWordFunction · 0.80
ParseCommandStringFunction · 0.80

Calls 2

FindCharInMethod · 0.95
ReadMethod · 0.95

Tested by

no test coverage detected