mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Obsoletes these functions in favor of the standard member functions added in C++20.
This commit is contained in:
@ -107,7 +107,7 @@ static std::string ReadCpuinfoField(const std::string& field)
|
||||
|
||||
while (std::getline(file, line))
|
||||
{
|
||||
if (!StringBeginsWith(line, field))
|
||||
if (!line.starts_with(field))
|
||||
continue;
|
||||
auto non_tab = line.find_first_not_of("\t", field.length());
|
||||
if (non_tab == line.npos)
|
||||
|
Reference in New Issue
Block a user