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

Function rtrim

IO/IOSS/vtkIOSSFilesScanner.cxx:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace
16{
17void rtrim(std::string& s)
18{
19 s.erase(
20 std::find_if(s.rbegin(), s.rend(), [](unsigned char ch) { return !std::isspace(ch); }).base(),
21 s.end());
22}
23}
24
25VTK_ABI_NAMESPACE_BEGIN

Callers 2

IsMetaFileMethod · 0.70
GetFilesFromMetaFileMethod · 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