! @return a string representation of the last read byte */
| 12732 | @return a string representation of the last read byte |
| 12733 | */ |
| 12734 | std::string get_token_string() const |
| 12735 | { |
| 12736 | std::array<char, 3> cr{{}}; |
| 12737 | static_cast<void>((std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current))); // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg) |
| 12738 | return std::string{cr.data()}; |
| 12739 | } |
| 12740 | |
| 12741 | /*! |
| 12742 | @param[in] format the current format |
no test coverage detected