SvnCpp
svn::Url Class Reference

#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 ()
 

Constructor & Destructor Documentation

◆ Url()

svn::Url::Url ( )

Constructor

◆ ~Url()

virtual svn::Url::~Url ( )
virtual

Destructor

Member Function Documentation

◆ escape()

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

◆ isValid()

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

◆ supportedSchemas()

static std::vector< std::string > svn::Url::supportedSchemas ( )
static

returns a vector with url schemas that are supported by svn

Returns
vector with entries like "file:", "http:"
Deprecated
since 0.9.1 (returns an empty vector now)

◆ unescape()

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 ()


The documentation for this class was generated from the following file: