mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 19:14:18 +01:00
StringUtil: Replace StartsWith/EndsWith with C++20 equivalents
This commit is contained in:
1 parent
d73d698fd5
commit
76f36b780c
14 files changed
+72
-83
No files matched your search
@@ -187,7 +187,7 @@ void GameDatabase::parseAndInsert(const std::string_view& serial, const c4::yml:
|
||||
auto fix = std::string(n.val().str, n.val().len);
|
||||
|
||||
// Enum values don't end with Hack, but gamedb does, so remove it before comparing.
|
||||
if (StringUtil::EndsWith(fix, "Hack"))
|
||||
if (fix.ends_with("Hack"))
|
||||
{
|
||||
fix.erase(fix.size() - 4);
|
||||
for (GamefixId id = GamefixId_FIRST; id < pxEnumEnd; ++id)
|
||||
|
||||
Reference in new issue
Block a user