! @return a string representation of the last read byte */
| 10104 | @return a string representation of the last read byte |
| 10105 | */ |
| 10106 | std::string get_token_string() const |
| 10107 | { |
| 10108 | std::array<char, 3> cr{{}}; |
| 10109 | (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current)); |
| 10110 | return std::string{cr.data()}; |
| 10111 | } |
| 10112 | |
| 10113 | /*! |
| 10114 | @param[in] format the current format |
no test coverage detected