bool isShare(const FXString &file)
Return true if input path is a file share.
FXString enquote(const FXString &file, bool forcequotes=false)
Enquote filename to make safe for shell.
bool isAbsolute(const FXString &file)
Return true if file name is absolute.
unsigned int FXuint
Definition: fxdefs.h:389
FXString dequote(const FXString &file)
Dequote filename to get original again.
FXString relative(const FXString &file)
Return relative path of file to the current directory.
#define FXAPI
Definition: fxdefs.h:122
FXString title(const FXString &file)
Return file title, i.e. document name only.
FXString name(const FXString &file)
Return name and extension part of the path name.
FXString search(const FXString &pathlist, const FXString &file)
Search path list for this file, return full path name for first occurrence.
FXString contract(const FXString &file, const FXString &user=FXString::null, const FXString &var=FXString::null)
Contract path based on user name and environment variable.
FXString unique(const FXString &file)
Generate unique filename of the form pathnameXXX.ext, where pathname.ext is the original input file...
Backslashes don't quote special chars.
Definition: fxdefs.h:311
FXString root(const FXString &file)
Return root of absolute path; on Unix, this is just "/".
FXString extension(const FXString &file)
Return extension part of the file name.
bool match(const FXString &pattern, const FXString &file, FXuint flags=(FILEMATCH_NOESCAPE|FILEMATCH_FILE_NAME))
Perform wildcard match of a filename against a wildcard pattern.
bool isTopDirectory(const FXString &file)
Return true if input directory is a top-level directory.
Definition: FX4Splitter.h:31
FXString expand(const FXString &file)
Perform tilde or environment variable expansion.
FXString absolute(const FXString &file)
Return absolute path from current directory and file name.
FXuint user()
Get effective user id.
FXString upLevel(const FXString &file)
Return path to directory above input directory name.
static const FXchar null[]
Definition: FXString.h:35
FXString directory(const FXString &file)
Return the directory part of the path name.
FXString drive(const FXString &file)
Return the drive letter prefixing this file name (if any).
FXString simplify(const FXString &file)
Simplify a file path; the path will remain relative if it was relative, or absolute if it was absolut...
No wildcard can ever match `/'.
Definition: fxdefs.h:310
FXString stripExtension(const FXString &file)
Return file name less the extension.
FXString convert(const FXString &path)
Return path following local path separator conventions.
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33