MCPcopy Create free account
hub / github.com/MJx0/KittyMemoryEx / trim

Method trim

KittyMemoryEx/KittyUtils.cpp:212–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 }
211
212 void String::trim(std::string &str)
213 {
214 str.erase(str.begin(), std::find_if(str.begin(), str.end(), [](unsigned char c) { return !std::isspace(c); }));
215 str.erase(std::find_if(str.rbegin(), str.rend(), [](unsigned char c) { return !std::isspace(c); }).base(),
216 str.end());
217 }
218

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected