feat(base64, hex): alphabet moved to public interface as extern var

This commit is contained in:
2024-09-19 00:05:35 +03:00
parent 5822443706
commit f2119850ee
4 changed files with 68 additions and 66 deletions

View File

@ -7,6 +7,9 @@
namespace base64
{
extern const char digits[65];
extern const int8_t map[256];
bool isValid(const char *str, uint64_t str_size) noexcept;
bool isValid(std::string_view str) noexcept;

View File

@ -7,6 +7,9 @@
namespace hex
{
extern const char digits[17];
extern const int8_t map[256];
bool isValid(const char *str, uint64_t str_size) noexcept;
bool isValid(std::string_view str) noexcept;