MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / BuildRelativePath

Method BuildRelativePath

common/FileSystem.cpp:837–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835}
836
837std::string Path::BuildRelativePath(const std::string_view filename, const std::string_view new_filename)
838{
839 std::string new_string;
840
841 std::string_view::size_type pos = GetLastSeperatorPosition(filename, true);
842 if (pos != std::string_view::npos)
843 new_string.assign(filename, 0, pos);
844 new_string.append(new_filename);
845 return new_string;
846}
847
848std::string Path::Combine(const std::string_view base, const std::string_view next)
849{

Callers

nothing calls this directly

Calls 3

GetLastSeperatorPositionFunction · 0.85
assignMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected