Lines Matching refs:p

265 static size_t count_commas(const char *p, const char *end) {  in count_commas()  argument
267 while ((p = memchr(p, ',', end - p))) { in count_commas()
269 p++; in count_commas()
309 char *p = comma ? comma : endp; in php_mb_parse_encoding_list() local
310 *p = '\0'; in php_mb_parse_encoding_list()
312 while (p1 < p && (*p1 == ' ' || *p1 == '\t')) { in php_mb_parse_encoding_list()
315 p--; in php_mb_parse_encoding_list()
316 while (p > p1 && (*p == ' ' || *p == '\t')) { in php_mb_parse_encoding_list()
317 *p = '\0'; in php_mb_parse_encoding_list()
318 p--; in php_mb_parse_encoding_list()
1557 char *p; in PHP_FUNCTION() local
1604 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
1605 if (sapi_add_header(p, len, 0) != FAILURE) { in PHP_FUNCTION()
1692 const char *p, *last; /* pointer for the string cursor and last string char */ in PHP_FUNCTION() local
1721 p = ZSTR_VAL(str); /* string cursor pointer */ in PHP_FUNCTION()
1743 while (p < last) { /* split cycle work until the cursor has reached the last byte */ in PHP_FUNCTION()
1744 char const *chunk_p = p; /* chunk first byte pointer */ in PHP_FUNCTION()
1748 for (char_count = 0; char_count < split_length && p < last; ++char_count) { in PHP_FUNCTION()
1749 char unsigned const m = mbtab[*(const unsigned char *)p]; /* single character length table */ in PHP_FUNCTION()
1751 p += m; in PHP_FUNCTION()
1753 if (p >= last) chunk_len -= p - last; /* check if chunk is in bounds */ in PHP_FUNCTION()
1796 while (p < last - 1) { /* cycle each byte except last with callback function */ in PHP_FUNCTION()
1797 (*filter->filter_function)(*p++, filter); in PHP_FUNCTION()
1800 (*filter->filter_function)(*p++, filter); /* process last char */ in PHP_FUNCTION()
1814 for (i = 0; i < chunks - 1; p += chunk_len, ++i) { in PHP_FUNCTION()
1815 add_next_index_stringl(return_value, p, chunk_len); in PHP_FUNCTION()
1817 add_next_index_stringl(return_value, p, last - p); in PHP_FUNCTION()
1834 unsigned char *p = (unsigned char*)ZSTR_VAL(string), *e = p + ZSTR_LEN(string); in mb_get_strlen() local
1835 while (p < e) { in mb_get_strlen()
1836 p += mbtab[*p]; in mb_get_strlen()
3153 char *p = optstr, *e = p + optstr_len; in PHP_FUNCTION() local
3156 while (p < e) { in PHP_FUNCTION()
3159 char c = *p++; in PHP_FUNCTION()
3521 unsigned char *p = entity + sizeof(entity); in html_numeric_entity_encode() local
3524 *(--p) = "0123456789ABCDEF"[w & 0xF]; in html_numeric_entity_encode()
3529 *(--p) = "0123456789"[w % 10]; in html_numeric_entity_encode()
3533 while (p < entity + sizeof(entity)) { in html_numeric_entity_encode()
3534 *converted++ = *p++; in html_numeric_entity_encode()
3642 uint32_t *p, *converted; in html_numeric_entity_decode() local
3647 p = wchar_buf; in html_numeric_entity_decode()
3648 while (*p != '&') in html_numeric_entity_decode()
3649 p++; in html_numeric_entity_decode()
3650 if (p == wchar_buf + out_len) { in html_numeric_entity_decode()
3657 memcpy(converted_buf, wchar_buf, (p - wchar_buf) * 4); in html_numeric_entity_decode()
3658 converted = converted_buf + (p - wchar_buf); in html_numeric_entity_decode()
3660 p = wchar_buf; in html_numeric_entity_decode()
3665 ZEND_ASSERT(*p == '&'); in html_numeric_entity_decode()
3666 uint32_t *p2 = p; in html_numeric_entity_decode()
3675 if ((p2 == wchar_buf + out_len) && in_len && (p2 - p) <= HEX_ENTITY_MAXLEN) { in html_numeric_entity_decode()
3679 memmove(wchar_buf, p, (p2 - p) * 4); in html_numeric_entity_decode()
3680 wchar_buf_offset = p2 - p; in html_numeric_entity_decode()
3682 } else if ((p2 - p) < HEX_ENTITY_MINLEN || (p2 - p) > HEX_ENTITY_MAXLEN) { in html_numeric_entity_decode()
3684 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3685 converted += p2 - p; in html_numeric_entity_decode()
3688 uint32_t value = 0, *p3 = p + 3; in html_numeric_entity_decode()
3704 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3705 converted += p2 - p; in html_numeric_entity_decode()
3713 if ((p2 == wchar_buf + out_len) && in_len && (p2 - p) <= DEC_ENTITY_MAXLEN) { in html_numeric_entity_decode()
3716 memmove(wchar_buf, p, (p2 - p) * 4); in html_numeric_entity_decode()
3717 wchar_buf_offset = p2 - p; in html_numeric_entity_decode()
3719 } else if ((p2 - p) < DEC_ENTITY_MINLEN || (p2 - p) > DEC_ENTITY_MAXLEN) { in html_numeric_entity_decode()
3721 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3722 converted += p2 - p; in html_numeric_entity_decode()
3725 uint32_t value = 0, *p3 = p + 2; in html_numeric_entity_decode()
3731 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3732 converted += p2 - p; in html_numeric_entity_decode()
3742 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3743 converted += p2 - p; in html_numeric_entity_decode()
3759 p = p2; in html_numeric_entity_decode()
3763 if (p2 > p) { in html_numeric_entity_decode()
3764 memcpy(converted, p, (p2 - p) * 4); in html_numeric_entity_decode()
3765 converted += p2 - p; in html_numeric_entity_decode()
3766 p = p2; in html_numeric_entity_decode()
3769 if (p < wchar_buf + out_len) in html_numeric_entity_decode()
3995 char *message_buf = NULL, *subject_buf = NULL, *p; in PHP_FUNCTION() local
4059 p = strchr(Z_STRVAL_P(s), ';'); in PHP_FUNCTION()
4061 if (p != NULL) { in PHP_FUNCTION()
4064 ++p; in PHP_FUNCTION()
4065 } while (*p == ' ' || *p == '\t'); in PHP_FUNCTION()
4067 if (*p != '\0') { in PHP_FUNCTION()
4068 if ((param_name = php_strtok_r(p, "= ", &tmp)) != NULL) { in PHP_FUNCTION()
4183 p = ZSTR_VAL(str_headers); in PHP_FUNCTION()
4185 mbfl_memory_device_strncat(&device, p, n); in PHP_FUNCTION()
4186 if (n > 0 && p[n - 1] != '\n') { in PHP_FUNCTION()
4200 p = (char *)mbfl_encoding_preferred_mime_name(tran_cs); in PHP_FUNCTION()
4201 if (p != NULL) { in PHP_FUNCTION()
4203 mbfl_memory_device_strcat(&device, p); in PHP_FUNCTION()
4209 p = (char *)mbfl_encoding_preferred_mime_name(body_enc); in PHP_FUNCTION()
4210 if (p == NULL) { in PHP_FUNCTION()
4211 p = "7bit"; in PHP_FUNCTION()
4213 mbfl_memory_device_strcat(&device, p); in PHP_FUNCTION()
4760 const char *p = s; in php_mb_safe_strrchr() local
4766 while (*p != '\0') { in php_mb_safe_strrchr()
4768 if ((unsigned char)*p == (unsigned char)c) { in php_mb_safe_strrchr()
4769 last = (char *)p; in php_mb_safe_strrchr()
4771 nb = php_mb_mbchar_bytes(p, enc); in php_mb_safe_strrchr()
4777 ++p; in php_mb_safe_strrchr()
4783 if ((unsigned char)*p == (unsigned char)c) { in php_mb_safe_strrchr()
4784 last = (char *)p; in php_mb_safe_strrchr()
4786 nbytes_char = php_mb_mbchar_bytes(p, enc); in php_mb_safe_strrchr()
4790 p += nbytes_char; in php_mb_safe_strrchr()