MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / HaveTerm

Function HaveTerm

utils/simplot/prep_plot.cpp:525–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523// fully qualified name in the names[] array.
524
525string 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

Callers 2

MakeArbitraryPlotFunction · 0.85
EmitComparisonPlotFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected