26 #ifndef _QORE_QOREURL_H
28 #define _QORE_QOREURL_H
34 struct qore_url_private *priv;
37 DLLLOCAL
void reset();
38 DLLLOCAL
void parseIntern(
const char* url);
44 DLLLOCAL QoreURL& operator=(
const QoreURL&);
56 DLLEXPORT
QoreURL(
const char* url);
69 DLLEXPORT
QoreURL(
const char* url,
bool keep_brackets);
86 DLLEXPORT
int parse(
const char* url);
102 DLLEXPORT
int parse(
const char* url,
bool keep_brackets);
116 DLLEXPORT
bool isValid()
const;
DLLEXPORT char * take_username()
returns a pointer to the username in the URL (0 if none present), caller owns the memory returned ...
DLLEXPORT ~QoreURL()
frees all memory and destroys the structure
DLLEXPORT bool isValid() const
returns true if the URL string parsed is valid
This is the hash or associative list container type in Qore, dynamically allocated only...
Definition: QoreHashNode.h:41
DLLEXPORT const QoreString * getProtocol() const
returns the protocol component of the URL or 0 if none given
DLLEXPORT int parse(const char *url)
parses the URL string passed
DLLEXPORT QoreHashNode * getHash()
returns a hash of the parameters parsed, destructive: zeros out all elements, caller owns the referen...
helps with parsing URLs and provides access to URL components through Qore data structures ...
Definition: QoreURL.h:31
DLLEXPORT const QoreString * getUserName() const
returns the user name in the URL or 0 if none given
DLLEXPORT const QoreString * getHost() const
returns the hostname of the URL
DLLEXPORT char * take_password()
returns a pointer to the password in the URL (0 if none present), caller owns the memory returned ...
DLLEXPORT int getPort() const
returns the port number given in the URL or 0 if none present
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:42
DLLEXPORT const QoreString * getPath() const
returns the path component of the URL or 0 if none given
DLLEXPORT char * take_path()
returns a pointer to the path (0 if none present), caller owns the memory returned ...
DLLEXPORT const QoreString * getPassword() const
returns the password in the URL or 0 if none given
DLLEXPORT char * take_host()
returns a pointer to the hostname in the URL (0 if none present), caller owns the memory returned ...
DLLEXPORT QoreURL()
creates an empty structure