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

Method PeekChar

src/core/string_consumer.cpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73std::optional<char> StringConsumer::PeekChar() const
74{
75 auto result = this->PeekUint8();
76 if (!result.has_value()) return {};
77 return static_cast<char>(*result);
78}
79
80std::pair<StringConsumer::size_type, char32_t> StringConsumer::PeekUtf8() const
81{

Callers 5

TryReadCharMethod · 0.95
ReadCharMethod · 0.95
PeekCharIfInMethod · 0.95
PeekCharIfNotInMethod · 0.95

Calls 1

PeekUint8Method · 0.95

Tested by

no test coverage detected