UrlΒΆ
Inherited: None
DescriptionΒΆ
Public MethodsΒΆ
absoluteDir () const |
|
absoluteFilePath () const |
|
baseName () const |
|
completeSuffix () const |
|
dir () const |
|
filePath () const |
|
fragment () const |
|
host () const |
|
bool |
isAbsolute () const |
name () const |
|
query () const |
|
relativeDir (const TString & base) const |
|
relativeFilePath (const TString & base) const |
|
scheme () const |
|
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.
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.
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.