MCPcopy Create free account
hub / github.com/crownengine/crown / decode

Function decode

src/core/strings/utf8.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 // code-format on
35
36 u32 decode(u32 *state, u32 *codep, u32 byte)
37 {
38 u32 type = utf8d[byte];
39
40 *codep = (*state != UTF8_ACCEPT) ?
41 (byte & 0x3fu) | (*codep << 6) :
42 (0xff >> type) & (byte);
43
44 *state = utf8d[256 + *state*16 + type];
45 return *state;
46 }
47
48} // namespace utf8
49

Callers 3

text_3dMethod · 0.50
textMethod · 0.50
text_extentsMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected