MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / path

Method path

Source/ThirdParty/pugixml/pugixml.cpp:5353–5370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5351
5352#ifndef PUGIXML_NO_STL
5353 PUGI__FN string_t xml_node::path(char_t delimiter) const
5354 {
5355 xml_node cursor = *this; // Make a copy.
5356
5357 string_t result = cursor.name();
5358
5359 while (cursor.parent())
5360 {
5361 cursor = cursor.parent();
5362
5363 string_t temp = cursor.name();
5364 temp += delimiter;
5365 temp += result;
5366 result.swap(temp);
5367 }
5368
5369 return result;
5370 }
5371#endif
5372
5373 PUGI__FN xml_node xml_node::first_element_by_path(const char_t* path_, char_t delimiter) const

Callers

nothing calls this directly

Calls 3

parentMethod · 0.80
nameMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected