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

Method PeekUntilUtf8

src/core/string_consumer.cpp:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156std::string_view StringConsumer::PeekUntilUtf8(char32_t c, SeparatorUsage sep) const
157{
158 auto [data, len] = EncodeUtf8(c);
159 return PeekUntil({data, len}, sep);
160}
161
162std::string_view StringConsumer::ReadUntilUtf8(char32_t c, SeparatorUsage sep)
163{

Callers 1

Calls 1

EncodeUtf8Function · 0.85

Tested by

no test coverage detected