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

Method ConsumeInt

Filters/Statistics/vtkStatisticsAlgorithm.cxx:930–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930std::size_t vtkStatisticsAlgorithm::ConsumeInt(const std::string& source, int& value)
931{
932 std::size_t consumed = 0;
933 auto result = vtk::scan_int<int>(source, 10);
934 if (result)
935 {
936 value = result->value();
937 consumed = source.size() - result->range().size();
938 }
939 return consumed;
940}
941
942vtkStatisticsAlgorithm::AlgorithmConstructorMap& vtkStatisticsAlgorithm::GetConstructorMap()
943{

Calls 3

valueMethod · 0.45
sizeMethod · 0.45
rangeMethod · 0.45

Tested by

no test coverage detected