15 #ifndef UTIL_URL_CODING_H
16 #define UTIL_URL_CODING_H
20 #include <boost/cstdint.hpp>
29 void UrlEncode(
const std::string& in, std::string* out,
bool hive_compat =
false);
30 void UrlEncode(
const std::vector<uint8_t>& in, std::string* out,
31 bool hive_compat =
false);
38 bool UrlDecode(
const std::string& in, std::string* out,
bool hive_compat =
false);
43 void Base64Encode(
const std::vector<uint8_t>& in, std::string* out);
44 void Base64Encode(
const std::vector<uint8_t>& in, std::stringstream* out);
45 void Base64Encode(
const std::string& in, std::string* out);
46 void Base64Encode(
const std::string& in, std::stringstream* out);
51 bool Base64Decode(
const std::string& in, std::string* out);
58 void EscapeForHtml(
const std::string& in, std::stringstream* out);
bool UrlDecode(const string &in, string *out, bool hive_compat)
static void Base64Encode(const char *in, int in_len, stringstream *out)
static void UrlEncode(const char *in, int in_len, string *out, bool hive_compat)
bool Base64Decode(const string &in, string *out)
void EscapeForHtml(const string &in, stringstream *out)