MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _read_string_array

Method _read_string_array

editor/import/3d/collada.cpp:396–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396Vector<String> Collada::_read_string_array(XMLParser &p_parser) {
397 if (p_parser.is_empty()) {
398 return Vector<String>();
399 }
400
401 Vector<String> array;
402 while (p_parser.read() == OK) {
403 /// @todo Check for comments inside the element and ignore them.
404
405 if (p_parser.get_node_type() == XMLParser::NODE_TEXT) {
406 // parse String data
407 String str = p_parser.get_node_data();
408 array = str.split_spaces();
409 } else if (p_parser.get_node_type() == XMLParser::NODE_ELEMENT_END) {
410 break; // end parsing text
411 }
412 }
413
414 return array;
415}
416
417Transform3D Collada::_read_transform(XMLParser &p_parser) {
418 if (p_parser.is_empty()) {

Callers

nothing calls this directly

Calls 5

get_node_dataMethod · 0.80
split_spacesMethod · 0.80
is_emptyMethod · 0.45
readMethod · 0.45
get_node_typeMethod · 0.45

Tested by

no test coverage detected