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

Method FindCharIn

src/core/string_consumer.cpp:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122StringConsumer::size_type StringConsumer::FindCharIn(std::string_view chars) const
123{
124 assert(!chars.empty());
125 auto buf = this->src.substr(this->position);
126 return buf.find_first_of(chars);
127}
128
129StringConsumer::size_type StringConsumer::FindCharNotIn(std::string_view chars) const
130{

Callers 4

PeekUntilCharInMethod · 0.95
ReadUntilCharInMethod · 0.95
SkipUntilCharInMethod · 0.95

Calls 2

substrMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected