| 538 | // ############################################################################ |
| 539 | |
| 540 | int GetTermIndex(const vector <string>& names, const string parameter) |
| 541 | { |
| 542 | for (unsigned int i=0; i<names.size(); i++) { |
| 543 | if (names[i].find(parameter) != string::npos) { |
| 544 | int start = names[i].find(parameter); |
| 545 | if (start + parameter.length() == names[i].size()) return i+1; |
| 546 | } |
| 547 | } |
| 548 | return -1; |
| 549 | } |
| 550 | |
| 551 | // ############################################################################ |
| 552 |
no test coverage detected