Lines Matching refs:attrind
241 find_attr (struct taginfo *tag, const char *name, int *attrind)
247 if (attrind)
248 *attrind = i;
255 #define ATTR_POS(tag, attrind, ctx) \
256 (tag->attrs[attrind].value_raw_beginning - ctx->text)
257 #define ATTR_SIZE(tag, attrind) \
258 (tag->attrs[attrind].value_raw_size)
353 int attrind;
354 char *style = find_attr (tag, "style", &attrind);
359 get_urls_css (ctx, ATTR_POS(tag,attrind,ctx)+1, ATTR_SIZE(tag,attrind)-2);
372 int attrind;
394 for (attrind = 0; attrind < tag->nattrs; attrind++)
398 char *link = tag->attrs[attrind].value;
407 if (0 == strcasecmp (tag->attrs[attrind].name,
410 struct urlpos *up = append_url (link, ATTR_POS(tag,attrind,ctx),
411 ATTR_SIZE(tag,attrind), ctx);
431 int attrind;
432 char *newbase = find_attr (tag, "href", &attrind);
436 base_urlpos = append_url (newbase, ATTR_POS(tag,attrind,ctx),
437 ATTR_SIZE(tag,attrind), ctx);
456 int attrind;
457 char *action = find_attr (tag, "action", &attrind);
461 struct urlpos *up = append_url (action, ATTR_POS(tag,attrind,ctx),
462 ATTR_SIZE(tag,attrind), ctx);
474 int attrind;
475 char *href = find_attr (tag, "href", &attrind);
485 struct urlpos *up = append_url (href, ATTR_POS(tag,attrind,ctx),
486 ATTR_SIZE(tag,attrind), ctx);
531 int attrind;
535 char *refresh = find_attr (tag, "content", &attrind);
555 entry = append_url (p, ATTR_POS(tag,attrind,ctx),
556 ATTR_SIZE(tag,attrind), ctx);