Return the filename with a new or different extension.
<mrdocs/Support/Path.hpp>
std::string
withExtension(
std::string_view fileName,
std::string_view ext);
| Name | Description |
|---|---|
| fileName | The absolute or relative path to the directory or file. |
| ext | The extension to use, without a leading dot. If this is empty and the path contains an extension, then the extension is removed. |