MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / trimLeft

Function trimLeft

src/sys/utils.cxx:132–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132std::string trimLeft(const std::string& s, const std::string& c) {
133 std::string str(s);
134 return str.erase(0, s.find_first_not_of(c));
135}
136
137// Strips the comments from a string
138// This is the compliment of trimLeft

Callers 2

trimFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68