Lines Matching refs:templ
229 bool TemplateMatch(const char *templ, const char *str) { in TemplateMatch() argument
233 if (templ && templ[0] == '^') { in TemplateMatch()
235 templ++; in TemplateMatch()
238 while (templ && templ[0]) { in TemplateMatch()
239 if (templ[0] == '*') { in TemplateMatch()
240 templ++; in TemplateMatch()
245 if (templ[0] == '$') in TemplateMatch()
249 char *tpos = (char*)internal_strchr(templ, '*'); in TemplateMatch()
250 char *tpos1 = (char*)internal_strchr(templ, '$'); in TemplateMatch()
256 const char *spos = internal_strstr(str, templ); in TemplateMatch()
257 str = spos + internal_strlen(templ); in TemplateMatch()
258 templ = tpos; in TemplateMatch()