Misc: Remove StringUtil::{Starts,Ends}With, use C++20

This commit is contained in:
Stenzek
2023-12-13 21:15:07 +10:00
parent 79c226efff
commit 710698f7e1
11 changed files with 37 additions and 48 deletions

View File

@ -306,7 +306,7 @@ std::string ProcessPacket(const std::string_view& data)
// Try to invoke packet command.
bool processed = false;
for (const auto& command : COMMANDS) {
if (StringUtil::StartsWith(packet->data(), command.first)) {
if (packet->starts_with(command.first)) {
Log_DebugPrintf("Processing command '%s'", command.first);
// Invoke command, remove command name from payload.