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

Function Split

Filters/General/vtkFiniteElementFieldDistributor.cxx:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::vector<std::string> Split(const std::string& inString, const std::string& delimiter)
77{
78 std::vector<std::string> subStrings;
79 std::size_t sIdx = 0;
80 std::size_t eIdx = 0;
81 while ((eIdx = inString.find(delimiter, sIdx)) < inString.size())
82 {
83 subStrings.emplace_back(inString.substr(sIdx, eIdx - sIdx));
84 sIdx = eIdx + delimiter.size();
85 }
86 if (sIdx < inString.size())
87 {
88 subStrings.emplace_back(inString.substr(sIdx));
89 }
90 return subStrings;
91}
92
93vtkPartitionedDataSet* GetNamedPartitionedDataSet(
94 const std::string& name, vtkPartitionedDataSetCollection* input)

Callers 1

RequestDataMethod · 0.70

Calls 3

findMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected