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

Method LocaleSensitiveCompare

pcsx2-gsrunner/Main.cpp:457–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457int Host::LocaleSensitiveCompare(std::string_view lhs, std::string_view rhs)
458{
459 const int res = std::strncmp(lhs.data(), rhs.data(), std::min(lhs.size(), rhs.size()));
460 if (res != 0)
461 return res;
462 return lhs.size() > rhs.size() ? 1 : (lhs.size() < rhs.size() ? -1 : 0);
463}
464
465std::optional<u32> InputManager::ConvertHostKeyboardStringToCode(const std::string_view str)
466{

Callers

nothing calls this directly

Calls 3

minFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected