MCPcopy Create free account
hub / github.com/AshampooSystems/boden / ltrim

Function ltrim

framework/foundation/src/String.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void ltrim(std::string &s)
30 {
31 s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int ch) { return std::isspace(ch) == 0; }));
32 }
33
34 void rtrim(std::string &s)
35 {

Callers 2

trimFunction · 0.85
ltrim_copyFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected