#include <urlSpec.h>
Private Types | |
enum | Flags { F_has_scheme = 0x0001, F_has_authority = 0x0002, F_has_username = 0x0004, F_has_server = 0x0008, F_has_port = 0x0010, F_has_path = 0x0020, F_has_query = 0x0040 } |
Private Member Functions | |
INLINE | URLSpec (const string &url, bool server_name_expected=false) |
INLINE | URLSpec (const URLSpec ©) |
INLINE void | operator= (const string &url) |
void | operator= (const URLSpec ©) |
INLINE bool | operator== (const URLSpec &other) const |
INLINE bool | operator!= (const URLSpec &other) const |
INLINE bool | operator< (const URLSpec &other) const |
INLINE int | compare_to (const URLSpec &other) const |
INLINE bool | has_scheme () const |
INLINE bool | has_authority () const |
INLINE bool | has_username () const |
INLINE bool | has_server () const |
INLINE bool | has_port () const |
INLINE bool | has_path () const |
INLINE bool | has_query () const |
string | get_scheme () const |
INLINE string | get_authority () const |
INLINE string | get_username () const |
INLINE string | get_server () const |
INLINE string | get_port_str () const |
int | get_port () const |
string | get_server_and_port () const |
string | get_path () const |
INLINE string | get_query () const |
INLINE const string & | get_url () const |
void | set_scheme (const string &scheme) |
void | set_authority (const string &authority) |
void | set_username (const string &username) |
void | set_server (const string &server) |
void | set_port (const string &port) |
void | set_port (int port) |
void | set_server_and_port (const string &server_and_port) |
void | set_path (const string &path) |
void | set_query (const string &query) |
void | set_url (const string &url, bool server_name_expected=false) |
INLINE | operator const string & () const |
INLINE const char * | c_str () const |
INLINE bool | empty () const |
INLINE size_t | length () const |
INLINE char | operator[] (int n) const |
bool | input (istream &in) |
void | output (ostream &out) const |
void | parse_authority () |
Static Private Member Functions | |
string | quote (const string &source, const string &safe="/") |
string | quote_plus (const string &source, const string &safe="/") |
string | unquote (const string &source) |
string | unquote_plus (const string &source) |
Private Attributes | |
PUBLISHED | __pad0__: URLSpec() |
string | _url |
int | _port |
int | _flags |
size_t | _scheme_end |
size_t | _username_start |
size_t | _username_end |
size_t | _server_start |
size_t | _server_end |
size_t | _port_start |
size_t | _port_end |
size_t | _path_start |
size_t | _path_end |
size_t | _query_start |
|
|
|
|
|
|
|
|
|
Referenced by DocumentSpec::compare_to(). |
|
|
|
|
|
Definition at line 126 of file urlSpec.cxx. References _path_end, _path_start, _url, and has_path(). |
|
Definition at line 88 of file urlSpec.cxx. References _port, get_scheme(), and has_port(). Referenced by get_server_and_port(). |
|
Referenced by set_server(), and set_username(). |
|
|
|
Definition at line 74 of file urlSpec.cxx. References _scheme_end, _url, and has_scheme(). Referenced by get_port(). |
|
Referenced by get_server_and_port(), set_port(), and set_username(). |
|
Definition at line 110 of file urlSpec.cxx. References _port_end, _server_start, _url, get_port(), get_server(), and has_port(). |
|
Referenced by output(). |
|
Referenced by set_port(), set_server(), and set_server_and_port(). |
|
Referenced by parse_authority(), set_authority(), set_port(), set_server(), set_server_and_port(), set_url(), and set_username(). |
|
Referenced by get_path(), set_authority(), and set_path(). |
|
Referenced by get_port(), get_server_and_port(), set_server(), and set_username(). |
|
Referenced by set_query(). |
|
Referenced by get_scheme(), set_scheme(), and set_url(). |
|
|
|
Referenced by set_port(), set_server(), and set_server_and_port(). |
|
Definition at line 567 of file urlSpec.cxx. |
|
|
|
|
|
|
|
|
|
Definition at line 51 of file urlSpec.cxx. References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, and _username_start. |
|
|
|
|
|
|
|
Definition at line 583 of file urlSpec.cxx. References get_url(). |
|
Definition at line 768 of file urlSpec.cxx. References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _server_end, _server_start, _url, _username_end, _username_start, F_has_port, F_has_server, F_has_username, and has_authority(). Referenced by set_authority(), and set_url(). |
|
Definition at line 599 of file urlSpec.cxx. |
|
Definition at line 640 of file urlSpec.cxx. |
|
Definition at line 210 of file urlSpec.cxx. References _flags, _path_end, _path_start, _port_end, _port_start, _query_start, _server_end, _server_start, _url, _username_end, _username_start, F_has_authority, F_has_port, F_has_server, F_has_username, has_authority(), has_path(), and parse_authority(). Referenced by set_port(), set_server(), set_server_and_port(), and set_username(). |
|
Definition at line 372 of file urlSpec.cxx. References _flags, _path_end, _path_start, _query_start, _url, F_has_path, and has_path(). |
|
Definition at line 338 of file urlSpec.cxx. References set_port(). |
|
Definition at line 312 of file urlSpec.cxx. References get_server(), get_username(), has_authority(), has_username(), and set_authority(). Referenced by set_port(). |
|
Definition at line 418 of file urlSpec.cxx. References _flags, _query_start, _url, F_has_query, and has_query(). |
|
Definition at line 139 of file urlSpec.cxx. References _flags, _path_end, _path_start, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, _username_start, F_has_scheme, and has_scheme(). |
|
Definition at line 288 of file urlSpec.cxx. References get_port_str(), get_username(), has_authority(), has_port(), has_username(), and set_authority(). |
|
Definition at line 353 of file urlSpec.cxx. References get_username(), has_authority(), has_username(), and set_authority(). |
|
Definition at line 449 of file urlSpec.cxx. References _flags, _path_end, _path_start, _port, _port_end, _port_start, _query_start, _scheme_end, _server_end, _server_start, _url, _username_end, _username_start, F_has_authority, F_has_path, F_has_query, F_has_scheme, has_authority(), has_scheme(), p, parse_authority(), start, and url. Referenced by input(). |
|
Definition at line 264 of file urlSpec.cxx. References get_port_str(), get_server(), has_authority(), has_port(), and set_authority(). |
|
Definition at line 686 of file urlSpec.cxx. References p. |
|
Definition at line 724 of file urlSpec.cxx. References p. |
|
|
|
Definition at line 107 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url(). |
|
Definition at line 117 of file urlSpec.h. Referenced by get_path(), operator=(), parse_authority(), set_authority(), set_path(), set_scheme(), and set_url(). |
|
Definition at line 116 of file urlSpec.h. Referenced by get_path(), operator=(), parse_authority(), set_authority(), set_path(), set_scheme(), and set_url(). |
|
Definition at line 106 of file urlSpec.h. Referenced by get_port(), operator=(), parse_authority(), and set_url(). |
|
Definition at line 115 of file urlSpec.h. Referenced by get_server_and_port(), operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |
|
Definition at line 114 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |
|
Definition at line 118 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url(). |
|
Definition at line 109 of file urlSpec.h. Referenced by get_scheme(), operator=(), set_scheme(), and set_url(). |
|
Definition at line 113 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |
|
Definition at line 112 of file urlSpec.h. Referenced by get_server_and_port(), operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |
|
Definition at line 105 of file urlSpec.h. Referenced by get_path(), get_scheme(), get_server_and_port(), operator=(), parse_authority(), set_authority(), set_path(), set_query(), set_scheme(), and set_url(). |
|
Definition at line 111 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |
|
Definition at line 110 of file urlSpec.h. Referenced by operator=(), parse_authority(), set_authority(), set_scheme(), and set_url(). |