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:
Lioncash 2019-08-15 08:12:58 -04:00
parent 9fc76a7dea
commit c3d19a8aab
1 changed files with 1 additions and 1 deletions

View File

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