mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Replace transform with basic for loop.
This commit is contained in:
parent
9bc33de652
commit
74c02d273f
1 changed files with 3 additions and 5 deletions
|
@ -235,12 +235,10 @@ class fscDeviceHostFSC : public fscDeviceC {
|
|||
auto static lowercase_path = [](std::filesystem::path const & path)
|
||||
{
|
||||
std::wstring string = path.wstring();
|
||||
std::transform(string.begin(), string.end(), string.begin(), [](const auto& item)
|
||||
for (auto& i : string)
|
||||
{
|
||||
if (std::isalpha(item))
|
||||
return static_cast<wchar_t>(std::tolower(item));
|
||||
return item;
|
||||
});
|
||||
i = std::isalpha(i) ? std::tolower(i) : i;
|
||||
}
|
||||
return string;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue