MCPcopy Create free account
hub / github.com/ThePhD/sol2 / decode

Method decode

include/sol/unicode.hpp:101–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 }
100
101 static constexpr char32_t decode(unsigned char b0, unsigned char b1) {
102 return (static_cast<char32_t>((b0 & 0x1Fu) << 6u) | static_cast<char32_t>(b1 & 0x3Fu));
103 }
104 static constexpr char32_t decode(unsigned char b0, unsigned char b1, unsigned char b2) {
105 return static_cast<char32_t>((b0 & 0x0Fu) << 12u) | static_cast<char32_t>((b1 & 0x3Fu) << 6u) | static_cast<char32_t>(b2 & 0x3Fu);
106 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected