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

Function GetTermIndex

utils/simplot/prep_plot.cpp:540–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538// ############################################################################
539
540int 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

Callers 2

MakeArbitraryPlotFunction · 0.85
EmitComparisonPlotFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected