MCPcopy Create free account
hub / github.com/acl-dev/acl / next_attr

Method next_attr

lib_acl_cpp/src/stdlib/xml2.cpp:101–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101const xml_attr* xml2_node::next_attr() const
102{
103 ACL_ARRAY* a = node_->attr_list;
104 if (a == NULL) {
105 return NULL;
106 }
107
108 acl_assert(attr_iter_);
109
110 ACL_XML2_ATTR* attr = (ACL_XML2_ATTR*) a->iter_next(attr_iter_, a);
111 if (attr == NULL) {
112 return NULL;
113 }
114
115 xml2_attr* xa = NEW xml2_attr(const_cast<xml2_node*>(this), attr);
116 const_cast<xml2_node*>(this)->attrs_tmp_.push_back(xa);
117 return xa;
118
119}
120
121xml_node& xml2_node::add_attr(const char* name, const char* value)
122{

Callers 6

testFunction · 0.45
node_attr_printFunction · 0.45
testFunction · 0.45
node_attr_printFunction · 0.45
print_attrsFunction · 0.45
doXmlMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected