Fix formatting

This commit is contained in:
Dennis Luxen
2022-10-30 14:06:19 +01:00
parent 0021ccef59
commit 91e9623b31
2 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -71,8 +71,10 @@ template <typename StringView> inline auto decompose(const StringView &lhs, cons
// we compare suffixes based on this value, it might break UTF chars, but as long as we are
// consistent in handling, we do not create bad results
std::string str(view);
std::transform(str.begin(), str.end(), str.begin(),
[](unsigned char c){ return std::tolower(c); } // correct
std::transform(str.begin(),
str.end(),
str.begin(),
[](unsigned char c) { return std::tolower(c); }
);
auto front = str.find_first_not_of(' ');