Lines Matching refs:p

1272 #define STRTOK_TABLE(p) BG(strtok_table)[(unsigned char) *p]  argument
1284 char *p; in PHP_FUNCTION() local
1307 p = BG(strtok_last); /* Where we start to search */ in PHP_FUNCTION()
1310 if (!p || p >= pe) { in PHP_FUNCTION()
1322 while (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1323 if (++p >= pe) { in PHP_FUNCTION()
1333 while (++p < pe) { in PHP_FUNCTION()
1334 if (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1339 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1341 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped, 1); in PHP_FUNCTION()
1342 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1592 const char *p; local
1599 p = zend_memrchr(ret, '.', ret_len);
1601 if (p) {
1602 idx = p - ret;
1608 const char *p; local
1616 p = zend_memrchr(ret, '.', ret_len);
1618 idx = p ? (p - ret) : ret_len;
1655 register const char *p = s1, *spanp; local
1656 register char c = *p;
1659 for (spanp = s2; p != s1_end && spanp != s2_end;) {
1661 c = *(++p);
1665 return (p - s1);
1673 register const char *p, *spanp; local
1676 for (p = s1;;) {
1679 if (*spanp == c || p == s1_end) {
1680 return p - s1;
1683 c = *++p;
1946 char *p, *e, ord_needle[2]; local
1973 p = haystack + offset;
1981 p = haystack;
1991 while (e >= p) {
1993 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2000 while (e >= p) {
2002 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2019 char *p, *e, ord_needle[2]; local
2050 p = haystack + offset;
2053 p = haystack;
2062 while (e >= p) {
2064 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2083 p = haystack_dup + offset;
2092 p = haystack_dup;
2100 while (e >= p) {
2104 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2154 char *p, *q; local
2177 for (p = src, q = dest; p < (src + srclen - chunklen + 1); ) {
2178 memcpy(q, p, chunklen);
2182 p += chunklen;
2186 memcpy(q, p, restlen);
2616 char *p, *q; local
2633 for (p = old, q = str; p != old_end; p++) {
2634 c = *p;
3196 char *e, *n, *p; local
3204 p = n;
3209 *p++ = *e;
3212 *p = '\0';
3222 char *p, *q; local
3228 for (p = (char *) txt1; p < end1; p++) {
3230 for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
3233 *pos1 = p - txt1;
3629 char *p = str, *e = p + len; local
3630 while ((p = memchr(p, from, (e - p)))) {
3632 p++;
3652 char *p = str, *e = p + len, *s = str; local
3653 while ((p = memchr(p, from, (e - p)))) {
3654 memcpy(target, s, (p - s));
3655 target += p - s;
3658 p++;
3659 s = p;
3707 char *e, *s, *p, *r; local
3715 for (p = new_str; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3727 for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
3786 for (p = haystack; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3787 memcpy(e, p, r - p);
3788 e += r - p;
3796 if (p < end) {
3797 memcpy(e, p, end - p);
3798 e += end - p;
3803 for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
3804 memcpy(e, haystack + (p - haystack_dup), r - p);
3805 e += r - p;
3813 if (p < end) {
3814 memcpy(e, haystack + (p - haystack_dup), end - p);
3815 e += end - p;
4613 char *tbuf, *buf, *p, *tp, *rp, c, lc; local
4624 p = buf;
4648 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4734 if (!br && lc != '\"' && *(p-1) == '?') {
4746 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '-') {
4763 } else if (state == 2 && *(p-1) != '\\') {
4779 if (state && p != buf && (state == 1 || *(p-1) != '\\') && (!in_q || *p == in_q)) {
4783 in_q = *p;
4790 if (state == 1 && *(p-1) == '<') {
4808 if (state == 3 && p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
4817 if (state == 1 && *(p-1) == '<') {
4826 if (state==3 && p > buf+6
4827 && tolower(*(p-1)) == 'p'
4828 && tolower(*(p-2)) == 'y'
4829 && tolower(*(p-3)) == 't'
4830 && tolower(*(p-4)) == 'c'
4831 && tolower(*(p-5)) == 'o'
4832 && tolower(*(p-6)) == 'd') {
4845 if (state == 2 && p > buf+2 && strncasecmp(p-2, "xm", 2) == 0) {
4865 c = *(++p);
5201 char *p, *endp, cmp; local
5212 p = haystack;
5213 endp = p + haystack_len;
5224 p += offset;
5236 endp = p + length;
5242 while ((p = memchr(p, cmp, endp - p))) {
5244 p++;
5247 while ((p = php_memnstr(p, needle, needle_len, endp))) {
5248 p += needle_len;
5441 char *buf, *str, *char_list = NULL, *p, *e, *s, ch[256]; local
5472 p = str;
5476 if ((*p == '\'' && (!char_list || !ch['\''])) || (*p == '-' && (!char_list || !ch['-']))) {
5477 p++;
5484 while (p < e) {
5485 s = p;
5486 …while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' …
5487 p++;
5489 if (p > s) {
5493 buf = estrndup(s, (p-s));
5494 add_next_index_stringl(return_value, buf, (p-s), 0);
5497 buf = estrndup(s, (p-s));
5498 add_index_stringl(return_value, (s - str), buf, p-s, 0);
5505 p++;
5521 char *format, *str, *p, *e; local
5529 p = format;
5530 e = p + format_len;
5531 while ((p = memchr(p, '%', (e - p)))) {
5532 if (*(p + 1) == '%') {
5533 p += 2;
5536 p++;
5563 char *p; local
5583 p = str;
5586 add_next_index_stringl(return_value, p, split_length, 1);
5587 p += split_length;
5590 if (p != (str + str_len)) {
5591 add_next_index_stringl(return_value, p, (str + str_len - p), 1);