Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asmuth/clip
/ ltrim
Method
ltrim
src/utils/stringutil.cc:112–116 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
110
}
111
112
void StringUtil::ltrim(std::string* str) {
113
while (str->front() ==
' '
) {
114
str->erase(str->begin());
115
}
116
}
117
118
void StringUtil::rtrim(std::string* str) {
119
while (str->back() ==
' '
) {
Callers
nothing calls this directly
Calls
1
begin
Method · 0.80
Tested by
no test coverage detected