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

Function trimRight

src/sys/utils.cxx:127–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127std::string trimRight(const std::string& s, const std::string& c) {
128 std::string str(s);
129 return str.erase(s.find_last_not_of(c) + 1);
130}
131
132std::string trimLeft(const std::string& s, const std::string& c) {
133 std::string str(s);

Callers 2

trimFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68