MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DecodeUTF8

Method DecodeUTF8

engine/Poseidon/UI/Text/FontRenderer.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29uint32_t FontRenderer::DecodeUTF8(const char*& ptr)
30{
31 uint32_t cp = 0xFFFD;
32 int consumed = DecodeUtf8Codepoint(ptr, &cp);
33 if (consumed <= 0)
34 consumed = 1;
35 ptr += consumed;
36 return cp;
37}
38
39FontRenderer::FontRenderer()
40{

Callers

nothing calls this directly

Calls 1

DecodeUtf8CodepointFunction · 0.85

Tested by

no test coverage detected