Lines Matching refs:p

546 			char p = *what;  in php_trim_int()  local
549 if (*start == p) { in php_trim_int()
558 if (*(end-1) == p) { in php_trim_int()
1055 #define STRTOK_TABLE(p) BG(strtok_table)[(unsigned char) *p] argument
1063 char *p; in PHP_FUNCTION() local
1090 p = BG(strtok_last); /* Where we start to search */ in PHP_FUNCTION()
1092 if (p >= pe) { in PHP_FUNCTION()
1105 while (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1106 if (++p >= pe) { in PHP_FUNCTION()
1114 while (++p < pe) { in PHP_FUNCTION()
1115 if (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1120 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1122 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1123 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1543 const char *p; local
1550 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1552 if (p) {
1553 idx = p - ZSTR_VAL(ret);
1559 const char *p; local
1567 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1569 idx = p ? (p - ZSTR_VAL(ret)) : (ptrdiff_t)ZSTR_LEN(ret);
1602 const char *p = s1, *spanp; local
1603 char c = *p;
1606 for (spanp = s2; p != s1_end && spanp != s2_end;) {
1608 c = *(++p);
1612 return (p - s1);
1619 const char *p, *spanp; local
1622 for (p = s1;;) {
1625 if (*spanp == c || p == s1_end) {
1626 return p - s1;
1629 c = *++p;
1810 const char *p, *e, *found; local
1824 p = ZSTR_VAL(haystack) + (size_t)offset;
1832 p = ZSTR_VAL(haystack);
1840 found = zend_memnrstr(p, ZSTR_VAL(needle), ZSTR_LEN(needle), e);
1855 const char *p, *e, *found; local
1874 p = ZSTR_VAL(haystack) + (size_t)offset;
1877 p = ZSTR_VAL(haystack);
1885 while (e >= p) {
1887 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
1901 p = ZSTR_VAL(haystack_dup) + offset;
1910 p = ZSTR_VAL(haystack_dup);
1919 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
1962 const char *p; local
1977 for (p = src, q = ZSTR_VAL(dest); p < (src + srclen - chunklen + 1); ) {
1978 memcpy(q, p, chunklen);
1982 p += chunklen;
1986 memcpy(q, p, restlen);
2380 const char *old_end, *p; local
2397 for (p = ZSTR_VAL(old), q = ZSTR_VAL(str); p != old_end; p++) {
2398 c = *p;
2818 static zend_always_inline zend_long count_chars(const char *p, zend_long length, char ch) argument
2828 __m128i src = _mm_loadu_si128((__m128i*)(p));
2845 p += sizeof(__m128i);
2849 endp = p + length;
2850 while (p != endp) {
2851 count += (*p == ch);
2852 p++;
2855 endp = p + length;
2856 while ((p = memchr(p, ch, endp-p))) {
2858 p++;
2903 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str), *s = ZSTR_VAL(str); local
2905 while ((p = memchr(p, from, (e - p)))) {
2906 memcpy(target, s, (p - s));
2907 target += p - s;
2910 p++;
2911 s = p;
2943 const char *p, *r; local
2949 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
2982 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
2983 memcpy(e, p, r - p);
2984 e += r - p;
2990 if (p < end) {
2991 memcpy(e, p, end - p);
2992 e += end - p;
3017 const char *p, *r; local
3023 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3064 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3065 memcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), r - p);
3066 e += r - p;
3072 if (p < end) {
3073 memcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), end - p);
3074 e += end - p;
3109 const char *s, *p; local
3115 …for (p = ZSTR_VAL(new_str); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_l…
3147 for (p = haystack; (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3148 memcpy(e, p, r - p);
3149 e += r - p;
3154 if (p < end) {
3155 memcpy(e, p, end - p);
3156 e += end - p;
3258 char *p; local
3266 p = ZSTR_VAL(n);
3280 _mm_storeu_si128((__m128i *)p, _mm_shuffle_epi8(str, map));
3281 p += 16;
3293 vst1q_u8((uint8_t *)p, ext);
3294 p += 16;
3306 vst1q_u8((uint8_t *)p, ext);
3307 p += 16;
3313 *p++ = *e--;
3316 *p = '\0';
3325 const char *p, *q; local
3332 for (p = (char *) txt1; p < end1; p++) {
3334 for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
3338 *pos1 = p - txt1;
4802 const char *buf, *p, *end; local
4812 p = buf;
4825 if (p >= end) {
4828 c = *p;
4836 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4850 p++;
4868 p++;
4872 if (p >= end) {
4875 c = *p;
4883 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4898 if (is_xml && p >= buf + 1 && *(p -1) == '-') {
4916 p++;
4920 if (p != buf && (!in_q || *p == in_q)) {
4924 in_q = *p;
4930 if (p >= buf + 1 && *(p-1) == '<') {
4933 p++;
4940 if (p >= buf + 1 && *(p-1) == '<') {
4943 p++;
4961 p++;
4965 if (p >= end) {
4968 c = *p;
4991 if (!br && p >= buf + 1 && lc != '\"' && *(p-1) == '?') {
4994 p++;
5000 if (p >= buf + 1 && *(p-1) != '\\') {
5006 if (p != buf && (!in_q || *p == in_q)) {
5010 in_q = *p;
5020 if (state == 2 && p > buf+4
5021 && (*(p-1) == 'm' || *(p-1) == 'M')
5022 && (*(p-2) == 'x' || *(p-2) == 'X')
5023 && *(p-3) == '?'
5024 && *(p-4) == '<') {
5026 p++;
5033 p++;
5037 if (p >= end) {
5040 c = *p;
5052 p++;
5056 if (p != buf && *(p-1) != '\\' && (!in_q || *p == in_q)) {
5060 in_q = *p;
5065 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
5067 p++;
5074 if (p > buf+6
5075 && (*(p-1) == 'p' || *(p-1) == 'P')
5076 && (*(p-2) == 'y' || *(p-2) == 'Y')
5077 && (*(p-3) == 't' || *(p-3) == 'T')
5078 && (*(p-4) == 'c' || *(p-4) == 'C')
5079 && (*(p-5) == 'o' || *(p-5) == 'O')
5080 && (*(p-6) == 'd' || *(p-6) == 'D')) {
5082 p++;
5089 p++;
5093 while (p < end) {
5094 c = *p;
5096 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '-') {
5099 p++;
5103 p++;
5368 const char *p, *endp; local
5383 p = haystack;
5393 p += offset;
5410 count = count_chars(p, length, needle[0]);
5413 endp = p + length;
5414 while ((p = (char*)php_memnstr(p, needle, needle_len, endp))) {
5415 p += needle_len;
5529 const char *p, *e; local
5538 p = ZSTR_VAL(str);
5539 e = p + ZSTR_LEN(str);
5543 if (e - p > 15) {
5559 in = _mm_loadu_si128((__m128i *)p);
5596 p += 16;
5598 } while (e - p > 15);
5602 while (p < e) {
5603 if (*p >= 'a' && *p <= 'z') {
5604 *target++ = 'a' + (((*p++ - 'a') + 13) % 26);
5605 } else if (*p >= 'A' && *p <= 'Z') {
5606 *target++ = 'A' + (((*p++ - 'A') + 13) % 26);
5608 *target++ = *p++;
5697 const char *p, *e, *s; local
5731 p = ZSTR_VAL(str);
5735 if ((*p == '\'' && (!char_list || !ch['\''])) || (*p == '-' && (!char_list || !ch['-']))) {
5736 p++;
5743 while (p < e) {
5744 s = p;
5745 …while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' …
5746 p++;
5748 if (p > s) {
5752 add_next_index_stringl(return_value, s, p - s);
5755 add_index_stringl(return_value, (s - ZSTR_VAL(str)), s, p - s);
5762 p++;
5777 const char *p; local
5804 p = ZSTR_VAL(str);
5807 add_next_index_stringl(return_value, p, split_length);
5808 p += split_length;
5811 if (p != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
5812 add_next_index_stringl(return_value, p, (ZSTR_VAL(str) + ZSTR_LEN(str) - p));