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

Function xml_meta_attr

lib_acl/src/xml/acl_xml2_parse.c:321–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321static void xml_meta_attr(ACL_XML2_NODE *node)
322{
323 ACL_XML2_ATTR *attr;
324 char *ptr;
325 int ch;
326
327 if (node->text == node->xml->dummy || *node->text == 0)
328 return;
329
330 ptr = node->text;
331 SKIP_SPACE(ptr);
332
333 if (*ptr == 0)
334 return;
335
336 while ((ch = *ptr) != 0) {
337 attr = acl_xml2_attr_alloc(node);
338 ptr = xml_meta_attr_name(attr, ptr);
339 if (*ptr == 0)
340 break;
341 ptr = xml_meta_attr_value(attr, ptr);
342 if (*ptr == 0)
343 break;
344 }
345
346 node->text = node->xml->dummy;
347 node->text_size = 0;
348}
349
350static const char *xml_parse_meta_text(ACL_XML2 *xml, const char *data)
351{

Callers 1

xml_parse_meta_textFunction · 0.70

Calls 3

acl_xml2_attr_allocFunction · 0.85
xml_meta_attr_nameFunction · 0.70
xml_meta_attr_valueFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…