Lines Matching refs:ZSTR_VAL

70 		ZSTR_VAL(result)[j++] = hexconvtab[old[i] >> 4];  in php_bin2hex()
71 ZSTR_VAL(result)[j++] = hexconvtab[old[i] & 15]; in php_bin2hex()
73 ZSTR_VAL(result)[j] = '\0'; in php_bin2hex()
84 unsigned char *ret = (unsigned char *)ZSTR_VAL(str); in php_hex2bin()
179 result = php_bin2hex((unsigned char *)ZSTR_VAL(data), ZSTR_LEN(data)); in PHP_FUNCTION()
199 result = php_hex2bin((unsigned char *)ZSTR_VAL(data), ZSTR_LEN(data)); in PHP_FUNCTION()
253 RETURN_LONG(php_strspn(ZSTR_VAL(s11) + start /*str1_start*/, in php_spn_common_handler()
254 ZSTR_VAL(s22) /*str2_start*/, in php_spn_common_handler()
255 ZSTR_VAL(s11) + start + len /*str1_end*/, in php_spn_common_handler()
256 ZSTR_VAL(s22) + ZSTR_LEN(s22) /*str2_end*/)); in php_spn_common_handler()
258 RETURN_LONG(php_strcspn(ZSTR_VAL(s11) + start /*str1_start*/, in php_spn_common_handler()
259 ZSTR_VAL(s22) /*str2_start*/, in php_spn_common_handler()
260 ZSTR_VAL(s11) + start + len /*str1_end*/, in php_spn_common_handler()
261 ZSTR_VAL(s22) + ZSTR_LEN(s22) /*str2_end*/)); in php_spn_common_handler()
477 RETURN_LONG(strcoll((const char *) ZSTR_VAL(s1), in PHP_FUNCTION()
478 (const char *) ZSTR_VAL(s2))); in PHP_FUNCTION()
538 const char *start = ZSTR_VAL(str); in php_trim_int()
648 …ZVAL_STR(return_value, php_trim_int(str, (what ? ZSTR_VAL(what) : NULL), (what ? ZSTR_LEN(what) : … in php_do_trim()
680 ZVAL_STR(return_value, php_trim_int(str, ZSTR_VAL(what), ZSTR_LEN(what), /* mode */ 3));
738 newtext = zend_string_init(ZSTR_VAL(text), ZSTR_LEN(text), 0); in PHP_FUNCTION()
742 if (ZSTR_VAL(text)[current] == breakchar[0]) { in PHP_FUNCTION()
744 } else if (ZSTR_VAL(text)[current] == ' ') { in PHP_FUNCTION()
746 ZSTR_VAL(newtext)[current] = breakchar[0]; in PHP_FUNCTION()
751 ZSTR_VAL(newtext)[lastspace] = breakchar[0]; in PHP_FUNCTION()
781 if (ZSTR_VAL(text)[current] == breakchar[0] in PHP_FUNCTION()
783 && !strncmp(ZSTR_VAL(text) + current, breakchar, breakchar_len)) { in PHP_FUNCTION()
784 …memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart + breakchar… in PHP_FUNCTION()
792 else if (ZSTR_VAL(text)[current] == ' ') { in PHP_FUNCTION()
794 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
796 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
808 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
810 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
820 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, lastspace - laststart); in PHP_FUNCTION()
822 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
831 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
835 ZSTR_VAL(newtext)[newtextlen] = '\0'; in PHP_FUNCTION()
847 const char *p1 = ZSTR_VAL(str); in php_explode()
848 const char *endp = ZSTR_VAL(str) + ZSTR_LEN(str); in php_explode()
849 const char *p2 = php_memnstr(ZSTR_VAL(str), ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode()
863 p2 = php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode()
880 const char *p1 = ZSTR_VAL(str); in php_explode_negative_limit()
881 const char *endp = ZSTR_VAL(str) + ZSTR_LEN(str); in php_explode_negative_limit()
882 const char *p2 = php_memnstr(ZSTR_VAL(str), ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode_negative_limit()
902 p2 = php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode_negative_limit()
1018 cptr = ZSTR_VAL(str) + ZSTR_LEN(str); in php_implode()
1025 memcpy(cptr, ZSTR_VAL(ptr->str), ZSTR_LEN(ptr->str)); in php_implode()
1041 memcpy(cptr, ZSTR_VAL(glue), ZSTR_LEN(glue)); in php_implode()
1155 BG(strtok_last) = ZSTR_VAL(str); in PHP_FUNCTION()
1166 pe = ZSTR_VAL(BG(strtok_string)) + BG(strtok_len); in PHP_FUNCTION()
1172 token = ZSTR_VAL(tok); in PHP_FUNCTION()
1207 token = ZSTR_VAL(tok); in PHP_FUNCTION()
1257 zend_string *incremented = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), /* persistent */ false); in PHP_FUNCTION()
1262 char c = ZSTR_VAL(incremented)[position]; in PHP_FUNCTION()
1266 ZSTR_VAL(incremented)[position]++; in PHP_FUNCTION()
1270 ZSTR_VAL(incremented)[position] = '0'; in PHP_FUNCTION()
1272 ZSTR_VAL(incremented)[position] -= 25; in PHP_FUNCTION()
1279 memcpy(ZSTR_VAL(tmp) + 1, ZSTR_VAL(incremented), ZSTR_LEN(incremented)); in PHP_FUNCTION()
1280 ZSTR_VAL(tmp)[ZSTR_LEN(incremented)+1] = '\0'; in PHP_FUNCTION()
1281 switch (ZSTR_VAL(incremented)[0]) { in PHP_FUNCTION()
1283 ZSTR_VAL(tmp)[0] = '1'; in PHP_FUNCTION()
1286 ZSTR_VAL(tmp)[0] = ZSTR_VAL(incremented)[0]; in PHP_FUNCTION()
1312 if (ZSTR_LEN(str) >= 1 && ZSTR_VAL(str)[0] == '0') { in PHP_FUNCTION()
1313 zend_argument_value_error(1, "\"%s\" is out of decrement range", ZSTR_VAL(str)); in PHP_FUNCTION()
1317 zend_string *decremented = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), /* persistent */ false); in PHP_FUNCTION()
1322 char c = ZSTR_VAL(decremented)[position]; in PHP_FUNCTION()
1326 ZSTR_VAL(decremented)[position]--; in PHP_FUNCTION()
1330 ZSTR_VAL(decremented)[position] = '9'; in PHP_FUNCTION()
1332 ZSTR_VAL(decremented)[position] += 25; in PHP_FUNCTION()
1337 if (UNEXPECTED(carry || (ZSTR_VAL(decremented)[0] == '0' && ZSTR_LEN(decremented) > 1))) { in PHP_FUNCTION()
1340 zend_argument_value_error(1, "\"%s\" is out of decrement range", ZSTR_VAL(str)); in PHP_FUNCTION()
1344 memcpy(ZSTR_VAL(tmp), ZSTR_VAL(decremented) + 1, ZSTR_LEN(decremented) - 1); in PHP_FUNCTION()
1345 ZSTR_VAL(tmp)[ZSTR_LEN(decremented) - 1] = '\0'; in PHP_FUNCTION()
1515 ret = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
1520 ZSTR_LEN(ret) = php_win32_ioutil_dirname(ZSTR_VAL(ret), ZSTR_LEN(str));
1522 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), ZSTR_LEN(str));
1533 ZSTR_LEN(ret) = php_win32_ioutil_dirname(ZSTR_VAL(ret), str_len = ZSTR_LEN(ret));
1535 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), str_len = ZSTR_LEN(ret));
1629 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1632 idx = p - ZSTR_VAL(ret);
1633 add_assoc_stringl(&tmp, "extension", ZSTR_VAL(ret) + idx + 1, ZSTR_LEN(ret) - idx - 1);
1646 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1648 idx = p ? (p - ZSTR_VAL(ret)) : (ptrdiff_t)ZSTR_LEN(ret);
1649 add_assoc_stringl(&tmp, "filename", ZSTR_VAL(ret), idx);
1743 found = php_stristr(ZSTR_VAL(haystack), ZSTR_VAL(needle), ZSTR_LEN(haystack), ZSTR_LEN(needle));
1748 found_offset = found - ZSTR_VAL(haystack);
1750 RETURN_STRINGL(ZSTR_VAL(haystack), found_offset);
1761 …found = php_memnstr(ZSTR_VAL(haystack), ZSTR_VAL(needle), ZSTR_LEN(needle), ZSTR_VAL(haystack) + Z…
1766 found_offset = found - ZSTR_VAL(haystack);
1768 RETURN_STRINGL(ZSTR_VAL(haystack), found_offset);
1832 …RETURN_BOOL(php_memnstr(ZSTR_VAL(haystack), ZSTR_VAL(needle), ZSTR_LEN(needle), ZSTR_VAL(haystack)…
1844 …RETVAL_BOOL(php_memnstr(ZSTR_VAL(haystack), ZSTR_VAL(needle), ZSTR_LEN(needle), ZSTR_VAL(haystack)…
1895 ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - ZSTR_LEN(needle),
1896 ZSTR_VAL(needle), ZSTR_LEN(needle)) == 0);
1912 found = (char*)php_memnstr(ZSTR_VAL(haystack) + offset,
1913 ZSTR_VAL(needle), ZSTR_LEN(needle),
1914 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1919 RETURN_LONG(found - ZSTR_VAL(haystack));
1993 found = (char*)php_memnistr(ZSTR_VAL(haystack) + offset,
1994 ZSTR_VAL(needle), ZSTR_LEN(needle), ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1999 RETURN_LONG(found - ZSTR_VAL(haystack));
2023 p = ZSTR_VAL(haystack) + (size_t)offset;
2024 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2031 p = ZSTR_VAL(haystack);
2033 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2035 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + offset + ZSTR_LEN(needle);
2039 found = zend_memnrstr(p, ZSTR_VAL(needle), ZSTR_LEN(needle), e);
2044 RETURN_LONG(found - ZSTR_VAL(haystack));
2073 p = ZSTR_VAL(haystack) + (size_t)offset;
2074 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - 1;
2076 p = ZSTR_VAL(haystack);
2081 e = ZSTR_VAL(haystack) + (ZSTR_LEN(haystack) + (size_t)offset);
2083 lowered = zend_tolower_ascii(*ZSTR_VAL(needle));
2100 p = ZSTR_VAL(haystack_dup) + offset;
2101 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2109 p = ZSTR_VAL(haystack_dup);
2111 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2113 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack) + offset + ZSTR_LEN(needle);
2118 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2119 RETVAL_LONG(found - ZSTR_VAL(haystack_dup));
2145 found = zend_memrchr(ZSTR_VAL(haystack), *ZSTR_VAL(needle), ZSTR_LEN(haystack));
2149 found_offset = found - ZSTR_VAL(haystack);
2151 RETURN_STRINGL(ZSTR_VAL(haystack), found_offset);
2176 for (p = src, q = ZSTR_VAL(dest); p < (src + srclen - chunklen + 1); ) {
2188 ZEND_ASSERT(q - ZSTR_VAL(dest) == ZSTR_LEN(dest));
2218 memcpy(ZSTR_VAL(result), ZSTR_VAL(str), ZSTR_LEN(str));
2219 memcpy(ZSTR_VAL(result) + ZSTR_LEN(str), end, endlen);
2220 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2228 result = php_chunk_split(ZSTR_VAL(str), ZSTR_LEN(str), end, endlen, (size_t)chunklen);
2269 RETURN_STRINGL_FAST(ZSTR_VAL(str) + f, l);
2425 memcpy(ZSTR_VAL(result), ZSTR_VAL(str), f);
2427 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(repl_str), ZSTR_LEN(repl_str));
2429 memcpy((ZSTR_VAL(result) + f + ZSTR_LEN(repl_str)), ZSTR_VAL(str) + f + l, ZSTR_LEN(str) - f - l);
2430 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2571 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f);
2572 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(repl_str), ZSTR_LEN(repl_str));
2573 …memcpy((ZSTR_VAL(result) + f + ZSTR_LEN(repl_str)), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str)…
2578 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f);
2579 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str) - f - l);
2586 memcpy(ZSTR_VAL(result), ZSTR_VAL(orig_str), f);
2587 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(repl_str), ZSTR_LEN(repl_str));
2588 …memcpy((ZSTR_VAL(result) + f + ZSTR_LEN(repl_str)), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str)…
2591 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2621 old_end = ZSTR_VAL(old) + ZSTR_LEN(old);
2629 for (p = ZSTR_VAL(old), q = ZSTR_VAL(str); p != old_end; p++) {
2652 RETURN_NEW_STR(zend_string_truncate(str, q - ZSTR_VAL(str), 0));
2666 RETURN_LONG((unsigned char) ZSTR_VAL(str)[0]);
2689 const unsigned char ch = ZSTR_VAL(str)[0];
2694 zend_string *s = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
2695 ZSTR_VAL(s)[0] = r;
2722 unsigned char r = zend_tolower_ascii(ZSTR_VAL(str)[0]);
2723 if (r == ZSTR_VAL(str)[0]) {
2726 zend_string *s = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
2727 ZSTR_VAL(s)[0] = r;
2772 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
2830 char *input = ZSTR_VAL(str);
2843 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), input - ZSTR_VAL(str));
2844 output = ZSTR_VAL(new_str) + (input - ZSTR_VAL(str));
2872 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), input - ZSTR_VAL(str));
2873 output = ZSTR_VAL(new_str) + (input - ZSTR_VAL(str));
2895 if (xlat[(size_t)(unsigned char) ZSTR_VAL(str)[i]]) {
2897 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), i);
2899 ZSTR_VAL(new_str)[i] = ZSTR_VAL(str)[i] + xlat[(size_t)(unsigned char) ZSTR_VAL(str)[i]];
2902 ZSTR_VAL(new_str)[i] = 0;
2914 const char *str = ZSTR_VAL(input);
2954 …bitset[((unsigned char)ZSTR_VAL(str_key)[0]) / sizeof(zend_ulong)] |= Z_UL(1) << (((unsigned char)
2979 …bitset[((unsigned char)ZSTR_VAL(key_used)[0]) / sizeof(zend_ulong)] |= Z_UL(1) << (((unsigned char…
3105 char_count = count_chars(ZSTR_VAL(str), ZSTR_LEN(str), from);
3109 source_end = ZSTR_VAL(str) + ZSTR_LEN(str);
3110 for (source = ZSTR_VAL(str); source < source_end; source++) {
3130 target = ZSTR_VAL(result);
3133 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str), *s = ZSTR_VAL(str);
3146 source_end = ZSTR_VAL(str) + ZSTR_LEN(str);
3147 for (source = ZSTR_VAL(str); source < source_end; source++) {
3174 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3175 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3177 new_str = zend_string_init(ZSTR_VAL(haystack), ZSTR_LEN(haystack), 0);
3179 memcpy(ZSTR_VAL(new_str) + (r - ZSTR_VAL(haystack)), str, str_len);
3188 const char *o = ZSTR_VAL(haystack);
3206 e = ZSTR_VAL(new_str);
3207 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3208 …for (p = ZSTR_VAL(haystack); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_…
3221 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack…
3246 …for (p = lc_haystack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end)); …
3248 new_str = zend_string_init(ZSTR_VAL(haystack), ZSTR_LEN(haystack), 0);
3250 memcpy(ZSTR_VAL(new_str) + (r - lc_haystack), str, str_len);
3266 n = ZSTR_VAL(lc_needle);
3284 e = ZSTR_VAL(new_str);
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);
3294 e = zend_mempcpy(e, ZSTR_VAL(haystack) + (p - lc_haystack), end - p);
3308 if (memcmp(lc_haystack, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle))) {
3334 end = ZSTR_VAL(new_str) + length;
3335 …for (p = ZSTR_VAL(new_str); (r = (char*)php_memnstr(p, needle, needle_len, end)); p = r + needle_l…
3365 s = e = ZSTR_VAL(new_str);
3411 ZSTR_VAL(str_key)[0],
3412 ZSTR_VAL(replace),
3419 ZSTR_VAL(str_key), ZSTR_LEN(str_key),
3420 ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));
3461 ZSTR_VAL(from_str),
3502 RETVAL_STR(php_strtr_ex(str, ZSTR_VAL(from), ZSTR_VAL(to), MIN(ZSTR_LEN(from), ZSTR_LEN(to))));
3528 p = ZSTR_VAL(n);
3530 s = ZSTR_VAL(str);
3653 sim = php_similar_char(ZSTR_VAL(t1), ZSTR_LEN(t1), ZSTR_VAL(t2), ZSTR_LEN(t2));
3681 RETURN_STR(php_addcslashes_str(ZSTR_VAL(str), ZSTR_LEN(str), ZSTR_VAL(what), ZSTR_LEN(what)));
3711 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
3725 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
3738 …for (source = (char*)ZSTR_VAL(str), end = source + ZSTR_LEN(str), target = ZSTR_VAL(str); source <…
3805 for (source = str, end = source + len, target = ZSTR_VAL(new_str); source < end; source++) {
3827 newlen = target - ZSTR_VAL(new_str);
3838 return php_addcslashes_str(ZSTR_VAL(str), ZSTR_LEN(str), what, wlength);
3910 source = ZSTR_VAL(str);
3941 offset = source - (char *)ZSTR_VAL(str);
3943 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset);
3944 target = ZSTR_VAL(new_str) + offset;
4021 if (ZSTR_LEN(new_str) - (target - ZSTR_VAL(new_str)) > 16) {
4022 new_str = zend_string_truncate(new_str, target - ZSTR_VAL(new_str), 0);
4024 ZSTR_LEN(new_str) = target - ZSTR_VAL(new_str);
4086 source = ZSTR_VAL(str);
4118 offset = source - (char *)ZSTR_VAL(str);
4120 memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset);
4121 target = ZSTR_VAL(new_str) + offset;
4161 if (ZSTR_LEN(new_str) - (target - ZSTR_VAL(new_str)) > 16) {
4162 new_str = zend_string_truncate(new_str, target - ZSTR_VAL(new_str), 0);
4164 ZSTR_LEN(new_str) = target - ZSTR_VAL(new_str);
4238 const char *s = ZSTR_VAL(str);
4239 char *t = ZSTR_VAL(str);
4282 if (t != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
4283 ZSTR_LEN(str) = t - ZSTR_VAL(str);
4284 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
4290 const char *t = php_stripslashes_impl(ZSTR_VAL(str), ZSTR_VAL(str), ZSTR_LEN(str));
4291 if (t != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
4292 ZSTR_LEN(str) = t - ZSTR_VAL(str);
4293 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
4332 replace_value = ZSTR_VAL(replace_str);
4369 replace_value = ZSTR_VAL(replace_entry_str);
4384 ZSTR_VAL(search_str)[0],
4396 ZSTR_VAL(search_str), ZSTR_LEN(search_str),
4404 tmp_result = php_str_to_str_i_ex(subject_str, ZSTR_VAL(lc_subject_str),
4444 ZSTR_VAL(search_str)[0],
4445 ZSTR_VAL(replace_str),
4452 ZSTR_VAL(search_str), ZSTR_LEN(search_str),
4453 ZSTR_VAL(replace_str), ZSTR_LEN(replace_str), &replace_count));
4456 ZVAL_STR(result, php_str_to_str_i_ex(subject_str, ZSTR_VAL(lc_subject_str),
4457 search_str, ZSTR_VAL(replace_str), ZSTR_LEN(replace_str), &replace_count));
4672 target = ZSTR_VAL(broken_str);
4749 tmp = ZSTR_VAL(str);
4750 end = ZSTR_VAL(str) + ZSTR_LEN(str);
4778 target = ZSTR_VAL(result);
4781 tmp = ZSTR_VAL(str);
4844 allowed_tags = ZSTR_VAL(tags_ss.s);
4848 allowed_tags = ZSTR_VAL(allow_str);
4852 buf = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
4853 ZSTR_LEN(buf) = php_strip_tags_ex(ZSTR_VAL(buf), ZSTR_LEN(str), allowed_tags, allowed_tags_len, 0);
4872 retval = setlocale(cat, loc ? ZSTR_VAL(loc) : NULL);
4876 char *locp = ZSTR_VAL(loc);
4887 retval = setlocale(cat, ZSTR_VAL(loc));
5454 …HashTable *values = php_fgetcsv(NULL, delimiter, enclosure, escape_char, ZSTR_LEN(str), ZSTR_VAL(s…
5492 memset(ZSTR_VAL(result), *ZSTR_VAL(input_str), mult);
5497 memcpy(ZSTR_VAL(result), ZSTR_VAL(input_str), ZSTR_LEN(input_str));
5498 s = ZSTR_VAL(result);
5499 e = ZSTR_VAL(result) + ZSTR_LEN(input_str);
5500 ee = ZSTR_VAL(result) + result_len;
5509 ZSTR_VAL(result)[result_len] = '\0';
5538 buf = (const unsigned char *) ZSTR_VAL(input);
5595 RETURN_LONG(strnatcmp_ex(ZSTR_VAL(s1), ZSTR_LEN(s1),
5596 ZSTR_VAL(s2), ZSTR_LEN(s2),
5796 ZSTR_VAL(result)[ZSTR_LEN(result)++] = pad_str[i % pad_str_len];
5799 memcpy(ZSTR_VAL(result) + ZSTR_LEN(result), ZSTR_VAL(input), ZSTR_LEN(input));
5804 ZSTR_VAL(result)[ZSTR_LEN(result)++] = pad_str[i % pad_str_len];
5806 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
5847 p = ZSTR_VAL(str);
5849 target = ZSTR_VAL(ret);
5984 RETVAL_STRINGL(ZSTR_VAL(arg), ZSTR_LEN(arg));
6042 p = ZSTR_VAL(str);
6043 e = ZSTR_VAL(str) + ZSTR_LEN(str);
6066 add_index_stringl(return_value, (s - ZSTR_VAL(str)), s, p - s);
6108 add_next_index_stringl(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
6115 p = ZSTR_VAL(str);
6122 if (p != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
6123 add_next_index_stringl(return_value, p, (ZSTR_VAL(str) + ZSTR_LEN(str) - p));
6144 ZSTR_VAL(haystack),
6145 ZSTR_VAL(char_list),
6146 ZSTR_VAL(haystack) + ZSTR_LEN(haystack),
6147 ZSTR_VAL(char_list) + ZSTR_LEN(char_list)
6150 RETURN_STRINGL(ZSTR_VAL(haystack) + shift, ZSTR_LEN(haystack) - shift);
6197 …RETURN_LONG(zend_binary_strncmp(ZSTR_VAL(s1) + offset, (ZSTR_LEN(s1) - offset), ZSTR_VAL(s2), ZSTR…
6199 …RETURN_LONG(zend_binary_strncasecmp_l(ZSTR_VAL(s1) + offset, (ZSTR_LEN(s1) - offset), ZSTR_VAL(s2)…
6218 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (char) c;
6222 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (0xc0 | (c >> 6));
6223 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (0x80 | (c & 0x3f));
6228 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
6254 ZSTR_VAL(str)[ZSTR_LEN(str)++] = c;
6256 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';