Rose::StringUtility::stripFileSuffixFromFileName
Get the file name without the ".suffix".
Synopsis
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility]]
std::string
stripFileSuffixFromFileName(std::string const& fileNameWithSuffix);
Description
Terms are loosely defined and it's not clear what happens for inputs like ".", ".foo", "..", ".foo.bar", "/.", etc. Consider using std::filesystem instead.
Return Value
File name without suffix.
Parameters
Name |
Description |
fileNameWithSuffix |
File name with extension. |
Created with MrDocs