Searched refs:new_extension (Results 1 – 2 of 2) sorted by relevance
751 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension) { in ReplaceFileExtension() argument755 result.reserve(filename.size() + 1 + new_extension.size()); in ReplaceFileExtension()756 result.append(filename).append(".").append(new_extension); in ReplaceFileExtension()758 result.reserve(last_ext + 1 + new_extension.size()); in ReplaceFileExtension()759 result.append(filename.substr(0, last_ext + 1)).append(new_extension); in ReplaceFileExtension()
181 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension);