Lines Matching full:content

43   pat->content.Set.size = 1;  in glob_fixed()
44 pat->content.Set.ptr_s = 0; in glob_fixed()
47 pat->content.Set.elements = malloc(sizeof(char*)); in glob_fixed()
49 if(!pat->content.Set.elements) in glob_fixed()
52 pat->content.Set.elements[0] = malloc(len+1); in glob_fixed()
53 if(!pat->content.Set.elements[0]) in glob_fixed()
56 memcpy(pat->content.Set.elements[0], fixed, len); in glob_fixed()
57 pat->content.Set.elements[0][len] = 0; in glob_fixed()
92 pat->content.Set.size = 0; in glob_set()
93 pat->content.Set.ptr_s = 0; in glob_set()
94 pat->content.Set.elements = NULL; in glob_set()
112 if(multiply(amount, pat->content.Set.size+1)) in glob_set()
119 if(pat->content.Set.elements) { in glob_set()
120 char **new_arr = realloc(pat->content.Set.elements, in glob_set()
121 (pat->content.Set.size + 1) * sizeof(char*)); in glob_set()
125 pat->content.Set.elements = new_arr; in glob_set()
128 pat->content.Set.elements = malloc(sizeof(char*)); in glob_set()
130 if(!pat->content.Set.elements) in glob_set()
133 pat->content.Set.elements[pat->content.Set.size] = in glob_set()
135 if(!pat->content.Set.elements[pat->content.Set.size]) in glob_set()
137 ++pat->content.Set.size; in glob_set()
222 pat->content.CharRange.step = step; in glob_range()
223 pat->content.CharRange.ptr_c = pat->content.CharRange.min_c = min_c; in glob_range()
224 pat->content.CharRange.max_c = max_c; in glob_range()
226 if(multiply(amount, (pat->content.CharRange.max_c - in glob_range()
227 pat->content.CharRange.min_c) / in glob_range()
228 pat->content.CharRange.step + 1) ) in glob_range()
239 pat->content.NumRange.padlength = 0; in glob_range()
246 ++pat->content.NumRange.padlength; /* padding length is set for all in glob_range()
288 pat->content.NumRange.ptr_n = pat->content.NumRange.min_n = min_n; in glob_range()
289 pat->content.NumRange.max_n = max_n; in glob_range()
290 pat->content.NumRange.step = step_n; in glob_range()
292 if(multiply(amount, (pat->content.NumRange.max_n - in glob_range()
293 pat->content.NumRange.min_n) / in glob_range()
294 pat->content.NumRange.step + 1) ) in glob_range()
471 (glob->pattern[i].content.Set.elements)) { in glob_cleanup()
472 for(elem = glob->pattern[i].content.Set.size - 1; in glob_cleanup()
475 Curl_safefree(glob->pattern[i].content.Set.elements[elem]); in glob_cleanup()
477 Curl_safefree(glob->pattern[i].content.Set.elements); in glob_cleanup()
506 if((pat->content.Set.elements) && in glob_next_url()
507 (++pat->content.Set.ptr_s == pat->content.Set.size)) { in glob_next_url()
508 pat->content.Set.ptr_s = 0; in glob_next_url()
513 pat->content.CharRange.ptr_c = in glob_next_url()
514 (char)(pat->content.CharRange.step + in glob_next_url()
515 (int)((unsigned char)pat->content.CharRange.ptr_c)); in glob_next_url()
516 if(pat->content.CharRange.ptr_c > pat->content.CharRange.max_c) { in glob_next_url()
517 pat->content.CharRange.ptr_c = pat->content.CharRange.min_c; in glob_next_url()
522 pat->content.NumRange.ptr_n += pat->content.NumRange.step; in glob_next_url()
523 if(pat->content.NumRange.ptr_n > pat->content.NumRange.max_n) { in glob_next_url()
524 pat->content.NumRange.ptr_n = pat->content.NumRange.min_n; in glob_next_url()
543 if(pat->content.Set.elements) { in glob_next_url()
544 len = strlen(pat->content.Set.elements[pat->content.Set.ptr_s]); in glob_next_url()
546 pat->content.Set.elements[pat->content.Set.ptr_s]); in glob_next_url()
552 *buf++ = pat->content.CharRange.ptr_c; in glob_next_url()
556 pat->content.NumRange.padlength, in glob_next_url()
557 pat->content.NumRange.ptr_n); in glob_next_url()
617 if(pat->content.Set.elements) { in glob_match_url()
618 appendthis = pat->content.Set.elements[pat->content.Set.ptr_s]; in glob_match_url()
620 strlen(pat->content.Set.elements[pat->content.Set.ptr_s]); in glob_match_url()
624 numbuf[0] = pat->content.CharRange.ptr_c; in glob_match_url()
631 pat->content.NumRange.padlength, in glob_match_url()
632 pat->content.NumRange.ptr_n); in glob_match_url()