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

Function xml_meta_attr_name

lib_acl/src/xml/acl_xml2_parse.c:252–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static char *xml_meta_attr_name(ACL_XML2_ATTR *attr, char *data)
253{
254 int ch;
255
256 SKIP_SPACE(data);
257 if (*data == 0)
258 return data;
259
260 if (attr->name == attr->node->xml->dummy)
261 attr->name = data;
262
263 while ((ch = *data) != 0) {
264 if (ch == '=') {
265 if (attr->name_size == 0)
266 attr->name_size = (ssize_t) (data - attr->name);
267 *data++ = 0;
268 break;
269 }
270 if (IS_SPACE(ch)) {
271 attr->name_size = (ssize_t) (data - attr->name);
272 *data++ = 0;
273 } else
274 data++;
275 }
276
277 return data;
278}
279
280static char *xml_meta_attr_value(ACL_XML2_ATTR *attr, char *data)
281{

Callers 1

xml_meta_attrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…