MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / headerValue

Function headerValue

extlibs/catch/include/catch/catch.hpp:14693–14704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14691 }
14692
14693 uint32_t headerValue(unsigned char c) {
14694 if ((c & 0xE0) == 0xC0) {
14695 return c & 0x1F;
14696 }
14697 if ((c & 0xF0) == 0xE0) {
14698 return c & 0x0F;
14699 }
14700 if ((c & 0xF8) == 0xF0) {
14701 return c & 0x07;
14702 }
14703 CATCH_INTERNAL_ERROR("Invalid multibyte utf-8 start byte encountered");
14704 }
14705
14706 void hexEscapeChar(std::ostream& os, unsigned char c) {
14707 std::ios_base::fmtflags f(os.flags());

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected