34#ifndef _QORE_QOREURL_H
36#define _QORE_QOREURL_H
38#define QURL_KEEP_BRACKETS (1 << 0)
39#define QURL_DECODE (1 << 1)
40#define QURL_DECODE_PATH (1 << 2)
41#define QURL_DECODE_ANY (QURL_DECODE | QURL_DECODE_PATH)
69 DLLEXPORT
QoreURL(
const char* url,
bool keep_brackets);
100 DLLEXPORT
QoreURL(
const char* url,
int options);
120 DLLEXPORT
QoreURL(
const std::string& url,
int options = 0);
163 DLLEXPORT
int parse(
const char* url);
183 DLLEXPORT
int parse(
const char* url,
bool keep_brackets);
224 DLLEXPORT
int parse(
const char* url,
int options);
248 DLLEXPORT
int parse(
const std::string& url,
int options = 0);
366 hashdecl qore_url_private* priv;
368 DLLLOCAL
void zero();
369 DLLLOCAL
void reset();
370 DLLLOCAL
void parseIntern(
const char* url,
ExceptionSink* xsink);
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:50
This is the hash or associative list container type in Qore, dynamically allocated only,...
Definition: QoreHashNode.h:50
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
helps with parsing URLs and provides access to URL components through Qore data structures
Definition: QoreURL.h:44
DLLEXPORT QoreURL(const char *url)
parses the URL string passed
DLLEXPORT QoreURL(ExceptionSink *xsink, const char *url, int options)
parses the URL string passed
DLLEXPORT int parse(const QoreString *url, bool keep_brackets, ExceptionSink *xsink)
parses the URL string passed
DLLEXPORT char * take_password()
returns a pointer to the password in the URL (0 if none present), caller owns the memory returned
DLLEXPORT const QoreString * getProtocol() const
returns the protocol component of 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 int parse(const char *url, bool keep_brackets)
parses the URL string passed
DLLEXPORT const QoreString * getHost() const
returns the hostname of the URL
DLLEXPORT int parse(const QoreString *url, bool keep_brackets)
parses the URL string passed
DLLEXPORT int parse(const char *url)
parses the URL string passed
DLLEXPORT QoreURL(const std::string &url, int options=0)
parses the URL string passed
DLLEXPORT const QoreString * getPath() const
returns the path component of the URL or 0 if none given
DLLEXPORT char * take_username()
returns a pointer to the username in the URL (0 if none present), caller owns the memory returned
DLLEXPORT QoreURL(ExceptionSink *xsink, const QoreString &url, int options=0)
parses the URL string passed
DLLEXPORT int parse(ExceptionSink *xsink, const char *url, int options=0)
parses the URL string passed
DLLEXPORT QoreURL(const QoreString &url, int options=0)
parses the URL string passed
DLLEXPORT int parse(ExceptionSink *xsink, const QoreString &url, int options=0)
parses the URL string passed
DLLEXPORT int parse(ExceptionSink *xsink, const std::string &url, int options=0)
parses the URL string passed
DLLEXPORT bool isValid() const
returns true if the URL string parsed is valid
DLLEXPORT int parse(const char *url, int options)
parses the URL string passed
DLLEXPORT QoreURL(const char *url, int options)
parses the URL string passed
DLLEXPORT QoreURL(const QoreString *url, bool keep_brackets)
parses the URL string passed
DLLEXPORT char * take_path()
returns a pointer to the path (0 if none present), caller owns the memory returned
DLLEXPORT QoreURL(const QoreString *url, bool keep_brackets, ExceptionSink *xsink)
parses the URL string passed
DLLEXPORT ~QoreURL()
frees all memory and destroys the structure
DLLEXPORT QoreURL()
creates an empty structure
DLLEXPORT QoreURL(const QoreString *url)
parses the URL string passed
DLLEXPORT QoreURL(ExceptionSink *xsink, const std::string &url, int options=0)
parses the URL string passed
DLLEXPORT QoreURL(const char *url, bool keep_brackets)
parses the URL string passed
DLLEXPORT int parse(const QoreString *url)
parses the URL string passed
DLLEXPORT const QoreString * getUserName() const
returns the user name in the URL or 0 if none given
DLLEXPORT int getPort() const
returns the port number given in the URL or 0 if none present
DLLEXPORT int parse(const std::string &url, int options=0)
parses the URL string passed
DLLEXPORT QoreHashNode * getHash()
returns a hash of the parameters parsed, destructive: zeros out all elements, caller owns the referen...
DLLEXPORT const QoreString * getPassword() const
returns the password in the URL or 0 if none given
DLLEXPORT int parse(const QoreString &url, int options=0)
parses the URL string passed