Lines Matching refs:p

714 			char p = *what;  in php_trim_int()  local
717 if (*start == p) { in php_trim_int()
726 if (*(end-1) == p) { in php_trim_int()
1221 #define STRTOK_TABLE(p) BG(strtok_table)[(unsigned char) *p] argument
1229 char *p; in PHP_FUNCTION() local
1256 p = BG(strtok_last); /* Where we start to search */ in PHP_FUNCTION()
1258 if (p >= pe) { in PHP_FUNCTION()
1271 while (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1272 if (++p >= pe) { in PHP_FUNCTION()
1280 while (++p < pe) { in PHP_FUNCTION()
1281 if (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1286 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1288 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1289 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1597 const char *p; local
1604 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1606 if (p) {
1607 idx = p - ZSTR_VAL(ret);
1613 const char *p; local
1621 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1623 idx = p ? (p - ZSTR_VAL(ret)) : (ptrdiff_t)ZSTR_LEN(ret);
1656 const char *p = s1, *spanp; local
1657 char c = *p;
1660 for (spanp = s2; p != s1_end && spanp != s2_end;) {
1662 c = *(++p);
1666 return (p - s1);
1673 const char *p, *spanp; local
1676 for (p = s1;;) {
1679 if (*spanp == c || p == s1_end) {
1680 return p - s1;
1683 c = *++p;
1867 const char *p, *e, *found; local
1881 p = ZSTR_VAL(haystack) + (size_t)offset;
1889 p = ZSTR_VAL(haystack);
1897 found = zend_memnrstr(p, ZSTR_VAL(needle), ZSTR_LEN(needle), e);
1912 const char *p, *e, *found; local
1931 p = ZSTR_VAL(haystack) + (size_t)offset;
1934 p = ZSTR_VAL(haystack);
1942 while (e >= p) {
1944 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
1958 p = ZSTR_VAL(haystack_dup) + offset;
1967 p = ZSTR_VAL(haystack_dup);
1976 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2013 const char *p; local
2028 for (p = src, q = ZSTR_VAL(dest); p < (src + srclen - chunklen + 1); ) {
2029 memcpy(q, p, chunklen);
2033 p += chunklen;
2037 memcpy(q, p, restlen);
2431 const char *old_end, *p; local
2448 for (p = ZSTR_VAL(old), q = ZSTR_VAL(str); p != old_end; p++) {
2449 c = *p;
2869 static zend_always_inline zend_long count_chars(const char *p, zend_long length, char ch) argument
2879 __m128i src = _mm_loadu_si128((__m128i*)(p));
2896 p += sizeof(__m128i);
2900 endp = p + length;
2901 while (p != endp) {
2902 count += (*p == ch);
2903 p++;
2906 endp = p + length;
2907 while ((p = memchr(p, ch, endp-p))) {
2909 p++;
2954 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str), *s = ZSTR_VAL(str); local
2956 while ((p = memchr(p, from, (e - p)))) {
2957 memcpy(target, s, (p - s));
2958 target += p - s;
2961 p++;
2962 s = p;
2994 const char *p, *r; local
3000 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3033 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3034 memcpy(e, p, r - p);
3035 e += r - p;
3041 if (p < end) {
3042 memcpy(e, p, end - p);
3043 e += end - p;
3068 const char *p, *r; local
3074 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3115 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3116 memcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), r - p);
3117 e += r - p;
3123 if (p < end) {
3124 memcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), end - p);
3125 e += end - p;
3160 const char *s, *p; local
3166 …for (p = ZSTR_VAL(new_str); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_l…
3198 for (p = haystack; (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3199 memcpy(e, p, r - p);
3200 e += r - p;
3205 if (p < end) {
3206 memcpy(e, p, end - p);
3207 e += end - p;
3309 char *p; local
3317 p = ZSTR_VAL(n);
3331 _mm_storeu_si128((__m128i *)p, _mm_shuffle_epi8(str, map));
3332 p += 16;
3344 vst1q_u8((uint8_t *)p, ext);
3345 p += 16;
3357 vst1q_u8((uint8_t *)p, ext);
3358 p += 16;
3364 *p++ = *e--;
3367 *p = '\0';
3376 const char *p, *q; local
3383 for (p = (char *) txt1; p < end1; p++) {
3385 for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
3389 *pos1 = p - txt1;
4886 const char *buf, *p, *end; local
4896 p = buf;
4909 if (p >= end) {
4912 c = *p;
4920 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4934 p++;
4952 p++;
4956 if (p >= end) {
4959 c = *p;
4967 if (isspace(*(p + 1)) && !allow_tag_spaces) {
4982 if (is_xml && p >= buf + 1 && *(p -1) == '-') {
5000 p++;
5004 if (p != buf && (!in_q || *p == in_q)) {
5008 in_q = *p;
5014 if (p >= buf + 1 && *(p-1) == '<') {
5017 p++;
5024 if (p >= buf + 1 && *(p-1) == '<') {
5027 p++;
5045 p++;
5049 if (p >= end) {
5052 c = *p;
5075 if (!br && p >= buf + 1 && lc != '\"' && *(p-1) == '?') {
5078 p++;
5084 if (p >= buf + 1 && *(p-1) != '\\') {
5090 if (p != buf && (!in_q || *p == in_q)) {
5094 in_q = *p;
5104 if (state == 2 && p > buf+4
5105 && (*(p-1) == 'm' || *(p-1) == 'M')
5106 && (*(p-2) == 'x' || *(p-2) == 'X')
5107 && *(p-3) == '?'
5108 && *(p-4) == '<') {
5110 p++;
5117 p++;
5121 if (p >= end) {
5124 c = *p;
5136 p++;
5140 if (p != buf && *(p-1) != '\\' && (!in_q || *p == in_q)) {
5144 in_q = *p;
5149 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
5151 p++;
5158 if (p > buf+6
5159 && (*(p-1) == 'p' || *(p-1) == 'P')
5160 && (*(p-2) == 'y' || *(p-2) == 'Y')
5161 && (*(p-3) == 't' || *(p-3) == 'T')
5162 && (*(p-4) == 'c' || *(p-4) == 'C')
5163 && (*(p-5) == 'o' || *(p-5) == 'O')
5164 && (*(p-6) == 'd' || *(p-6) == 'D')) {
5166 p++;
5173 p++;
5177 while (p < end) {
5178 c = *p;
5180 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '-') {
5183 p++;
5187 p++;
5451 const char *p, *endp; local
5466 p = haystack;
5476 p += offset;
5493 count = count_chars(p, length, needle[0]);
5496 endp = p + length;
5497 while ((p = (char*)php_memnstr(p, needle, needle_len, endp))) {
5498 p += needle_len;
5612 const char *p, *e; local
5621 p = ZSTR_VAL(str);
5622 e = p + ZSTR_LEN(str);
5626 if (e - p > 15) {
5642 in = _mm_loadu_si128((__m128i *)p);
5679 p += 16;
5681 } while (e - p > 15);
5685 while (p < e) {
5686 if (*p >= 'a' && *p <= 'z') {
5687 *target++ = 'a' + (((*p++ - 'a') + 13) % 26);
5688 } else if (*p >= 'A' && *p <= 'Z') {
5689 *target++ = 'A' + (((*p++ - 'A') + 13) % 26);
5691 *target++ = *p++;
5780 const char *p, *e, *s; local
5814 p = ZSTR_VAL(str);
5818 if ((*p == '\'' && (!char_list || !ch['\''])) || (*p == '-' && (!char_list || !ch['-']))) {
5819 p++;
5826 while (p < e) {
5827 s = p;
5828 …while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' …
5829 p++;
5831 if (p > s) {
5835 add_next_index_stringl(return_value, s, p - s);
5838 add_index_stringl(return_value, (s - ZSTR_VAL(str)), s, p - s);
5845 p++;
5860 const char *p; local
5887 p = ZSTR_VAL(str);
5890 add_next_index_stringl(return_value, p, split_length);
5891 p += split_length;
5894 if (p != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
5895 add_next_index_stringl(return_value, p, (ZSTR_VAL(str) + ZSTR_LEN(str) - p));