AK: Expose the decode_hex_digit helper

This helper is useful on its own for things like uri encoding/decoding,
so this commit exposes it via the AK/Hex header
This commit is contained in:
Idan Horowitz 2021-04-13 22:49:05 +03:00 committed by Andreas Kling
commit 2ab292f381
Notes: sideshowbarker 2024-07-18 20:22:36 +09:00
2 changed files with 4 additions and 1 deletions

View file

@ -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';