Lines Matching refs:ns
417 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) { in FindAttribute() argument
418 return const_cast<Attribute*>(static_cast<const Element*>(this)->FindAttribute(ns, name)); in FindAttribute()
421 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const { in FindAttribute() argument
423 if (ns == attr.namespace_uri && name == attr.name) { in FindAttribute()
430 void Element::RemoveAttribute(const StringPiece& ns, const StringPiece& name) { in RemoveAttribute() argument
433 return ns == attr.namespace_uri && name == attr.name; in RemoveAttribute()
439 Attribute* Element::FindOrCreateAttribute(const StringPiece& ns, const StringPiece& name) { in FindOrCreateAttribute() argument
440 Attribute* attr = FindAttribute(ns, name); in FindOrCreateAttribute()
442 attributes.push_back(Attribute{ns.to_string(), name.to_string()}); in FindOrCreateAttribute()
448 Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) { in FindChild() argument
449 return FindChildWithAttribute(ns, name, {}, {}, {}); in FindChild()
452 const Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) const { in FindChild() argument
453 return FindChildWithAttribute(ns, name, {}, {}, {}); in FindChild()
456 Element* Element::FindChildWithAttribute(const StringPiece& ns, const StringPiece& name, in FindChildWithAttribute() argument
460 ns, name, attr_ns, attr_name, attr_value)); in FindChildWithAttribute()
463 const Element* Element::FindChildWithAttribute(const StringPiece& ns, const StringPiece& name, in FindChildWithAttribute() argument
469 if (ns == el->namespace_uri && name == el->name) { in FindChildWithAttribute()