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

Function hexEscapeChar

extlibs/catch/include/catch/catch.hpp:14706–14712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14704 }
14705
14706 void hexEscapeChar(std::ostream& os, unsigned char c) {
14707 std::ios_base::fmtflags f(os.flags());
14708 os << "\\x"
14709 << std::uppercase << std::hex << std::setfill('0') << std::setw(2)
14710 << static_cast<int>(c);
14711 os.flags(f);
14712 }
14713
14714} // anonymous namespace
14715

Callers 1

encodeToMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected