Rose::StringUtility::classifyFileName
Determine whether a file is source code or system library.
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility]]
FileNameClassification
classifyFileName(
std::string const& fileName,
std::string const& appPath,
std::map<std::string, std::string> const& libPathCollection);
Description
Given a fileName and an appPath that is a path to some application's source code directory, and a collection of library paths, return a FileNameClassification indicating whether the fileName is part of the source code or some system library and automatically determine the operating system from the host uname.
Return Value
Classification result.
Parameters
Name |
Description |
fileName |
File to classify. |
appPath |
Application source root. |
libPathCollection |
Library search paths. |
Created with MrDocs