Return the filename with a new or different extension.
Synopsis
Declared in <mrdocs/Support/Path.hpp>
std::string
withExtension(
std::string_view fileName,
std::string_view ext);
Return Value
the filename with a new or different extension.
Parameters
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. |
Created with MrDocs