Lines Matching defs:attr
57 if (ind->attr)
58 free(ind->attr);
123 if (!ind || (!ind->attr && value))
127 printf(" ind->attr=\"%s\"\n", ind->attr ? ind->attr : "(null)");
304 * attribute. If both "element" and "attr" are NULL, then the index will
306 * sorted by element name and optionally by attribute value if the "attr"
313 const char *attr) /* I - Attribute to index or NULL for none */
325 printf("mxmlIndexNew(node=%p, element=\"%s\", attr=\"%s\")\n",
326 node, element ? element : "(null)", attr ? attr : "(null)");
343 if (attr)
344 ind->attr = strdup(attr);
346 if (!element && !attr)
349 current = mxmlFindElement(node, node, element, attr, NULL, MXML_DESCEND);
380 current = mxmlFindElement(current, node, element, attr, NULL, MXML_DESCEND);
394 if (attr)
396 printf("Node Address Element %s\n", attr);
402 mxmlElementGetAttr(ind->nodes[i], attr));
428 if (attr)
430 printf("Node Address Element %s\n", attr);
436 mxmlElementGetAttr(ind->nodes[i], attr));
523 if (ind->attr)
525 if ((diff = strcmp(mxmlElementGetAttr(first, ind->attr),
526 mxmlElementGetAttr(second, ind->attr))) != 0)
567 if ((diff = strcmp(value, mxmlElementGetAttr(node, ind->attr))) != 0)