Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 Constructs a URL from a string. If isEscaped is false, automatically calls Url::encode(). Assumes UTF-8 input. More...
 
std::string str () const
 Returns the string representation of the URL as std::string. Encoded as UTF-8. More...
 
const char * c_str () const
 Returns the string representation of the URL as char*. Encoded as UTF-8. More...
 

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. More...
 

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: