// Returns 'true' if the given character is a path separator. bool isDirSeparator(const tstring::value_type c);
// returns directory part of the path. // returns empty string if the path contains only filename. // if the path ends with slash/backslash, // returns removeTrailingSlashes(path).
tstring dirname(const tstring &path);
// returns basename part of the path // if the path ends with slash/backslash, returns empty string.
tstring basename(const tstring &path);
// Returns suffix of the path. If the given path has a suffix the first // character of the return value is '.'. // Otherwise return value if empty string.
tstring suffix(const tstring &path);
// combines two strings into a path
tstring combinePath(const tstring& parent, const tstring& child);
// removes trailing slashes and backslashes in the path if any
tstring removeTrailingSlash(const tstring& path);
// checks if the file or directory exists bool isFileExists(const tstring &filePath);
// checks is the specified file is a directory // returns false if the path does not exist bool isDirectory(const tstring &filePath);
// checks if the specified directory is not empty // returns true if the path is an existing directory and // it contains at least one file other than "." or "..". bool isDirectoryNotEmpty(const tstring &dirPath);
} // FileUtils
#endif// FILEUTILS_H
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-09-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.