Factor out isBinDigit and parseHexDigit utility functions

This commit is contained in:
Rangi42
2025-09-04 13:14:27 -04:00
parent 891e6f98df
commit 1dfc1d3231
5 changed files with 32 additions and 48 deletions

View File

@@ -7,6 +7,7 @@
#include <ctype.h>
#include <numeric>
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <unordered_map>
@@ -25,6 +26,8 @@ bool isAlphanumeric(int c);
bool startsIdentifier(int c);
bool continuesIdentifier(int c);
uint8_t parseHexDigit(int c);
char const *printChar(int c);
struct Uppercase {