48 static std::string toNativeSeparators(std::string path);
55 static std::string fromNativeSeparators(std::string path);
62 static std::string simplifyPath(std::string originalPath);
69 static std::string getPathFromFilename(
const std::string &filename);
78 static bool sameFileName(
const std::string &fname1,
const std::string &fname2);
85 static std::string removeQuotationMarks(std::string path);
93 static std::string getFilenameExtension(
const std::string &path,
bool lowercase =
false);
100 static std::string getFilenameExtensionInLowerCase(
const std::string &path);
106 static std::string getCurrentPath();
112 static std::string getCurrentExecutablePath(
const char* fallback);
119 static bool isAbsolute(
const std::string& path);
127 static std::string getRelativePath(
const std::string& absolutePath,
const std::vector<std::string>& basePaths);
134 static std::string getAbsoluteFilePath(
const std::string& filePath);
143 const std::set<std::string> extra;
144 return acceptFile(filename, extra);
154 static bool acceptFile(
const std::string &path,
const std::set<std::string> &extra);
162 static DEPRECATED bool isC(
const std::string &path);
170 static DEPRECATED bool isCPP(
const std::string &path);
178 static DEPRECATED bool isHeader(
const std::string &path);
185 static bool isHeader2(
const std::string &path);
200 static std::string stripDirectoryPart(
const std::string &file);
207 static bool isFile(
const std::string &path);
214 static bool isDirectory(
const std::string &path);
219 static std::string
join(
const std::string& path1,
const std::string& path2);
static bool acceptFile(const std::string &filename)
Check if the file extension indicates that it's a C/C++ source file.
static std::string join(const std::list< std::string > &strlist, const char *sep)