1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:07:35 +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:
Idan Horowitz 2021-04-13 22:49:05 +03:00 committed by Andreas Kling
parent 2d58549296
commit 2ab292f381
2 changed files with 4 additions and 1 deletions

View file

@ -33,6 +33,8 @@
namespace AK {
u8 decode_hex_digit(char);
Optional<ByteBuffer> 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;