#include <url.hpp>
Public Member Functions | |
Url () | |
virtual | ~Url () |
Static Public Member Functions | |
static bool | isValid (const char *urlToValidate) |
static std::string | escape (const char *url) |
static std::string | unescape (const char *url) |
static std::vector< std::string > | supportedSchemas () |
svn::Url::Url | ( | ) |
Constructor
virtual svn::Url::~Url | ( | ) | [virtual] |
Destructor
static std::string svn::Url::escape | ( | const char * | url | ) | [static] |
returns a url with forbidden charachters like spaces escaped
Example of input: http://rapidsvn.tigris.org/x y z.html Output: http://rapidsvn.tigris.org/x%20y%20z.html
static bool svn::Url::isValid | ( | const char * | urlToValidate | ) | [static] |
Checks if url is valid
Example of a valid URL: http://svn.collab.net/repos/svn Example of an invalid URL: /home/foo/bar
static std::vector<std::string> svn::Url::supportedSchemas | ( | ) | [static] |
returns a vector with url schemas that are supported by svn
static std::string svn::Url::unescape | ( | const char * | url | ) | [static] |
returns a url with forbidden charachters like spaces unescaped
Undo the changes done by the previous function, escape ()