#include <Wt/WGlobal>
#include <string>
Namespaces |
namespace | Wt |
| The namespace for Wt.
|
namespace | Wt::Utils |
| Namespace with utility functions.
|
Functions |
WT_API std::string | Wt::Utils::md5 (const std::string &data) |
| Computes an MD5 hash.
|
WT_API std::string | Wt::Utils::sha1 (const std::string &data) |
| Computes a SHA-1 hash.
|
WT_API std::string | Wt::Utils::base64Encode (const std::string &data, bool crlf=true) |
| Performs Base64-encoding of data.
|
WT_API std::string | Wt::Utils::base64Decode (const std::string &data) |
| Performs Base64-decoding of data.
|
WT_API std::string | Wt::Utils::hexEncode (const std::string &data) |
| Performs Hex-encoding of data.
|
WT_API std::string | Wt::Utils::hexDecode (const std::string &data) |
| Performs Hex-decoding of data.
|
WT_API std::string | Wt::Utils::htmlEncode (const std::string &text, WFlags< HtmlEncodingFlag > flags=0) |
| Performs HTML encoding of text.
|
WT_API WString | Wt::Utils::htmlEncode (const WString &text, WFlags< HtmlEncodingFlag > flags=0) |
| Performs HTML encoding of text.
|
WT_API std::string | Wt::Utils::urlEncode (const std::string &text) |
| Performs Url encoding (aka percentage encoding).
|
WT_API std::string | Wt::Utils::urlDecode (const std::string &text) |
| Performs Url decoding.
|
WT_API bool | Wt::Utils::removeScript (WString &text) |
| Remove tags/attributes from text that are not passive.
|
Detailed Description