Azure C++ Utils 1.5.2+3
Azure REST API Helpers for Modern C++
|
Base64 encode/decode functions. More...
#include <base64-utils.hpp>
Static Public Member Functions | |
template<typename T = char> requires std::same_as<T, char> || std::same_as<T, wchar_t> | |
static std::basic_string< T > | urlEscape (const std::basic_string< T > &src) |
URL escape the base64 encoded string. More... | |
template<typename T = char> requires std::same_as<T, char> || std::same_as<T, wchar_t> | |
static std::basic_string< T > | encode (const std::basic_string< T > &argBin) |
Base64 encode a given "binary" string and optionally url escape. More... | |
template<typename T = char> requires std::same_as<T, char> || std::same_as<T, wchar_t> | |
static std::basic_string< T > | decode (const std::basic_string< T > &textuallyEncoded) |
Base64 decode the given encoded string back to the binary value. More... | |
Base64 encode/decode functions.
Definition at line 59 of file base64-utils.hpp.
|
inlinestatic |
Base64 decode the given encoded string back to the binary value.
textuallyEncoded | Previously encoded value. |
Definition at line 162 of file base64-utils.hpp.
|
inlinestatic |
Base64 encode a given "binary" string and optionally url escape.
argBin | The bytes to encode |
Definition at line 112 of file base64-utils.hpp.
|
inlinestatic |
URL escape the base64 encoded string.
T | std::string or std::wstring |
src | The source MUST be a base64 encoded string |
Definition at line 67 of file base64-utils.hpp.