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

Function hexEscapeChar

tests/framework/src/doctest.cpp:2072–2078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2070 }
2071
2072 void hexEscapeChar(std::ostream& os, unsigned char c) {
2073 std::ios_base::fmtflags f(os.flags());
2074 os << "\\x"
2075 << std::uppercase << std::hex << std::setfill('0') << std::setw(2)
2076 << static_cast<int>(c);
2077 os.flags(f);
2078 }
2079
2080} // anonymous namespace
2081

Callers 1

encodeToMethod · 0.85

Calls 1

flagsMethod · 0.80

Tested by

no test coverage detected