MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / trim

Function trim

Src/Base/AMReX_String.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26std::string trim(std::string s, std::string const& space)
27{
28 const auto sbegin = s.find_first_not_of(space);
29 if (sbegin == std::string::npos) { return std::string{}; }
30 const auto send = s.find_last_not_of(space);
31 s = s.substr(sbegin, send-sbegin+1);
32 return s;
33}
34
35std::string Concatenate (const std::string& root, int num, int mindigits)
36{

Callers 3

getNewEnumNameValuePairsFunction · 0.85
getEnumNameStringsFunction · 0.85
PlotFileDataImplMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected