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

Method FindUtf8

src/core/string_consumer.cpp:116–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116StringConsumer::size_type StringConsumer::FindUtf8(char32_t c) const
117{
118 auto [data, len] = EncodeUtf8(c);
119 return this->Find({data, len});
120}
121
122StringConsumer::size_type StringConsumer::FindCharIn(std::string_view chars) const
123{

Callers 1

Calls 2

FindMethod · 0.95
EncodeUtf8Function · 0.85

Tested by

no test coverage detected