mirror of https://github.com/libAthena/athena.git
DNAYaml: Make is_base64() internally linked
This isn't used outside of this translation unit, so it can be made static.
This commit is contained in:
parent
9fc76a7dea
commit
c3d19a8aab
|
@ -1008,7 +1008,7 @@ constexpr std::string_view base64_chars =
|
||||||
"abcdefghijklmnopqrstuvwxyz"
|
"abcdefghijklmnopqrstuvwxyz"
|
||||||
"0123456789+/";
|
"0123456789+/";
|
||||||
|
|
||||||
inline bool is_base64(unsigned char c) { return (isalnum(c) || (c == '+') || (c == '/')); }
|
static bool is_base64(unsigned char c) { return isalnum(c) || c == '+' || c == '/'; }
|
||||||
|
|
||||||
std::string base64_encode(const atUint8* bytes_to_encode, size_t in_len) {
|
std::string base64_encode(const atUint8* bytes_to_encode, size_t in_len) {
|
||||||
std::string ret;
|
std::string ret;
|
||||||
|
|
Loading…
Reference in New Issue