MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / parseSubstring

Method parseSubstring

include/DataGeneric.h:180–195  ·  view source on GitHub ↗

parse an ASCII input string */

Source from the content-addressed store, hash-verified

178 private:
179 /** parse an ASCII input string */
180 std::string parseSubstring(std::string Input)
181 {
182 size_t StringEnd = 0;
183 size_t InputStringEnd = 0;
184
185 for(const auto &Element : _Config->getConfig(_Type))
186 {
187 for(Index nElement = 0; nElement < _Data.at(Element.first).size(); nElement++)
188 {
189 _Data.at(Element.first).operator[](nElement) = std::stod(Input.substr(InputStringEnd), &StringEnd);
190 InputStringEnd += StringEnd;
191 }
192 }
193
194 return Input.substr(InputStringEnd);
195 }
196
197 /** identifying string */
198 std::string _Name;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected