Cinder  0.9.1
Public Member Functions | Static Public Member Functions | List of all members
cinder::Url Class Reference

#include <Url.h>

Public Member Functions

 Url ()
 
 Url (const std::string &urlString, bool isEscaped=false)
 
std::string str () const
 
const char * c_str () const
 

Static Public Member Functions

static std::string encode (const std::string &unescaped)
 

Constructor & Destructor Documentation

cinder::Url::Url ( )
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: