MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / split

Function split

src/ifcparse/parse_ifcxml.cpp:218–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216// ifc4 allows for aggregates to be concatenated using whitespace.
217template <typename T>
218std::vector<T> split(const std::string& value) {
219 std::vector<std::string> strs;
220 boost::split(
221 strs, value, [](char character) { return character == ' '; }, boost::token_compress_on);
222 std::vector<T> r(strs.size());
223 boost::copy(strs | boost::adaptors::transformed([](const std::string& s) {
224 return boost::lexical_cast<T>(s);
225 }),
226 r.begin());
227 return r;
228}
229
230boost::any parse_attribute_value(const IfcParse::parameter_type* ty, const std::string& value) {
231 boost::any any;

Callers 4

writeMethod · 0.50
addTextAnnotationsMethod · 0.50
IfcConvert.cppFile · 0.50
read_filters_from_fileFunction · 0.50

Calls 3

copyFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected