MCPcopy Create free account
hub / github.com/RenderKit/embree / headerValue

Function headerValue

tutorials/external/catch.hpp:12774–12785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12772 }
12773
12774 uint32_t headerValue(unsigned char c) {
12775 if ((c & 0xE0) == 0xC0) {
12776 return c & 0x1F;
12777 }
12778 if ((c & 0xF0) == 0xE0) {
12779 return c & 0x0F;
12780 }
12781 if ((c & 0xF8) == 0xF0) {
12782 return c & 0x07;
12783 }
12784 CATCH_INTERNAL_ERROR("Invalid multibyte utf-8 start byte encountered");
12785 }
12786
12787 void hexEscapeChar(std::ostream& os, unsigned char c) {
12788 std::ios_base::fmtflags f(os.flags());

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected