Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::UI::URLParser Class Referenceabstract

Provides basic URL parsing. More...

#include <Coherent/UI/URLParse.h>

Public Member Functions

virtual bool Parse (const wchar_t *url, URLComponent *scheme, URLComponent *location, URLComponent *query, URLComponent *fragment)=0
 Parses an URL and split it in component. More...
 

Detailed Description

Provides basic URL parsing.

Member Function Documentation

virtual bool Coherent::UI::URLParser::Parse ( const wchar_t *  url,
URLComponent scheme,
URLComponent location,
URLComponent query,
URLComponent fragment 
)
pure virtual

Parses an URL and split it in component.

Parameters
urlthe url to be parsed. Note: this method requires url to be full url of the form scheme://some/network/location?a=42#top, where the query and fragment parts are optional.
schemepointer to the URLComponent that should store the scheme. May be nullptr.
locationpointer to the URLComponent that should store the location. May be nullptr.
querypointer to the URLComponent that should store the query. May be nullptr.
fragmentpointer to the URLComponent that should store the fragment. May be nullptr.
Returns
true if the whole url has been successfully parsed