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

Function Trim

comp/read_ansys.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 using std::map;
23
24 static string Trim (const string & s)
25 {
26 size_t a = s.find_first_not_of(" \t\r\n");
27 if (a == string::npos) return "";
28 size_t b = s.find_last_not_of(" \t\r\n");
29 return s.substr(a, b-a+1);
30 }
31
32 static string Upper (string s)
33 {

Callers 4

SplitCommaFunction · 0.85
ParseParamsFunction · 0.85
ClassifyTypeFunction · 0.85
ParseAbaqusInpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected