Searched refs:new_extension (Results 1 – 2 of 2) sorted by relevance
507 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension) { in ReplaceFileExtension() argument511 result.reserve(filename.size() + 1 + new_extension.size()); in ReplaceFileExtension()512 result.append(filename).append(".").append(new_extension); in ReplaceFileExtension()514 result.reserve(last_ext + 1 + new_extension.size()); in ReplaceFileExtension()515 result.append(filename.substr(0, last_ext + 1)).append(new_extension); in ReplaceFileExtension()
127 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension);