MCPcopy Create free account
hub / github.com/asmuth/clip / stripTrailingSlashes

Method stripTrailingSlashes

src/utils/stringutil.cc:124–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void StringUtil::stripTrailingSlashes(std::string* str) {
125 while (str->back() == '/') {
126 str->pop_back();
127 }
128}
129
130void StringUtil::chomp(std::string* str) {
131 while (str->back() == '\n' || str->back() == '\r') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected