#include <archon/util/uri.H>
Collaboration diagram for Archon::Utilities::Uri:
Public Member Functions | |
Uri () | |
Create a URI that refers to the current working directory. | |
Uri (const string &uri, const Uri &baseUri=Uri()) | |
Construct a URI from a relative or absolute string representation. | |
~Uri () | |
bool | isFileScheme () const |
string | getScheme () const |
Will return something like 'http:', and ever the empty string. | |
string | getAuthority () const |
Will typically return something like '//www.ietf.org' but may also return '//' or even the empty string. | |
string | getPath () const |
Will typically return something like '/rfc/rfc2396.txt' but may also return the empty string. | |
string | getQuery () const |
Will typically return something like '?foo=bar' but may also return '?' or even the empty string. | |
string | getFile () const |
string | toString () const |
Static Public Member Functions | |
static string | encode (const string &s, bool plusForSpace) |
Encode a string according to the URI component encoding scheme. | |
static string | decode (const string &s, bool plusForSpace) |
Decode a string according to the URI component encoding scheme. | |
static string | explain (const SyntaxException &) |
Generate a detailed explanatory message about the specified error. | |
Classes | |
struct | SyntaxException |
Definition at line 47 of file uri.H.
|
Construct a URI from a relative or absolute string representation. If the URI is relative (or empty) it is resolved against the specified base URI. Throws SyntaxException if the argument is malformed.
Definition at line 607 of file uri.C. References Archon::Utilities::Text::compareIgnoreCase(), Archon::SaiTestApps::Filebrowser::path, scheme, and Archon::Utilities::schemeName(). |
|
Decode a string according to the URI component encoding scheme.
Definition at line 741 of file uri.C. Referenced by Archon::Raytracer::main(). |
|
Encode a string according to the URI component encoding scheme.
Definition at line 719 of file uri.C. References Archon::Utilities::charClassTable, and Archon::Utilities::unreservedMask. Referenced by Uri(). |