MCPcopy 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
112void StringUtil::ltrim(std::string* str) {
113 while (str->front() == ' ') {
114 str->erase(str->begin());
115 }
116}
117
118void StringUtil::rtrim(std::string* str) {
119 while (str->back() == ' ') {

Callers

nothing calls this directly

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected