• Home
  • Raw
  • Download

Lines Matching refs:pattern

42   struct URLPattern *pat = &glob->pattern[glob->size];  in glob_fixed()
90 char *pattern = *patternp; in glob_set() local
91 char *opattern = pattern; in glob_set()
94 pat = &glob->pattern[glob->size]; in glob_set()
103 switch(*pattern) { in glob_set()
112 if(opattern == pattern) in glob_set()
145 if(*pattern == '}') { in glob_set()
146 pattern++; /* pass the closing brace */ in glob_set()
152 ++pattern; in glob_set()
160 if(pattern[1]) { in glob_set()
161 ++pattern; in glob_set()
166 *buf++ = *pattern++; /* copy character to set element */ in glob_set()
171 *patternp = pattern; /* return with the new position */ in glob_set()
187 char *pattern = *patternp; in glob_range() local
190 pat = &glob->pattern[glob->size]; in glob_range()
193 if(ISALPHA(*pattern)) { in glob_range()
202 rc = sscanf(pattern, "%c-%c%c", &min_c, &max_c, &end_c); in glob_range()
208 step = strtoul(&pattern[4], &endp, 10); in glob_range()
209 if(errno || &pattern[4] == endp || *endp != ']') in glob_range()
212 pattern = endp + 1; in glob_range()
219 pattern += 4; in glob_range()
222 *posp += (pattern - *patternp); in glob_range()
241 else if(ISDIGIT(*pattern)) { in glob_range()
251 if(*pattern == '0') { in glob_range()
253 c = pattern; in glob_range()
262 min_n = strtoul(pattern, &endp, 10); in glob_range()
263 if(errno || (endp == pattern)) in glob_range()
269 pattern = endp + 1; in glob_range()
270 while(*pattern && ISBLANK(*pattern)) in glob_range()
271 pattern++; in glob_range()
272 if(!ISDIGIT(*pattern)) { in glob_range()
277 max_n = strtoul(pattern, &endp, 10); in glob_range()
282 pattern = endp + 1; in glob_range()
284 step_n = strtoul(pattern, &endp, 10); in glob_range()
292 pattern = endp + 1; in glob_range()
300 *posp += (pattern - *patternp); in glob_range()
322 *patternp = pattern; in glob_range()
363 static CURLcode glob_parse(struct URLGlob *glob, char *pattern, in glob_parse() argument
374 while(*pattern && !res) { in glob_parse()
377 while(*pattern && *pattern != '{') { in glob_parse()
378 if(*pattern == '[') { in glob_parse()
381 if(!peek_ipv6(pattern, &skip) && (pattern[1] == ']')) in glob_parse()
384 memcpy(buf, pattern, skip); in glob_parse()
386 pattern += skip; in glob_parse()
392 if(*pattern == '}' || *pattern == ']') in glob_parse()
397 if(*pattern == '\\' && in glob_parse()
398 (*(pattern + 1) == '{' || *(pattern + 1) == '[' || in glob_parse()
399 *(pattern + 1) == '}' || *(pattern + 1) == ']') ) { in glob_parse()
402 ++pattern; in glob_parse()
405 *buf++ = *pattern++; /* copy character to literal */ in glob_parse()
415 switch(*pattern) { in glob_parse()
421 pattern++; in glob_parse()
423 res = glob_set(glob, &pattern, &pos, amount, globindex++); in glob_parse()
428 pattern++; in glob_parse()
430 res = glob_range(glob, &pattern, &pos, amount, globindex++); in glob_parse()
506 if((glob->pattern[i].type == UPTSet) && in glob_cleanup()
507 (glob->pattern[i].content.Set.elements)) { in glob_cleanup()
508 for(elem = glob->pattern[i].content.Set.size - 1; in glob_cleanup()
511 Curl_safefree(glob->pattern[i].content.Set.elements[elem]); in glob_cleanup()
513 Curl_safefree(glob->pattern[i].content.Set.elements); in glob_cleanup()
539 pat = &glob->pattern[glob->size - 1 - i]; in glob_next_url()
575 pat = &glob->pattern[i]; in glob_next_url()
641 if(glob->pattern[i].globindex == (int)num) { in glob_match_url()
642 pat = &glob->pattern[i]; in glob_match_url()