Home
last modified time | relevance | path

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

/art/libartbase/base/
Dfile_utils.cc553 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension) { in ReplaceFileExtension() argument
557 result.reserve(filename.size() + 1 + new_extension.size()); in ReplaceFileExtension()
558 result.append(filename).append(".").append(new_extension); in ReplaceFileExtension()
560 result.reserve(last_ext + 1 + new_extension.size()); in ReplaceFileExtension()
561 result.append(filename.substr(0, last_ext + 1)).append(new_extension); in ReplaceFileExtension()
Dfile_utils.h146 std::string ReplaceFileExtension(std::string_view filename, std::string_view new_extension);