Lines Matching refs:node
95 XMLNode::XMLNode(XMLNodeImpl node) : m_node(node) {} in XMLNode() argument
214 for (xmlNodePtr node = m_node; node; node = node->next) { in ForEachSiblingNode() local
215 if (!callback(XMLNode(node))) in ForEachSiblingNode()
227 for (xmlNodePtr node = m_node; node; node = node->next) { in ForEachSiblingElement() local
229 if (node->type != XML_ELEMENT_NODE) in ForEachSiblingElement()
232 if (!callback(XMLNode(node))) in ForEachSiblingElement()
245 for (xmlNodePtr node = m_node; node; node = node->next) { in ForEachSiblingElementWithName() local
247 if (node->type != XML_ELEMENT_NODE) in ForEachSiblingElementWithName()
253 if (strcmp((const char *)node->name, name) != 0) in ForEachSiblingElementWithName()
256 if (node->name) in ForEachSiblingElementWithName()
261 if (!callback(XMLNode(node))) in ForEachSiblingElementWithName()
285 for (xmlNodePtr node = m_node->children; node != nullptr; in GetElementText() local
286 node = node->next) { in GetElementText()
287 if (node->type == XML_TEXT_NODE) { in GetElementText()
288 text.append((const char *)node->content); in GetElementText()
333 name, [&result_node](const XMLNode &node) -> bool { in FindFirstChildElementWithName() argument
334 result_node = node; in FindFirstChildElementWithName()
360 XMLNode node = FindFirstChildElementWithName(path[0].c_str()); in GetElementForPath() local
362 for (size_t i = 1; node && i < n; ++i) in GetElementForPath()
363 node = node.FindFirstChildElementWithName(path[i].c_str()); in GetElementForPath()
364 return node; in GetElementForPath()
435 bool ApplePropertyList::ExtractStringFromValueNode(const XMLNode &node, in ExtractStringFromValueNode() argument
439 if (node.IsValid()) { in ExtractStringFromValueNode()
440 llvm::StringRef element_name = node.GetName(); in ExtractStringFromValueNode()
448 return node.GetElementText(value); in ExtractStringFromValueNode()
456 static StructuredData::ObjectSP CreatePlistValue(XMLNode node) { in CreatePlistValue() argument
457 llvm::StringRef element_name = node.GetName(); in CreatePlistValue()
461 node.ForEachChildElement([&array_sp](const XMLNode &node) -> bool { in CreatePlistValue() argument
462 array_sp->AddItem(CreatePlistValue(node)); in CreatePlistValue()
470 node.ForEachChildElement( in CreatePlistValue()
471 [&key_node, &dict_sp](const XMLNode &node) -> bool { in CreatePlistValue() argument
472 if (node.NameIs("key")) { in CreatePlistValue()
474 key_node = node; in CreatePlistValue()
480 dict_sp->AddItem(key_name, CreatePlistValue(node)); in CreatePlistValue()
490 node.GetElementTextAsFloat(value); in CreatePlistValue()
494 node.GetElementTextAsUnsigned(value, 0, 0); in CreatePlistValue()
499 node.GetElementText(text); in CreatePlistValue()