Lines Matching refs:ptr

75 	char *ptr = s->path_pieces_raw->ptr,*pos;  in mod_evhost_parse_pattern()  local
79 for(pos=ptr;*ptr;ptr++) { in mod_evhost_parse_pattern()
80 if(*ptr == '%') { in mod_evhost_parse_pattern()
85 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern()
86 pos = ptr + 2; in mod_evhost_parse_pattern()
88 buffer_copy_string_len(s->path_pieces[s->len+1],ptr++,2); in mod_evhost_parse_pattern()
98 buffer_copy_string_len(s->path_pieces[s->len],pos,ptr-pos); in mod_evhost_parse_pattern()
168 register char *ptr = con->uri.authority->ptr + con->uri.authority->used - 1; in mod_evhost_parse_host() local
169 char *colon = ptr; /* needed to filter out the colon (if exists) */ in mod_evhost_parse_host()
175 for(;ptr > con->uri.authority->ptr;ptr--) { in mod_evhost_parse_host()
176 if(*ptr == '.') { in mod_evhost_parse_host()
179 } else if(*ptr == ':') { in mod_evhost_parse_host()
180 colon = ptr; in mod_evhost_parse_host()
189 if (*ptr == '.') ptr++; in mod_evhost_parse_host()
190 buffer_copy_string_len(ds->value, ptr, colon-ptr); in mod_evhost_parse_host()
196 if (colon != con->uri.authority->ptr) { in mod_evhost_parse_host()
197 for(ptr = colon - 1, i = 1; ptr > con->uri.authority->ptr; ptr--) { in mod_evhost_parse_host()
198 if(*ptr == '.') { in mod_evhost_parse_host()
199 if (ptr != colon - 1) { in mod_evhost_parse_host()
204 buffer_copy_string_len(ds->value,ptr+1,colon-ptr-1); in mod_evhost_parse_host()
208 colon = ptr; in mod_evhost_parse_host()
213 if (colon != ptr) { in mod_evhost_parse_host()
217 buffer_copy_string_len(ds->value,ptr,colon-ptr); in mod_evhost_parse_host()
263 register char *ptr; in mod_evhost_uri_handler() local
285 ptr = p->conf.path_pieces[i]->ptr; in mod_evhost_uri_handler()
286 if (*ptr == '%') { in mod_evhost_uri_handler()
289 if (*(ptr+1) == '%') { in mod_evhost_uri_handler()
292 } else if (*(ptr+1) == '_' ) { in mod_evhost_uri_handler()
294 char *colon = strchr(con->uri.authority->ptr, ':'); in mod_evhost_uri_handler()
300 …buffer_append_string_len(p->tmp_buf, con->uri.authority->ptr, colon - con->uri.authority->ptr); /*… in mod_evhost_uri_handler()
302 …lse if (NULL != (ds = (data_string *)array_get_element(parsed_host,p->conf.path_pieces[i]->ptr))) { in mod_evhost_uri_handler()