Lines Matching refs:p

1185 #define STRTOK_TABLE(p) BG(strtok_table)[(unsigned char) *p]	  argument
1197 char *p; in PHP_FUNCTION() local
1220 p = BG(strtok_last); /* Where we start to search */ in PHP_FUNCTION()
1223 if (!p || p >= pe) { in PHP_FUNCTION()
1235 while (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1236 if (++p >= pe) { in PHP_FUNCTION()
1246 while (++p < pe) { in PHP_FUNCTION()
1247 if (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1252 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1254 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped, 1); in PHP_FUNCTION()
1255 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1492 char *p; local
1499 p = zend_memrchr(ret, '.', ret_len);
1501 if (p) {
1502 idx = p - ret;
1508 char *p; local
1516 p = zend_memrchr(ret, '.', ret_len);
1518 idx = p ? (p - ret) : ret_len;
1555 register const char *p = s1, *spanp; local
1556 register char c = *p;
1559 for (spanp = s2; p != s1_end && spanp != s2_end;) {
1561 c = *(++p);
1565 return (p - s1);
1573 register const char *p, *spanp; local
1576 for (p = s1;;) {
1579 if (*spanp == c || p == s1_end) {
1580 return p - s1;
1583 c = *++p;
1846 char *p, *e, ord_needle[2]; local
1873 p = haystack + offset;
1881 p = haystack;
1891 while (e >= p) {
1893 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
1900 while (e >= p) {
1902 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
1919 char *p, *e, ord_needle[2]; local
1950 p = haystack + offset;
1953 p = haystack;
1962 while (e >= p) {
1964 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
1983 p = haystack_dup + offset;
1992 p = haystack_dup;
2000 while (e >= p) {
2004 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2054 char *p, *q; local
2077 for (p = src, q = dest; p < (src + srclen - chunklen + 1); ) {
2078 memcpy(q, p, chunklen);
2082 p += chunklen;
2086 memcpy(q, p, restlen);
2500 char *p, *q; local
2516 for (p = old, q = str; p != old_end; p++) {
2517 c = *p;
2846 char *e, *n, *p; local
2854 p = n;
2859 *p++ = *e;
2862 *p = '\0';
2872 char *p, *q; local
2878 for (p = (char *) txt1; p < end1; p++) {
2880 for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
2883 *pos1 = p - txt1;
3327 char *p = str, *e = p + len; local
3328 while ((p = memchr(p, from, (e - p)))) {
3330 p++;
3350 char *p = str, *e = p + len, *s = str; local
3351 while ((p = memchr(p, from, (e - p)))) {
3352 memcpy(target, s, (p - s));
3353 target += p - s;
3356 p++;
3357 s = p;
3405 char *e, *s, *p, *r; local
3413 for (p = new_str; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3425 for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
3484 for (p = haystack; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3485 memcpy(e, p, r - p);
3486 e += r - p;
3494 if (p < end) {
3495 memcpy(e, p, end - p);
3496 e += end - p;
3501 for (p = haystack_dup; (r = php_memnstr(p, needle_dup, needle_len, end)); p = r + needle_len) {
3502 memcpy(e, haystack + (p - haystack_dup), r - p);
3503 e += r - p;
3511 if (p < end) {
3512 memcpy(e, haystack + (p - haystack_dup), end - p);
3513 e += end - p;
4309 char *tbuf, *buf, *p, *tp, *rp, c, lc; local
4319 p = buf;
4338 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4424 if (!br && lc != '\"' && *(p-1) == '?') {
4436 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '-') {
4453 } else if (state == 2 && *(p-1) != '\\') {
4469 if (state && p != buf && (state == 1 || *(p-1) != '\\') && (!in_q || *p == in_q)) {
4473 in_q = *p;
4480 if (state == 1 && *(p-1) == '<') {
4498 if (state == 3 && p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
4507 if (state == 1 && *(p-1) == '<') {
4516 if (state==3 && p > buf+6
4517 && tolower(*(p-1)) == 'p'
4518 && tolower(*(p-2)) == 'y'
4519 && tolower(*(p-3)) == 't'
4520 && tolower(*(p-4)) == 'c'
4521 && tolower(*(p-5)) == 'o'
4522 && tolower(*(p-6)) == 'd') {
4535 if (state == 2 && p > buf+2 && strncasecmp(p-2, "xm", 2) == 0) {
4555 c = *(++p);
4840 char *p, *endp, cmp; local
4851 p = haystack;
4852 endp = p + haystack_len;
4863 p += offset;
4875 endp = p + length;
4881 while ((p = memchr(p, cmp, endp - p))) {
4883 p++;
4886 while ((p = php_memnstr(p, needle, needle_len, endp))) {
4887 p += needle_len;
5080 char *buf, *str, *char_list = NULL, *p, *e, *s, ch[256]; local
5111 p = str;
5115 if ((*p == '\'' && (!char_list || !ch['\''])) || (*p == '-' && (!char_list || !ch['-']))) {
5116 p++;
5123 while (p < e) {
5124 s = p;
5125 …while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' …
5126 p++;
5128 if (p > s) {
5132 buf = estrndup(s, (p-s));
5133 add_next_index_stringl(return_value, buf, (p-s), 0);
5136 buf = estrndup(s, (p-s));
5137 add_index_stringl(return_value, (s - str), buf, p-s, 0);
5144 p++;
5160 char *format, *str, *p, *e; local
5168 p = format;
5169 e = p + format_len;
5170 while ((p = memchr(p, '%', (e - p)))) {
5171 if (*(p + 1) == '%') {
5172 p += 2;
5175 p++;
5202 char *p; local
5222 p = str;
5225 add_next_index_stringl(return_value, p, split_length, 1);
5226 p += split_length;
5229 if (p != (str + str_len)) {
5230 add_next_index_stringl(return_value, p, (str + str_len - p), 1);