Wt: /home/koen/project/wt/public-git/wt/src/Wt/Utils File Reference

Wt 3.2.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List

Namespaces | Enumerations | Functions
/home/koen/project/wt/public-git/wt/src/Wt/Utils File Reference
`#include <Wt/WGlobal>`
`#include <string>`
`#include <vector>`

## Namespaces
namespace | Wt
| The namespace for Wt.
namespace | Wt::Utils
| Namespace with utility functions.
## Enumerations
enum | Wt::Utils::HtmlEncodingFlag { Wt::Utils::EncodeNewLines = 0x1 }
| An enumeration for HTML encoding flags. More...
## 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.
WT_API std::string | Wt::Utils::guessImageMimeTypeData (const std::vector< unsigned char > &header)
| Guess the image mime type from an image.
WT_API std::string | Wt::Utils::guessImageMimeType (const std::string &file)
| Guess the image mime type from an image.

## Detailed Description

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator