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

Method Combine

common/FileSystem.cpp:848–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848std::string Path::Combine(const std::string_view base, const std::string_view next)
849{
850 std::string ret;
851 ret.reserve(base.length() + next.length() + 1);
852
853 PathAppendString(ret, base);
854 while (!ret.empty() && ret.back() == FS_OSPATH_SEPARATOR_CHARACTER)
855 ret.pop_back();
856
857 ret += FS_OSPATH_SEPARATOR_CHARACTER;
858 PathAppendString(ret, next);
859 while (!ret.empty() && ret.back() == FS_OSPATH_SEPARATOR_CHARACTER)
860 ret.pop_back();
861
862 return ret;
863}
864
865
866std::string Path::URLEncode(std::string_view str)

Callers

nothing calls this directly

Calls 6

PathAppendStringFunction · 0.85
reserveMethod · 0.45
lengthMethod · 0.45
emptyMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected