| 523 | // fully qualified name in the names[] array. |
| 524 | |
| 525 | string HaveTerm(const vector <string>& names, const string parameter) |
| 526 | { |
| 527 | for (unsigned int i=0; i<names.size(); i++) { |
| 528 | if (names[i].find(parameter) != string::npos) { |
| 529 | int start = names[i].find(parameter); |
| 530 | if (start + parameter.length() == names[i].size()) return names[i]; |
| 531 | } |
| 532 | } |
| 533 | //cerr << "Could not find parameter: _" << parameter << "_" << endl; |
| 534 | |
| 535 | return string(""); |
| 536 | } |
| 537 | |
| 538 | // ############################################################################ |
| 539 |
no test coverage detected