NAWA 0.9
Web Application Framework for C++
encoding.h File Reference

Namespace containing functions for text encoding and decoding. More...

#include <string>

Go to the source code of this file.

Namespaces

namespace  nawa
 
namespace  nawa::encoding
 

Functions

std::string nawa::encoding::htmlEncode (std::string input, bool encodeAll=false)
 
std::string nawa::encoding::htmlDecode (std::string input)
 
std::string nawa::encoding::urlEncode (std::string const &input)
 
std::string nawa::encoding::urlDecode (std::string input)
 
bool nawa::encoding::isBase64 (std::string const &input, bool allowWhitespaces=true)
 
std::string nawa::encoding::base64Encode (std::string const &input, size_t breakAfter=0, std::string const &breakSequence="")
 
std::string nawa::encoding::base64Decode (std::string const &input)
 
std::string nawa::encoding::quotedPrintableEncode (std::string const &input, std::string const &lineEnding="\r\n", bool replaceCrlf=false, bool qEncoding=false)
 
std::string nawa::encoding::quotedPrintableDecode (std::string input, bool qEncoding=false)
 
std::string nawa::encoding::makeEncodedWord (std::string const &input, bool base64=false, bool onlyIfNecessary=true)
 
std::string nawa::encoding::punycodeEncode (std::string const &input)
 
std::string nawa::encoding::punycodeDecode (std::string const &input)
 

Detailed Description

Namespace containing functions for text encoding and decoding.

Definition in file encoding.h.