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

Method PeekUtf8

src/core/string_consumer.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80std::pair<StringConsumer::size_type, char32_t> StringConsumer::PeekUtf8() const
81{
82 auto buf = this->src.substr(this->position);
83 return DecodeUtf8(buf);
84}
85
86std::string_view StringConsumer::Peek(size_type len) const
87{

Callers 7

TryReadUtf8Method · 0.95
ReadUtf8Method · 0.95
SkipUtf8Method · 0.95
PeekUtf8IfMethod · 0.95
ReadUtf8IfMethod · 0.95
SkipUtf8IfMethod · 0.95

Calls 2

DecodeUtf8Function · 0.85
substrMethod · 0.80

Tested by

no test coverage detected