mrdocs::files::getFileName

Return the filename part of the path.

Synopsis

Declared in <mrdocs/Support/Path.hpp>

std::string_view
getFileName(std::string_view pathName);

Return Value

The filename part of the path, or the empty string if there is none.

Parameters

NameDescription
pathNameThe absolute or relative path to the directory or file.