Lines Matching refs:pattern
76 const char* pattern;
348 if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] || ent->name[wp->prefix] == '/'))
442 mimelist(Mime_t* mp, Sfio_t* fp, register const char* pattern)
450 if (ws.pattern = pattern)
452 while (*pattern && *pattern++ != '/');
453 if (!*pattern || *pattern == '*' && !*(pattern + 1))
454 ws.prefix = pattern - ws.pattern;
455 else if (ent = find(mp, ws.pattern))
457 ws.pattern = 0;