Theseus
Compressible flow solver
Loading...
Searching...
No Matches
parse_helpers.hpp File Reference
#include <algorithm>
#include <cctype>
#include <string>
Include dependency graph for parse_helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

auto to_lower
 
auto starts_with
 

Variable Documentation

◆ starts_with

auto starts_with
Initial value:
= [](const std::string &s, const std::string &prefix)
{
return s.rfind(prefix, 0) == 0;
}

◆ to_lower

auto to_lower
Initial value:
= [](std::string s)
{
std::transform(s.begin(), s.end(), s.begin(),
[](unsigned char c) {
return static_cast<char>(std::tolower(c));
});
return s;
}