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

Function strEquals

pcsx2/DebugTools/MipsAssembler.cpp:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool strEquals(std::string_view lhs, std::string_view rhs)
190{
191 const size_t compare_to = std::min(lhs.size(), rhs.size());
192 return std::ranges::equal(lhs.begin(), lhs.begin() + compare_to, rhs.begin(), rhs.begin() + compare_to, charEquals);
193}
194
195bool isValidRegisterTrail(std::string_view source, size_t idx)
196{

Callers 1

MipsGetRegisterFunction · 0.85

Calls 4

equalFunction · 0.85
minFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected