StringUtil: Replace StartsWith/EndsWith with C++20 equivalents

This commit is contained in:
Stenzek authored and Connor McLaughlin committed 2023-12-24 14:03:14 +10:00
1 parent d73d698fd5
commit 76f36b780c
14 files changed
+72 -83

No files matched your search

+1 -1
View File
@@ -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)