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