! @return a string representation of the last read byte */
| 11973 | @return a string representation of the last read byte |
| 11974 | */ |
| 11975 | std::string get_token_string() const |
| 11976 | { |
| 11977 | std::array<char, 3> cr{{}}; |
| 11978 | static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) |
| 11979 | return std::string{cr.data()}; |
| 11980 | } |
| 11981 | |
| 11982 | /*! |
| 11983 | @param[in] format the current format |
no test coverage detected