mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
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:
parent
2d58549296
commit
2ab292f381
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue