! @return a string representation of the last read byte */
| 10033 | @return a string representation of the last read byte |
| 10034 | */ |
| 10035 | std::string get_token_string() const |
| 10036 | { |
| 10037 | std::array<char, 3> cr{ {} }; |
| 10038 | (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current)); |
| 10039 | return std::string{ cr.data() }; |
| 10040 | } |
| 10041 | |
| 10042 | /*! |
| 10043 | @param[in] format the current format |
no test coverage detected