Lines Matching refs:templ
208 bool TemplateMatch(const char *templ, const char *str) { in TemplateMatch() argument
212 if (templ && templ[0] == '^') { in TemplateMatch()
214 templ++; in TemplateMatch()
217 while (templ && templ[0]) { in TemplateMatch()
218 if (templ[0] == '*') { in TemplateMatch()
219 templ++; in TemplateMatch()
224 if (templ[0] == '$') in TemplateMatch()
228 char *tpos = (char*)internal_strchr(templ, '*'); in TemplateMatch()
229 char *tpos1 = (char*)internal_strchr(templ, '$'); in TemplateMatch()
235 const char *spos = internal_strstr(str, templ); in TemplateMatch()
236 str = spos + internal_strlen(templ); in TemplateMatch()
237 templ = tpos; in TemplateMatch()