Lines Matching refs:s

66 	unsigned char *s = (unsigned char *)str;  in php_replace_controlchars_ex()  local
73 while (s < e) { in php_replace_controlchars_ex()
75 if (iscntrl(*s)) { in php_replace_controlchars_ex()
76 *s='_'; in php_replace_controlchars_ex()
78 s++; in php_replace_controlchars_ex()
101 char const *s, *e, *p, *pp, *ue; in php_url_parse_ex() local
103 s = str; in php_url_parse_ex()
104 ue = s + length; in php_url_parse_ex()
107 if ((e = memchr(s, ':', length)) && (e - s)) { in php_url_parse_ex()
109 p = s; in php_url_parse_ex()
123 ret->scheme = estrndup(s, (e - s)); in php_url_parse_ex()
124 php_replace_controlchars_ex(ret->scheme, (e - s)); in php_url_parse_ex()
145 ret->scheme = estrndup(s, (e-s)); in php_url_parse_ex()
146 php_replace_controlchars_ex(ret->scheme, (e - s)); in php_url_parse_ex()
148 length -= ++e - s; in php_url_parse_ex()
149 s = e; in php_url_parse_ex()
152 ret->scheme = estrndup(s, (e-s)); in php_url_parse_ex()
153 php_replace_controlchars_ex(ret->scheme, (e - s)); in php_url_parse_ex()
156 s = e + 3; in php_url_parse_ex()
163 s = e + 4; in php_url_parse_ex()
170 s = e + 1; in php_url_parse_ex()
173 length -= ++e - s; in php_url_parse_ex()
174 s = e; in php_url_parse_ex()
195 if (*s == '/' && *(s + 1) == '/') { /* relative-scheme URL */ in php_url_parse_ex()
196 s += 2; in php_url_parse_ex()
207 } else if (*s == '/' && *(s + 1) == '/') { /* relative-scheme URL */ in php_url_parse_ex()
208 s += 2; in php_url_parse_ex()
212 } else if (*s == '/' && *(s + 1) == '/') { /* relative-scheme URL */ in php_url_parse_ex()
213 s += 2; in php_url_parse_ex()
216 ue = s + length; in php_url_parse_ex()
222 if (!(p = memchr(s, '/', (ue - s)))) { in php_url_parse_ex()
225 query = memchr(s, '?', (ue - s)); in php_url_parse_ex()
226 fragment = memchr(s, '#', (ue - s)); in php_url_parse_ex()
244 if ((p = zend_memrchr(s, '@', (e-s)))) { in php_url_parse_ex()
245 if ((pp = memchr(s, ':', (p-s)))) { in php_url_parse_ex()
246 ret->user = estrndup(s, (pp-s)); in php_url_parse_ex()
247 php_replace_controlchars_ex(ret->user, (pp - s)); in php_url_parse_ex()
253 ret->user = estrndup(s, (p-s)); in php_url_parse_ex()
254 php_replace_controlchars_ex(ret->user, (p-s)); in php_url_parse_ex()
257 s = p + 1; in php_url_parse_ex()
261 if (*s == '[' && *(e-1) == ']') { in php_url_parse_ex()
265 p = s; in php_url_parse_ex()
269 for(p = e; p >= s && *p != ':'; p--); in php_url_parse_ex()
272 if (p >= s && *p == ':') { in php_url_parse_ex()
303 if ((p-s) < 1) { in php_url_parse_ex()
311 ret->host = estrndup(s, (p-s)); in php_url_parse_ex()
312 php_replace_controlchars_ex(ret->host, (p - s)); in php_url_parse_ex()
318 s = e; in php_url_parse_ex()
322 if ((p = memchr(s, '?', (ue - s)))) { in php_url_parse_ex()
323 pp = memchr(s, '#', (ue - s)); in php_url_parse_ex()
326 if (pp - s) { in php_url_parse_ex()
327 ret->path = estrndup(s, (pp-s)); in php_url_parse_ex()
328 php_replace_controlchars_ex(ret->path, (pp - s)); in php_url_parse_ex()
334 if (p - s) { in php_url_parse_ex()
335 ret->path = estrndup(s, (p-s)); in php_url_parse_ex()
336 php_replace_controlchars_ex(ret->path, (p - s)); in php_url_parse_ex()
350 } else if ((p = memchr(s, '#', (ue - s)))) { in php_url_parse_ex()
351 if (p - s) { in php_url_parse_ex()
352 ret->path = estrndup(s, (p-s)); in php_url_parse_ex()
353 php_replace_controlchars_ex(ret->path, (p - s)); in php_url_parse_ex()
364 ret->path = estrndup(s, (ue-s)); in php_url_parse_ex()
365 php_replace_controlchars_ex(ret->path, (ue - s)); in php_url_parse_ex()
451 static int php_htoi(char *s) in php_htoi() argument
456 c = ((unsigned char *)s)[0]; in php_htoi()
461 c = ((unsigned char *)s)[1]; in php_htoi()
487 PHPAPI char *php_url_encode(char const *s, int len, int *new_length) in php_url_encode() argument
493 from = (unsigned char *)s; in php_url_encode()
494 end = (unsigned char *)s + len; in php_url_encode()
600 PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length) argument
607 str[y] = (unsigned char) s[x];
614 str[y++] = hexchars[(unsigned char) s[x] >> 4];
615 str[y] = hexchars[(unsigned char) s[x] & 15];
619 str[y++] = hexchars[os_toascii[(unsigned char) s[x]] >> 4];
620 str[y] = hexchars[os_toascii[(unsigned char) s[x]] & 15];
752 char *s, *p; local
757 s = p + 1;
758 while (isspace((int)*(unsigned char *)s)) {
759 s++;
763 …_ex(return_value, Z_STRVAL_PP(hdr), (p - Z_STRVAL_PP(hdr) + 1), s, (Z_STRLEN_PP(hdr) - (s - Z_STRV…
766 add_next_index_stringl(*prev_val, s, (Z_STRLEN_PP(hdr) - (s - Z_STRVAL_PP(hdr))), 1);