UrlΒΆ

Inherited: None

DescriptionΒΆ

Public MethodsΒΆ

TString

absoluteDir () const

TString

absoluteFilePath () const

TString

baseName () const

TString

completeSuffix () const

TString

dir () const

TString

filePath () const

TString

fragment () const

TString

host () const

bool

isAbsolute () const

TString

name () const

TString

query () const

TString

relativeDir (const TString & base) const

TString

relativeFilePath (const TString & base) const

TString

scheme () const

TString

suffix () const

bool

operator== (const Url & right) const

Static MethodsΒΆ

None

Methods DescriptionΒΆ

TString Url::absoluteDir () const

Returns the absolute dir path of the URI.


TString Url::absoluteFilePath () const

Returns the absolute file path of the URI.


TString Url::baseName () const

Returns a base name of file in the URI path.


TString Url::completeSuffix () const

Returns a file suffix in the URI path.


TString Url::dir () const

Returns a directory of URI path.


TString Url::filePath () const

Returns the path of the URI.


TString Url::fragment () const

Returns the fragment of the URI.


TString Url::host () const

Returns the host of the URI if it is defined; otherwise an empty string is returned.


bool Url::isAbsolute () const

Returns true if provided path is absolute.


TString Url::name () const

Returns a file name in the URI path.


TString Url::query () const

Returns the query string of the URI if there’s a query string, or an empty result if not.


TString Url::relativeDir (TString & base) const

Returns a relative directory of URI path relative to the given base directory. If paths have no common prefix, returns the full absolute path. Handles parent directory transitions (../) when paths share a common prefix.


TString Url::relativeFilePath (TString & base) const

Returns a relative file path of URI relative to the given base directory. If paths have no common prefix, returns the full absolute path including file name. Handles parent directory transitions (../) when paths share a common prefix.


TString Url::scheme () const

Returns the scheme of the URI. If an empty string is returned, this means the scheme is undefined and the URI is then relative.


TString Url::suffix () const

Returns a file name suffix name of file in the URI path.


bool Url::operator== (Url & right) const

Compares current Url with right hand Url; Returns true if Urls are equal.