|
| FileInfo (const std::string &extRE="[\\w]+", int flags=REG_ICASE|REG_EXTENDED) |
|
void | setExtensionRegExp (const std::string &extRE, int flags=REG_ICASE|REG_EXTENDED) |
|
bool | checkPath (const std::string &path) const |
| Accepts or rejects a filename extension.
|
|
bool | checkPath (const FilePath &filePath) const |
| Accepts or rejects the extension extracted from file path. More...
|
|
bool | checkExtension (const std::string &ext) const |
| Accepts or rejects a filename extension. More...
|
|
◆ checkExtension()
bool checkExtension |
( |
const std::string & |
ext | ) |
const |
|
inline |
Accepts or rejects a filename extension.
- Parameters
-
ext | - filename extension (without leading period) |
- Returns
- - true, if the extension
◆ checkPath()
bool checkPath |
( |
const FilePath & |
filePath | ) |
const |
|
inline |
Accepts or rejects the extension extracted from file path.
Extracts the extesions in [<directory>/]<filename>.<ext>.
- Parameters
-
ext | - filename extension (without leading period) |
- Returns
- - true, if the extension
The documentation for this class was generated from the following files:
- src/drain/util/FileInfo.h
- src/drain/util/FileInfo.cpp