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

Function hexEscapeChar

tests/catch.hpp:12515–12521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12513 }
12514
12515 void hexEscapeChar(std::ostream& os, unsigned char c) {
12516 std::ios_base::fmtflags f(os.flags());
12517 os << "\\x"
12518 << std::uppercase << std::hex << std::setfill('0') << std::setw(2)
12519 << static_cast<int>(c);
12520 os.flags(f);
12521 }
12522
12523} // anonymous namespace
12524

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected