mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -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:
@ -73,7 +73,7 @@ static std::vector<std::string> ReadM3UFile(const std::string& m3u_path,
|
||||
// This is the UTF-8 representation of U+FEFF.
|
||||
constexpr std::string_view utf8_bom = "\xEF\xBB\xBF";
|
||||
|
||||
if (StringBeginsWith(line, utf8_bom))
|
||||
if (line.starts_with(utf8_bom))
|
||||
{
|
||||
WARN_LOG_FMT(BOOT, "UTF-8 BOM in file: {}", m3u_path);
|
||||
line.erase(0, utf8_bom.length());
|
||||
|
Reference in New Issue
Block a user