|
Qore Programming Language
0.9.16
|
34 #ifndef _QORE_QOREURL_H
36 #define _QORE_QOREURL_H
42 hashdecl qore_url_private* priv;
45 DLLLOCAL
void reset();
46 DLLLOCAL
void parseIntern(
const char* url,
ExceptionSink* xsink);
64 DLLEXPORT
QoreURL(
const char* url);
77 DLLEXPORT
QoreURL(
const char* url,
bool keep_brackets);
107 DLLEXPORT
int parse(
const char* url);
125 DLLEXPORT
int parse(
const char* url,
bool keep_brackets);
157 DLLEXPORT
bool isValid()
const;
const DLLEXPORT QoreString * getUserName() const
returns the user name in the URL or 0 if none given
DLLEXPORT int parse(const char *url)
parses the URL string passed
DLLEXPORT int getPort() const
returns the port number given in the URL or 0 if none present
This is the hash or associative list container type in Qore, dynamically allocated only,...
Definition: QoreHashNode.h:50
DLLEXPORT char * take_username()
returns a pointer to the username in the URL (0 if none present), caller owns the memory returned
DLLEXPORT char * take_password()
returns a pointer to the password in the URL (0 if none present), caller owns the memory returned
DLLEXPORT bool isValid() const
returns true if the URL string parsed is valid
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:81
DLLEXPORT QoreHashNode * getHash()
returns a hash of the parameters parsed, destructive: zeros out all elements, caller owns the referen...
const DLLEXPORT QoreString * getProtocol() const
returns the protocol component of the URL or 0 if none given
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
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
const DLLEXPORT QoreString * getPassword() const
returns the password in 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
const DLLEXPORT QoreString * getHost() const
returns the hostname of the URL
DLLEXPORT ~QoreURL()
frees all memory and destroys the structure
helps with parsing URLs and provides access to URL components through Qore data structures
Definition: QoreURL.h:39
const DLLEXPORT QoreString * getPath() const
returns the path component of the URL or 0 if none given