rurl.h
Go to the documentation of this file.
TQString extension(bool complete=true) const
Returns the extension of a file or TQString() for directories.
Definition: rurl.cpp:110
Name(const TQString &rurl, const Type type=Auto)
Constructor takes the relative name of a directory or file.
Definition: rurl.cpp:10
static TQString correctName(const TQString &rurl, const Type type=Auto)
Corrects rurl according to the given type and returns corrected url.
Definition: rurl.cpp:46
static Name relativeName(const TQString &base, const TQString &url)
Creates and returns relative name between base and url.
Definition: rurl.cpp:184
void correct()
Corrects m_rurl and m_type according to the relative name storing policy, i.e.
Definition: rurl.cpp:22
void setType(const Type type)
Sets a type of the relative name - file or directory.
Definition: rurl.cpp:179
TQString rurl() const
Gets the relative name in form dir/dir/ -> directory or dir/dir/file -> file.
Definition: rurl.cpp:75
TQString directory() const
Returns the name of the directory or TQString() if there are no dirs in path.
Definition: rurl.cpp:130
static TQString cleanName(const TQString &rurl)
Cleans rurl by removing extra slashes.
Definition: rurl.cpp:91
TQString fileName() const
Returns the name of the file without the path or TQString() for directories.
Definition: rurl.cpp:123