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

Function document_order

Tools/EditorFramework/pugixml.cpp:6809–6834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6807}
6808
6809PUGI__FN const void* document_order(const xpath_node& xnode)
6810{
6811 xml_node_struct* node = xnode.node().internal_object();
6812
6813 if (node)
6814 {
6815 if (node->name && (node->header & xml_memory_page_name_allocated_mask) == 0)
6816 return node->name;
6817 if (node->value && (node->header & xml_memory_page_value_allocated_mask) == 0)
6818 return node->value;
6819 return 0;
6820 }
6821
6822 xml_attribute_struct* attr = xnode.attribute().internal_object();
6823
6824 if (attr)
6825 {
6826 if ((attr->header & xml_memory_page_name_allocated_mask) == 0)
6827 return attr->name;
6828 if ((attr->header & xml_memory_page_value_allocated_mask) == 0)
6829 return attr->value;
6830 return 0;
6831 }
6832
6833 return 0;
6834}
6835
6836struct document_order_comparator
6837{

Callers 1

operator()Method · 0.70

Calls 3

internal_objectMethod · 0.45
nodeMethod · 0.45
attributeMethod · 0.45

Tested by

no test coverage detected