| 123 | } |
| 124 | |
| 125 | bool cmParseMumpsCoverage::FindMumpsFile(std::string const& routine, |
| 126 | std::string& filepath) |
| 127 | { |
| 128 | auto i = this->RoutineToDirectory.find(routine); |
| 129 | if (i != this->RoutineToDirectory.end()) { |
| 130 | filepath = i->second; |
| 131 | return true; |
| 132 | } |
| 133 | // try some alternate names |
| 134 | char const* tryname[] = { "GUX", "GTM", "ONT", nullptr }; |
| 135 | for (int k = 0; tryname[k] != nullptr; k++) { |
| 136 | std::string routine2 = routine + tryname[k]; |
| 137 | i = this->RoutineToDirectory.find(routine2); |
| 138 | if (i != this->RoutineToDirectory.end()) { |
| 139 | filepath = i->second; |
| 140 | return true; |
| 141 | } |
| 142 | } |
| 143 | return false; |
| 144 | } |
no test coverage detected