![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
Return root of absolute path; on Unix, this is just "/".
On Windows, this is "\\" or "C:\". Returns the empty string if the given path is not absolute.
Referenced by FX::FXApp::getRootWindow().
Return the directory part of the path name.
Note that directory("/bla/bla/") is "/bla/bla" and NOT "/bla". However, directory("/bla/bla") is "/bla" as we expect!
Referenced by FX::FXFileList::getDirectory().
Return name and extension part of the path name.
Note that name("/bla/bla/") is "" and NOT "bla". However, name("/bla/bla") is "bla" as we expect!
Referenced by FX::FXIconDict::remove(), and FX::FXRecentFiles::setGroupName().
Return file title, i.e. document name only.
Referenced by FX::FXDocument::getTitle(), FX::FXMDIChild::getTitle(), and FX::FXTopWindow::getTitle().
Return the drive letter prefixing this file name (if any).
Perform tilde or environment variable expansion.
FXString FX::FXPath::contract | ( | const FXString & | file, |
const FXString & | user = FXString::null , |
||
const FXString & | var = FXString::null |
||
) |
Contract path based on user name and environment variable.
Simplify a file path; the path will remain relative if it was relative, or absolute if it was absolute.
Also, a trailing "/" will be preserved as this is important in other functions. For example, simplify("..//aaa/./bbb//../c/") becomes "../aaa/c/".
Return absolute path from current directory and file name.
Return absolute path from base directory and file name.
Return relative path of file to the current directory.
Return relative path of file to given base directory.
Return path following local path separator conventions.
Return path to directory above input directory name.
bool FX::FXPath::isAbsolute | ( | const FXString & | file | ) |
Return true if file name is absolute.
bool FX::FXPath::isTopDirectory | ( | const FXString & | file | ) |
Return true if input directory is a top-level directory.
bool FX::FXPath::isShare | ( | const FXString & | file | ) |
Return true if input path is a file share.
Enquote filename to make safe for shell.
bool FX::FXPath::match | ( | const FXString & | pattern, |
const FXString & | file, | ||
FXuint | flags = (FILEMATCH_NOESCAPE|FILEMATCH_FILE_NAME) |
||
) |
Perform wildcard match of a filename against a wildcard pattern.
The wildcard pattern may comprise ordinary characters or special matching characters, as given below:
? Any single character.
The special characters may be escaped to treat them as ordinary characters. Matching may be influenced by a number of flags:
FILEMATCH_FILE_NAME No wildcard can ever match / FILEMATCH_NOESCAPE Backslashes don't quote special chars FILEMATCH_PERIOD Leading . is matched only explicitly FILEMATCH_LEADING_DIR Ignore /... after a match FILEMATCH_CASEFOLD Compare without regard to case
Generate unique filename of the form pathnameXXX.ext, where pathname.ext is the original input file, and XXX is a number, possibly empty, that makes the file unique.
![]() |