2 * Sherlock Library -- Content-Type Pattern Matching
4 * (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
13 match_ct_patt(byte *p, byte *t)
15 if (*p == '*' && !p[1]) /* "*" matches everything */
18 if (*p == '*' && p[1] == '/') /* "*" on the left-hand side */
20 while (*t && *t != ' ' && *t != ';' && *t != '/')
24 else /* Normal left-hand side */
27 if (Cupcase(*p++) != Cupcase(*t++))
34 if (*p == '*' && !p[1]) /* "*" on the right-hand side */
37 if (Cupcase(*p++) != Cupcase(*t++))
39 if (*t && *t != ' ' && *t != ';')