Fix formatting
This commit is contained in:
parent
b13820f520
commit
bb4fd93fab
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user