| 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 |