MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / headerValue

Function headerValue

tests/catch.hpp:12502–12513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12500 }
12501
12502 uint32_t headerValue(unsigned char c) {
12503 if ((c & 0xE0) == 0xC0) {
12504 return c & 0x1F;
12505 }
12506 if ((c & 0xF0) == 0xE0) {
12507 return c & 0x0F;
12508 }
12509 if ((c & 0xF8) == 0xF0) {
12510 return c & 0x07;
12511 }
12512 CATCH_INTERNAL_ERROR("Invalid multibyte utf-8 start byte encountered");
12513 }
12514
12515 void hexEscapeChar(std::ostream& os, unsigned char c) {
12516 std::ios_base::fmtflags f(os.flags());

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected