|
| URL (const std::string &absolute_url) |
| Construct an URL from the given absolute url string. More...
|
|
| URL (const std::string &relative_url, const URL &baseurl) |
|
const std::string & | protocol () const |
| Return the 'protocol' member of this URL, as a string. More...
|
|
const std::string & | hostname () const |
| Return the 'hostname' member of this URL, as a string. More...
|
|
const std::string & | port () const |
| Return the 'port' member of this URL, as a string. More...
|
|
const std::string & | path () const |
| Return the 'path' member of this URL, as a string. More...
|
|
const std::string & | anchor () const |
| Return the 'anchor' member of this URL, as a string. More...
|
|
const std::string & | querystring () const |
| Return the 'querystring' member of this URL, as a string. More...
|
|
void | set_querystring (const std::string &value) |
| Set the 'querystring' member of this URL to a new value. More...
|
|
std::string | str () const |
| Return the full absolute URL as a string. More...
|
|
|
static void | parse_querystring (const std::string &query_string, std::map< std::string, std::string > &target_map) |
| Parse a query string filling the provided map. More...
|
|
static void | encode (std::string &str) |
| Encode a string to URL-encoded format converting all dodgy characters to AB hex sequences. More...
|
|
static std::string | encode (const std::string &str) |
| Encode a string to URL-encoded format converting all dodgy characters to AB hex sequences. This merely uses the void encode() function on a new string. More...
|
|
static void | decode (std::string &str) |
| Decode a string from URL-encoded format converting all hexadecimal sequences to ASCII characters. More...
|
|
Uniform Resource Locator.
This class is used to manage URLs.
void gnash::URL::decode |
( |
std::string & |
str | ) |
|
|
static |
Decode a string from URL-encoded format converting all hexadecimal sequences to ASCII characters.
A sequence to convert is % followed by two case-independent hexadecimal digits, which is replaced by the equivalent ASCII character. See RFC1738 http://www.rfc-editor.org/rfc/rfc1738.txt, Section 2.2 "URL Character Encoding Issues"
- Parameters
-
str | The input/output string |
References gnash::key::i.
Referenced by parse_querystring().