Lines Matching refs:p

544 			char p = *what;  in php_trim_int()  local
547 if (*start == p) { in php_trim_int()
556 if (*(end-1) == p) { in php_trim_int()
1130 #define STRTOK_TABLE(p) BG(strtok_table)[(unsigned char) *p] argument
1138 char *p; in PHP_FUNCTION() local
1165 p = BG(strtok_last); /* Where we start to search */ in PHP_FUNCTION()
1167 if (p >= pe) { in PHP_FUNCTION()
1180 while (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1181 if (++p >= pe) { in PHP_FUNCTION()
1189 while (++p < pe) { in PHP_FUNCTION()
1190 if (STRTOK_TABLE(p)) { in PHP_FUNCTION()
1195 if (p - BG(strtok_last)) { in PHP_FUNCTION()
1197 RETVAL_STRINGL(BG(strtok_last) + skipped, (p - BG(strtok_last)) - skipped); in PHP_FUNCTION()
1198 BG(strtok_last) = p + 1; in PHP_FUNCTION()
1622 const char *p; local
1629 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1631 if (p) {
1632 idx = p - ZSTR_VAL(ret);
1638 const char *p; local
1646 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1648 idx = p ? (p - ZSTR_VAL(ret)) : (ptrdiff_t)ZSTR_LEN(ret);
2009 const char *p, *e, *found; local
2023 p = ZSTR_VAL(haystack) + (size_t)offset;
2031 p = ZSTR_VAL(haystack);
2039 found = zend_memnrstr(p, ZSTR_VAL(needle), ZSTR_LEN(needle), e);
2054 const char *p, *e, *found; local
2073 p = ZSTR_VAL(haystack) + (size_t)offset;
2076 p = ZSTR_VAL(haystack);
2084 while (e >= p) {
2086 RETURN_LONG(e - p + (offset > 0 ? offset : 0));
2100 p = ZSTR_VAL(haystack_dup) + offset;
2109 p = ZSTR_VAL(haystack_dup);
2118 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2161 const char *p; local
2176 for (p = src, q = ZSTR_VAL(dest); p < (src + srclen - chunklen + 1); ) {
2177 q = zend_mempcpy(q, p, chunklen);
2179 p += chunklen;
2183 q = zend_mempcpy(q, p, restlen);
2612 const char *old_end, *p; local
2629 for (p = ZSTR_VAL(old), q = ZSTR_VAL(str); p != old_end; p++) {
2630 c = *p;
3048 static zend_always_inline zend_long count_chars(const char *p, zend_long length, char ch) argument
3058 __m128i src = _mm_loadu_si128((__m128i*)(p));
3075 p += sizeof(__m128i);
3079 endp = p + length;
3080 while (p != endp) {
3081 count += (*p == ch);
3082 p++;
3085 endp = p + length;
3086 while ((p = memchr(p, ch, endp-p))) {
3088 p++;
3133 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str), *s = ZSTR_VAL(str); local
3135 while ((p = memchr(p, from, (e - p)))) {
3136 target = zend_mempcpy(target, s, (p - s));
3138 p++;
3139 s = p;
3169 const char *p, *r; local
3175 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3208 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3209 e = zend_mempcpy(e, p, r - p);
3214 if (p < end) {
3215 e = zend_mempcpy(e, p, end - p);
3240 const char *p, *r; local
3246 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3287 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end));
3288 e = zend_mempcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), r - p);
3293 if (p < end) {
3294 e = zend_mempcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), end - p);
3329 const char *s, *p; local
3335 …for (p = ZSTR_VAL(new_str); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_l…
3367 for (p = haystack; (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3368 e = zend_mempcpy(e, p, r - p);
3372 if (p < end) {
3373 e = zend_mempcpy(e, p, end - p);
3520 char *p; local
3528 p = ZSTR_VAL(n);
3542 _mm_storeu_si128((__m128i *)p, _mm_shuffle_epi8(str, map));
3543 p += 16;
3555 vst1q_u8((uint8_t *)p, ext);
3556 p += 16;
3568 vst1q_u8((uint8_t *)p, ext);
3569 p += 16;
3575 *p++ = *e--;
3578 *p = '\0';
3587 const char *p, *q; local
3594 for (p = (char *) txt1; p < end1; p++) {
3596 for (l = 0; (p + l < end1) && (q + l < end2) && (p[l] == q[l]); l++);
3600 *pos1 = p - txt1;
5095 const char *buf, *p, *end; local
5105 p = buf;
5118 if (p >= end) {
5121 c = *p;
5129 if (isspace(*(p + 1)) && !allow_tag_spaces) {
5143 p++;
5161 p++;
5165 if (p >= end) {
5168 c = *p;
5176 if (isspace(*(p + 1)) && !allow_tag_spaces) {
5191 if (is_xml && p >= buf + 1 && *(p -1) == '-') {
5208 p++;
5212 if (p != buf && (!in_q || *p == in_q)) {
5216 in_q = *p;
5222 if (p >= buf + 1 && *(p-1) == '<') {
5225 p++;
5232 if (p >= buf + 1 && *(p-1) == '<') {
5235 p++;
5253 p++;
5257 if (p >= end) {
5260 c = *p;
5283 if (!br && p >= buf + 1 && lc != '\"' && *(p-1) == '?') {
5286 p++;
5292 if (p >= buf + 1 && *(p-1) != '\\') {
5298 if (p != buf && (!in_q || *p == in_q)) {
5302 in_q = *p;
5312 if (state == 2 && p > buf+4
5313 && (*(p-1) == 'm' || *(p-1) == 'M')
5314 && (*(p-2) == 'x' || *(p-2) == 'X')
5315 && *(p-3) == '?'
5316 && *(p-4) == '<') {
5318 p++;
5325 p++;
5329 if (p >= end) {
5332 c = *p;
5344 p++;
5348 if (p != buf && *(p-1) != '\\' && (!in_q || *p == in_q)) {
5352 in_q = *p;
5357 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '!') {
5359 p++;
5366 if (p > buf+6
5367 && (*(p-1) == 'p' || *(p-1) == 'P')
5368 && (*(p-2) == 'y' || *(p-2) == 'Y')
5369 && (*(p-3) == 't' || *(p-3) == 'T')
5370 && (*(p-4) == 'c' || *(p-4) == 'C')
5371 && (*(p-5) == 'o' || *(p-5) == 'O')
5372 && (*(p-6) == 'd' || *(p-6) == 'D')) {
5374 p++;
5381 p++;
5385 while (p < end) {
5386 c = *p;
5388 if (p >= buf + 2 && *(p-1) == '-' && *(p-2) == '-') {
5391 p++;
5395 p++;
5677 const char *p, *endp; local
5692 p = haystack;
5702 p += offset;
5719 count = count_chars(p, length, needle[0]);
5722 endp = p + length;
5723 while ((p = (char*)php_memnstr(p, needle, needle_len, endp))) {
5724 p += needle_len;
5838 const char *p, *e; local
5847 p = ZSTR_VAL(str);
5848 e = p + ZSTR_LEN(str);
5852 if (e - p > 15) {
5868 in = _mm_loadu_si128((__m128i *)p);
5905 p += 16;
5907 } while (e - p > 15);
5911 while (p < e) {
5912 if (*p >= 'a' && *p <= 'z') {
5913 *target++ = 'a' + (((*p++ - 'a') + 13) % 26);
5914 } else if (*p >= 'A' && *p <= 'Z') {
5915 *target++ = 'A' + (((*p++ - 'A') + 13) % 26);
5917 *target++ = *p++;
6008 const char *p, *e, *s; local
6042 p = ZSTR_VAL(str);
6046 if ((*p == '\'' && (!char_list || !ch['\''])) || (*p == '-' && (!char_list || !ch['-']))) {
6047 p++;
6054 while (p < e) {
6055 s = p;
6056 …while (p < e && (isalpha((unsigned char)*p) || (char_list && ch[(unsigned char)*p]) || *p == '\'' …
6057 p++;
6059 if (p > s) {
6063 add_next_index_stringl(return_value, s, p - s);
6066 add_index_stringl(return_value, (s - ZSTR_VAL(str)), s, p - s);
6073 p++;
6088 const char *p; local
6115 p = ZSTR_VAL(str);
6118 add_next_index_stringl(return_value, p, split_length);
6119 p += split_length;
6122 if (p != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
6123 add_next_index_stringl(return_value, p, (ZSTR_VAL(str) + ZSTR_LEN(str) - p));