| 17 | |
| 18 | namespace { |
| 19 | std::string toLowerStr(std::string_view SV) { |
| 20 | std::string Result(SV); |
| 21 | std::transform( |
| 22 | Result.begin(), Result.end(), Result.begin(), |
| 23 | [](unsigned char C) { return static_cast<char>(std::tolower(C)); }); |
| 24 | return Result; |
| 25 | } |
| 26 | |
| 27 | // Maps a component-side ExternDesc::DescType to its Sort::SortType. |
| 28 | // Returns nullopt for `CoreType` (= `(core module (type i))`), which has no |