MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / ParseParams

Function ParseParams

comp/read_ansys.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 static map<string,string> ParseParams (const vector<string> & tok)
64 {
65 map<string,string> params;
66 for (size_t i = 1; i < tok.size(); i++)
67 {
68 const string & t = tok[i];
69 if (t.empty()) continue;
70 auto eq = t.find('=');
71 if (eq == string::npos)
72 params[Upper(Trim(t))] = "";
73 else
74 params[Upper(Trim(t.substr(0,eq)))] = Trim(t.substr(eq+1));
75 }
76 return params;
77 }
78
79 static string GetParam (const map<string,string> & p, const string & key)
80 {

Callers 1

ParseAbaqusInpFunction · 0.85

Calls 3

UpperFunction · 0.85
TrimFunction · 0.85
findMethod · 0.80

Tested by

no test coverage detected