#include <Url.h>
List of all members.
Public Member Functions |
| Url () |
| Url (const std::string &urlString, bool isEscaped=false) |
| Constructs a URL from a string. If isEscaped is false, automatically calls Url::encode(). Assumes UTF-8 input.
|
std::string | str () const |
| Returns the string representation of the URL as std::string. Encoded as UTF-8.
|
const char * | c_str () const |
| Returns the string representation of the URL as char*. Encoded as UTF-8.
|
Static Public Member Functions |
static std::string | encode (const std::string &unescaped) |
| Replaces illegal URL characters as defined by RFC 2396 with their escaped equivalents and returns a copy of unescaped. Assumes UTF-8 input.
|
Constructor & Destructor Documentation
cinder::Url::Url |
( |
const std::string & |
urlString, |
|
|
bool |
isEscaped = false |
|
) |
| [explicit] |
Constructs a URL from a string. If isEscaped is false, automatically calls Url::encode(). Assumes UTF-8 input.
Member Function Documentation
std::string cinder::Url::str |
( |
) |
const |
Returns the string representation of the URL as std::string. Encoded as UTF-8.
const char* cinder::Url::c_str |
( |
) |
const |
Returns the string representation of the URL as char*. Encoded as UTF-8.
std::string cinder::Url::encode |
( |
const std::string & |
unescaped ) |
[static] |
Replaces illegal URL characters as defined by RFC 2396 with their escaped equivalents and returns a copy of unescaped. Assumes UTF-8 input.
The documentation for this class was generated from the following files: