Apache Mesos
Namespaces | Functions | Variables
base64.hpp File Reference
#include <cctype>
#include <functional>
#include <string>
#include <stout/foreach.hpp>
#include <stout/stringify.hpp>
#include <stout/try.hpp>

Go to the source code of this file.

Namespaces

 base64
 
 base64::internal
 

Functions

std::string base64::internal::encode (const std::string &s, const std::string &chars, bool padding)
 
Try< std::string > base64::internal::decode (const std::string &s, const std::string &chars)
 
std::string base64::encode (const std::string &s)
 Encode a string to Base64 with the standard Base64 alphabet. More...
 
Try< std::string > base64::decode (const std::string &s)
 Decode a string that is Base64-encoded with the standard Base64 alphabet. More...
 
std::string base64::encode_url_safe (const std::string &s, bool padding=true)
 Encode a string to Base64 with a URL and filename safe alphabet. More...
 
Try< std::string > base64::decode_url_safe (const std::string &s)
 Decode a string that is Base64-encoded with a URL and filename safe alphabet. More...
 

Variables

constexpr char base64::internal::STANDARD_CHARS []
 
constexpr char base64::internal::URL_SAFE_CHARS []