Fix formatting

This commit is contained in:
Dennis Luxen 2022-11-06 12:26:37 +01:00
parent b13820f520
commit bb4fd93fab

View File

@ -72,8 +72,9 @@ template <typename StringView> inline auto decompose(const StringView &lhs, cons
// consistent in handling, we do not create bad results // consistent in handling, we do not create bad results
std::string str; std::string str;
str.reserve(view.size()); str.reserve(view.size());
std::transform( std::transform(view.begin(), view.end(), std::back_inserter(str), [](unsigned char c) {
view.begin(), view.end(), std::back_inserter(str), [](unsigned char c) { return std::tolower(c); }); return std::tolower(c);
});
auto front = str.find_first_not_of(' '); auto front = str.find_first_not_of(' ');
if (front == std::string::npos) if (front == std::string::npos)