MCPcopy Create free account
hub / github.com/Kitware/VTK / ltrim

Function ltrim

Common/System/vtkExecutableRunner.cxx:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace details
13{
14VTK_ABI_NAMESPACE_BEGIN
15// trim strings. This should go in vtksys at some point
16static inline void ltrim(std::string& s)
17{
18 s.erase(s.begin(),
19 std::find_if(s.begin(), s.end(), [](unsigned char ch) { return !std::isspace(ch); }));
20}
21static inline void rtrim(std::string& s)
22{
23 s.erase(

Callers 1

ExecuteMethod · 0.70

Calls 3

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected