Lines Matching refs:el
132 std::unique_ptr<Element> el = util::make_unique<Element>(); in StartElementHandler() local
133 SplitName(name, &el->namespace_uri, &el->name); in StartElementHandler()
141 auto iter = std::lower_bound(el->attributes.begin(), el->attributes.end(), attribute, in StartElementHandler()
143 el->attributes.insert(iter, std::move(attribute)); in StartElementHandler()
146 el->comment = std::move(stack->pending_comment); in StartElementHandler()
147 AddToStack(stack, parser, std::move(el)); in StartElementHandler()
228 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) { in CopyAttributes() argument
231 el->attributes.reserve(attr_count); in CopyAttributes()
256 el->attributes.push_back(std::move(attr)); in CopyAttributes()
382 Element* el = nullptr; in FindRootElement() local
383 while ((el = NodeCast<Element>(node)) == nullptr) { in FindRootElement()
391 return el; in FindRootElement()
441 if (Element* el = NodeCast<Element>(child)) { in FindChildWithAttribute() local
442 if (ns == el->namespace_uri && name == el->name) { in FindChildWithAttribute()
444 return el; in FindChildWithAttribute()
447 Attribute* attr = el->FindAttribute(attr_ns, attr_name); in FindChildWithAttribute()
449 return el; in FindChildWithAttribute()
468 if (Element* el = NodeCast<Element>(child)) { in GetChildElements() local
469 elements.push_back(el); in GetChildElements()
476 auto el = util::make_unique<Element>(); in Clone() local
477 el->comment = comment; in Clone()
478 el->line_number = line_number; in Clone()
479 el->column_number = column_number; in Clone()
480 el->name = name; in Clone()
481 el->namespace_uri = namespace_uri; in Clone()
482 el->attributes.reserve(attributes.size()); in Clone()
483 el_cloner(*this, el.get()); in Clone()
484 el->children.reserve(children.size()); in Clone()
486 el->AppendChild(child->Clone(el_cloner)); in Clone()
488 return std::move(el); in Clone()