MCPcopy Create free account
hub / github.com/MyGUI/mygui / path

Method path

Tools/EditorFramework/pugixml.cpp:5069–5086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5067
5068#ifndef PUGIXML_NO_STL
5069 PUGI__FN string_t xml_node::path(char_t delimiter) const
5070 {
5071 xml_node cursor = *this; // Make a copy.
5072
5073 string_t result = cursor.name();
5074
5075 while (cursor.parent())
5076 {
5077 cursor = cursor.parent();
5078
5079 string_t temp = cursor.name();
5080 temp += delimiter;
5081 temp += result;
5082 result.swap(temp);
5083 }
5084
5085 return result;
5086 }
5087#endif
5088
5089 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

nameMethod · 0.45
parentMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected