Documentation

Path::ChangeExtension

Function

string Path::ChangeExtension(const string&in path, const string&in extension)

Changes the file extension in the given path and returns the new path. If the original path has no file extension, this will add the given file extension.

string path

The original path.

string extension

The new extension for the given path. This does not need to start with a period, but including a period is accepted.

Returns string