Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
132
std::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
trim
Function · 0.85
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68