1 /* $Id: parsetag.c,v 1.4 2001/11/20 17:49:23 ukai Exp $ */
8 tag_get_value(struct parsed_tagarg *t, char *arg)
10 for (; t; t = t->next) {
11 if (!strcasecmp(t->arg, arg))
18 tag_exists(struct parsed_tagarg *t, char *arg)
20 for (; t; t = t->next) {
21 if (!strcasecmp(t->arg, arg))
27 struct parsed_tagarg *
28 cgistr2tagarg(char *cgistr)
32 struct parsed_tagarg *t0, *t;
36 t = New(struct parsed_tagarg);
40 while (*cgistr && *cgistr != '=' && *cgistr != '&')
41 Strcat_char(tag, *cgistr++);
42 t->arg = Str_form_unquote(tag)->ptr;
46 else if (*cgistr == '=') {
49 while (*cgistr && *cgistr != '&')
50 Strcat_char(value, *cgistr++);
51 t->value = Str_form_unquote(value)->ptr;
53 else if (*cgistr == '&')