MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TryRead

Method TryRead

src/openrct2/core/StringReader.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool UTF8StringReader::TryRead(codepoint_t* outCodepoint)
35{
36 if (_current == nullptr)
37 return false;
38
39 codepoint_t codepoint = String::getNextCodepoint(_current, &_current);
40 *outCodepoint = codepoint;
41 if (codepoint == 0)
42 {
43 _current = nullptr;
44 return false;
45 }
46 return true;
47}
48
49void UTF8StringReader::Skip()
50{

Callers

nothing calls this directly

Calls 1

getNextCodepointFunction · 0.85

Tested by

no test coverage detected