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