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

Function _io_file_lexfeed_ASCII

src/script/squirrel.cpp:603–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601};
602
603static char32_t _io_file_lexfeed_ASCII(SQUserPointer file)
604{
605 StringConsumer &consumer = reinterpret_cast<SQFile *>(file)->GetConsumer();
606 return consumer.TryReadUint8().value_or(0); // read as unsigned, otherwise integer promotion breaks it
607}
608
609static char32_t _io_file_lexfeed_UTF8(SQUserPointer file)
610{

Callers

nothing calls this directly

Calls 1

TryReadUint8Method · 0.80

Tested by

no test coverage detected