find by name */
| 95 | find by name |
| 96 | */ |
| 97 | const Parameters::Param *Parameters::find(const char *name) |
| 98 | { |
| 99 | for (const auto &p : params) { |
| 100 | if (strcmp(name, p.name) == 0) { |
| 101 | return &p; |
| 102 | } |
| 103 | } |
| 104 | return nullptr; |
| 105 | } |
| 106 | |
| 107 | /* |
| 108 | find by index |
nothing calls this directly
no outgoing calls
no test coverage detected