| 6807 | } |
| 6808 | |
| 6809 | PUGI__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 | |
| 6836 | struct document_order_comparator |
| 6837 | { |
no test coverage detected