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

Function rtrim

Common/System/vtkExecutableRunner.cxx:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(
24 std::find_if(s.rbegin(), s.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(),
25 s.end());
26}
27VTK_ABI_NAMESPACE_END
28}
29

Callers 1

ExecuteMethod · 0.70

Calls 5

rbeginMethod · 0.80
rendMethod · 0.80
eraseMethod · 0.45
baseMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected