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

Method strip

fem/code_generation.cpp:250–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248 }
249
250 static string strip(string s) {
251 int n = s.size();
252 if(n<=1) return s;
253 if(s[0] == '(' && s[n-1] == ')') return strip(s.substr(1,n-2));
254 return s;
255 }
256 mutable string s;
257
258 static CCode Par(const CCode &c) {

Callers 3

get_git_versionFunction · 0.80
timings.pyFile · 0.80
parseVersionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected