• Home
  • Raw
  • Download

Lines Matching refs:pattern

39   URLPattern *pat = &glob->pattern[glob->size];  in glob_fixed()
87 char *pattern = *patternp; in glob_set() local
88 char *opattern = pattern; in glob_set()
91 pat = &glob->pattern[glob->size]; in glob_set()
100 switch (*pattern) { in glob_set()
109 if(opattern == pattern) in glob_set()
141 if(*pattern == '}') { in glob_set()
142 pattern++; /* pass the closing brace */ in glob_set()
148 ++pattern; in glob_set()
156 if(pattern[1]) { in glob_set()
157 ++pattern; in glob_set()
162 *buf++ = *pattern++; /* copy character to set element */ in glob_set()
167 *patternp = pattern; /* return with the new position */ in glob_set()
183 char *pattern = *patternp; in glob_range() local
186 pat = &glob->pattern[glob->size]; in glob_range()
189 if(ISALPHA(*pattern)) { in glob_range()
198 rc = sscanf(pattern, "%c-%c%c", &min_c, &max_c, &end_c); in glob_range()
204 step = strtoul(&pattern[4], &endp, 10); in glob_range()
205 if(errno || &pattern[4] == endp || *endp != ']') in glob_range()
208 pattern = endp + 1; in glob_range()
215 pattern += 4; in glob_range()
218 *posp += (pattern - *patternp); in glob_range()
237 else if(ISDIGIT(*pattern)) { in glob_range()
247 if(*pattern == '0') { in glob_range()
249 c = pattern; in glob_range()
258 min_n = strtoul(pattern, &endp, 10); in glob_range()
259 if(errno || (endp == pattern)) in glob_range()
265 pattern = endp + 1; in glob_range()
266 while(*pattern && ISBLANK(*pattern)) in glob_range()
267 pattern++; in glob_range()
268 if(!ISDIGIT(*pattern)) { in glob_range()
273 max_n = strtoul(pattern, &endp, 10); in glob_range()
278 pattern = endp + 1; in glob_range()
280 step_n = strtoul(pattern, &endp, 10); in glob_range()
288 pattern = endp + 1; in glob_range()
296 *posp += (pattern - *patternp); in glob_range()
318 *patternp = pattern; in glob_range()
352 static CURLcode glob_parse(URLGlob *glob, char *pattern, in glob_parse() argument
363 while(*pattern && !res) { in glob_parse()
366 while(*pattern && *pattern != '{') { in glob_parse()
367 if(*pattern == '[') { in glob_parse()
370 if(!peek_ipv6(pattern, &skip) && (pattern[1] == ']')) in glob_parse()
373 memcpy(buf, pattern, skip); in glob_parse()
375 pattern += skip; in glob_parse()
381 if(*pattern == '}' || *pattern == ']') in glob_parse()
386 if(*pattern == '\\' && in glob_parse()
387 (*(pattern + 1) == '{' || *(pattern + 1) == '[' || in glob_parse()
388 *(pattern + 1) == '}' || *(pattern + 1) == ']') ) { in glob_parse()
391 ++pattern; in glob_parse()
394 *buf++ = *pattern++; /* copy character to literal */ in glob_parse()
404 switch (*pattern) { in glob_parse()
410 pattern++; in glob_parse()
412 res = glob_set(glob, &pattern, &pos, amount, globindex++); in glob_parse()
417 pattern++; in glob_parse()
419 res = glob_range(glob, &pattern, &pos, amount, globindex++); in glob_parse()
492 if((glob->pattern[i].type == UPTSet) && in glob_cleanup()
493 (glob->pattern[i].content.Set.elements)) { in glob_cleanup()
494 for(elem = glob->pattern[i].content.Set.size - 1; in glob_cleanup()
497 Curl_safefree(glob->pattern[i].content.Set.elements[elem]); in glob_cleanup()
499 Curl_safefree(glob->pattern[i].content.Set.elements); in glob_cleanup()
525 pat = &glob->pattern[glob->size - 1 - i]; in glob_next_url()
562 pat = &glob->pattern[i]; in glob_next_url()
633 if(glob->pattern[i].globindex == (int)num) { in glob_match_url()
634 pat = &glob->pattern[i]; in glob_match_url()