120 const auto type_by_lower = [](std::string_view text,
Type &out) {
124 std::string lower_name;
125 for(
const char *c = name; *c; ++c) {
126 lower_name.push_back(
127 static_cast<char>(*c >=
'A' && *c <=
'Z' ? *c -
'A' +
'a'
130 if(text == lower_name) {
138 if(lower ==
"trunc_int" || lower ==
"trunc_dint" || lower ==
"trunc_lint") {
140 desc.
to = lower ==
"trunc_int"
147 const std::size_t sep = lower.find(
"_to_");
148 if(sep == std::string_view::npos) {
153 if(!type_by_lower(lower.substr(0, sep), from) ||
154 !type_by_lower(lower.substr(sep + 4), to)) {