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

Method GetNamePart

pcsx2/Patch.cpp:547–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547std::string_view Patch::PatchInfo::GetNamePart() const
548{
549 const std::string::size_type pos = name.rfind('\\');
550 std::string_view ret = name;
551 if (pos != std::string::npos)
552 ret = ret.substr(pos + 1);
553 return ret;
554}
555
556std::string_view Patch::PatchInfo::GetNameParentPart() const
557{

Callers 1

populateTreeViewRowMethod · 0.80

Calls 2

rfindMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected