| 12785 | } |
| 12786 | |
| 12787 | void hexEscapeChar(std::ostream& os, unsigned char c) { |
| 12788 | std::ios_base::fmtflags f(os.flags()); |
| 12789 | os << "\\x" |
| 12790 | << std::uppercase << std::hex << std::setfill('0') << std::setw(2) |
| 12791 | << static_cast<int>(c); |
| 12792 | os.flags(f); |
| 12793 | } |
| 12794 | |
| 12795 | } // anonymous namespace |
| 12796 |