MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / document_order

Function document_order

src/include/pugixml.cpp:6132–6153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6130 }
6131
6132 PUGI__FN const void* document_order(const xpath_node& xnode)
6133 {
6134 xml_node_struct* node = xnode.node().internal_object();
6135
6136 if (node)
6137 {
6138 if (node->name && (node->header & xml_memory_page_name_allocated_mask) == 0) return node->name;
6139 if (node->value && (node->header & xml_memory_page_value_allocated_mask) == 0) return node->value;
6140 return 0;
6141 }
6142
6143 xml_attribute_struct* attr = xnode.attribute().internal_object();
6144
6145 if (attr)
6146 {
6147 if ((attr->header & xml_memory_page_name_allocated_mask) == 0) return attr->name;
6148 if ((attr->header & xml_memory_page_value_allocated_mask) == 0) return attr->value;
6149 return 0;
6150 }
6151
6152 return 0;
6153 }
6154
6155 struct document_order_comparator
6156 {

Callers 1

operator()Method · 0.85

Calls 3

internal_objectMethod · 0.80
nodeMethod · 0.80
attributeMethod · 0.45

Tested by

no test coverage detected