Home
last modified time | relevance | path

Searched refs:new_extension (Results 1 – 2 of 2) sorted by relevance

/art/libartbase/base/
Dfile_utils.cc507 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension) { in ReplaceFileExtension() argument
511 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()
Dfile_utils.h127 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension);