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