refactor: use std ranges functions where applicable

This commit is contained in:
Jan committed 2024-03-24 20:49:15 +01:00
1 parent 132cccb971
commit 239001e6f2
42 files changed
+251 -295

No files matched your search

@@ -973,7 +973,7 @@ namespace test::parsing::matcher
[](HeaderMatcherFactory::token_list_t& tokens)
{
auto str = tokens[0].get().IdentifierValue();
std::transform(str.begin(), str.end(), str.begin(), toupper);
std::ranges::transform(str, str.begin(), toupper);
return HeaderParserValue::Identifier(tokens[0].get().GetPos(), new std::string(std::move(str)));
}),
create.Char('{'),