Searched refs:last_ext (Results 1 – 1 of 1) sorted by relevance
718 const size_t last_ext = filename.find_last_of("./"); in ReplaceFileExtension() local720 if (last_ext == std::string::npos || filename[last_ext] != '.') { in ReplaceFileExtension()724 result.reserve(last_ext + 1 + new_extension.size()); in ReplaceFileExtension()725 result.append(filename.substr(0, last_ext + 1)).append(new_extension); in ReplaceFileExtension()