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

Method chomp

src/utils/stringutil.cc:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void StringUtil::chomp(std::string* str) {
131 while (str->back() == '\n' || str->back() == '\r') {
132 str->pop_back();
133 }
134}
135
136void StringUtil::replaceAll(
137 std::string* str,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected