24#ifndef NAWA_ENCODING_H
25#define NAWA_ENCODING_H
41 std::string
htmlEncode(std::string input,
bool encodeAll =
false);
59 std::string
urlEncode(std::string
const& input);
74 bool isBase64(std::string
const& input,
bool allowWhitespaces =
true);
84 std::string
base64Encode(std::string
const& input,
size_t breakAfter = 0, std::string
const& breakSequence =
"");
105 bool replaceCrlf =
false,
bool qEncoding =
false);
124 std::string
makeEncodedWord(std::string
const& input,
bool base64 =
false,
bool onlyIfNecessary =
true);
std::string makeEncodedWord(std::string const &input, bool base64=false, bool onlyIfNecessary=true)
std::string base64Decode(std::string const &input)
std::string quotedPrintableDecode(std::string input, bool qEncoding=false)
std::string base64Encode(std::string const &input, size_t breakAfter=0, std::string const &breakSequence="")
std::string quotedPrintableEncode(std::string const &input, std::string const &lineEnding="\r\n", bool replaceCrlf=false, bool qEncoding=false)
std::string punycodeEncode(std::string const &input)
std::string punycodeDecode(std::string const &input)
std::string urlEncode(std::string const &input)
bool isBase64(std::string const &input, bool allowWhitespaces=true)
std::string urlDecode(std::string input)
std::string htmlEncode(std::string input, bool encodeAll=false)
std::string htmlDecode(std::string input)