Lines Matching refs:ret

118 	php_url *ret = ecalloc(1, sizeof(php_url));  in php_url_parse_ex2()  local
146 ret->scheme = zend_string_init(s, (e - s), 0); in php_url_parse_ex2()
147 php_replace_controlchars_ex(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
148 return ret; in php_url_parse_ex2()
168 ret->scheme = zend_string_init(s, (e-s), 0); in php_url_parse_ex2()
169 php_replace_controlchars_ex(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
174 ret->scheme = zend_string_init(s, (e-s), 0); in php_url_parse_ex2()
175 php_replace_controlchars_ex(ZSTR_VAL(ret->scheme), ZSTR_LEN(ret->scheme)); in php_url_parse_ex2()
179 if (zend_string_equals_literal_ci(ret->scheme, "file")) { in php_url_parse_ex2()
212 ret->port = (unsigned short) port; in php_url_parse_ex2()
217 php_url_free(ret); in php_url_parse_ex2()
221 php_url_free(ret); in php_url_parse_ex2()
240 ret->user = zend_string_init(s, (pp-s), 0); in php_url_parse_ex2()
241 php_replace_controlchars_ex(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2()
244 ret->pass = zend_string_init(pp, (p-pp), 0); in php_url_parse_ex2()
245 php_replace_controlchars_ex(ZSTR_VAL(ret->pass), ZSTR_LEN(ret->pass)); in php_url_parse_ex2()
247 ret->user = zend_string_init(s, (p-s), 0); in php_url_parse_ex2()
248 php_replace_controlchars_ex(ZSTR_VAL(ret->user), ZSTR_LEN(ret->user)); in php_url_parse_ex2()
265 if (!ret->port) { in php_url_parse_ex2()
268 php_url_free(ret); in php_url_parse_ex2()
278 ret->port = (unsigned short)port; in php_url_parse_ex2()
280 php_url_free(ret); in php_url_parse_ex2()
292 php_url_free(ret); in php_url_parse_ex2()
296 ret->host = zend_string_init(s, (p-s), 0); in php_url_parse_ex2()
297 php_replace_controlchars_ex(ZSTR_VAL(ret->host), ZSTR_LEN(ret->host)); in php_url_parse_ex2()
300 return ret; in php_url_parse_ex2()
312 ret->fragment = zend_string_init(p, (e - p), 0); in php_url_parse_ex2()
313 php_replace_controlchars_ex(ZSTR_VAL(ret->fragment), ZSTR_LEN(ret->fragment)); in php_url_parse_ex2()
322 ret->query = zend_string_init(p, (e - p), 0); in php_url_parse_ex2()
323 php_replace_controlchars_ex(ZSTR_VAL(ret->query), ZSTR_LEN(ret->query)); in php_url_parse_ex2()
329 ret->path = zend_string_init(s, (e - s), 0); in php_url_parse_ex2()
330 php_replace_controlchars_ex(ZSTR_VAL(ret->path), ZSTR_LEN(ret->path)); in php_url_parse_ex2()
333 return ret; in php_url_parse_ex2()
586 char *ret; local
589 ret = ZSTR_VAL(str);
593 ret[y] = c;
599 ret[y++] = '%';
600 ret[y++] = hexchars[(unsigned char) c >> 4];
601 ret[y] = hexchars[(unsigned char) c & 15];
604 ret[y++] = '%';
605 ret[y++] = hexchars[os_toascii[(unsigned char) c] >> 4];
606 ret[y] = hexchars[os_toascii[(unsigned char) c] & 15];
610 ret[y] = '\0';