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

Method Find

src/core/string_consumer.cpp:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109StringConsumer::size_type StringConsumer::Find(std::string_view str) const
110{
111 assert(!str.empty());
112 auto buf = this->src.substr(this->position);
113 return buf.find(str);
114}
115
116StringConsumer::size_type StringConsumer::FindUtf8(char32_t c) const
117{

Callers 3

FindCharMethod · 0.95
SkipUntilMethod · 0.95
FindUtf8Method · 0.95

Calls 3

substrMethod · 0.80
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected