diff --git a/AK/Hex.cpp b/AK/Hex.cpp index e0913392f5..0e3c367bff 100644 --- a/AK/Hex.cpp +++ b/AK/Hex.cpp @@ -35,7 +35,7 @@ namespace AK { -static u8 decode_hex_digit(char digit) +u8 decode_hex_digit(char digit) { if (digit >= '0' && digit <= '9') return digit - '0'; diff --git a/AK/Hex.h b/AK/Hex.h index 66503ed41e..2402973904 100644 --- a/AK/Hex.h +++ b/AK/Hex.h @@ -33,6 +33,8 @@ namespace AK { +u8 decode_hex_digit(char); + Optional decode_hex(const StringView&); String encode_hex(ReadonlyBytes); @@ -40,4 +42,5 @@ String encode_hex(ReadonlyBytes); } using AK::decode_hex; +using AK::decode_hex_digit; using AK::encode_hex;