mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 15:55:51 +00:00
Merge pull request #22 from lioncash/ifdef
hecl/hecl: Remove windows ifdef in CaseInsensitiveCompare
This commit is contained in:
commit
b235a8fefe
@ -503,13 +503,11 @@ struct CaseInsensitiveCompare {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
#if _WIN32
|
|
||||||
bool operator()(std::wstring_view lhs, std::wstring_view rhs) const {
|
bool operator()(std::wstring_view lhs, std::wstring_view rhs) const {
|
||||||
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [](wchar_t lhs, wchar_t rhs) {
|
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end(), [](wchar_t lhs, wchar_t rhs) {
|
||||||
return std::towlower(lhs) < std::towlower(rhs);
|
return std::towlower(lhs) < std::towlower(rhs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user