* @brief Returns the number of hexadecimal digits that are needed to emit a * character with the given size (number of bits). */
| 71 | * character with the given size (number of bits). |
| 72 | */ |
| 73 | std::size_t widthOf(std::size_t charSize) { |
| 74 | // Two digits for 8-bit char, four digits for 16-bit char, etc. |
| 75 | return charSize / 4; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * @brief Is the given character within the range of ASCII characters? |
no outgoing calls
no test coverage detected