Lines Matching refs:ZSTR_LEN

261 	result = php_bin2hex((unsigned char *)ZSTR_VAL(data), ZSTR_LEN(data));  in PHP_FUNCTION()
281 if (ZSTR_LEN(data) % 2 != 0) { in PHP_FUNCTION()
286 result = php_hex2bin((unsigned char *)ZSTR_VAL(data), ZSTR_LEN(data)); in PHP_FUNCTION()
311 len = ZSTR_LEN(s11); in php_spn_common_handler()
317 start += (zend_long)ZSTR_LEN(s11); in php_spn_common_handler()
321 } else if ((size_t)start > ZSTR_LEN(s11)) { in php_spn_common_handler()
326 len += (ZSTR_LEN(s11) - start); in php_spn_common_handler()
332 if (len > (zend_long)ZSTR_LEN(s11) - start) { in php_spn_common_handler()
333 len = ZSTR_LEN(s11) - start; in php_spn_common_handler()
344 ZSTR_VAL(s22) + ZSTR_LEN(s22) /*str2_end*/)); in php_spn_common_handler()
349 ZSTR_VAL(s22) + ZSTR_LEN(s22) /*str2_end*/)); in php_spn_common_handler()
803 const char *end = start + ZSTR_LEN(str); in php_trim_int()
876 if (ZSTR_LEN(str) == end - start) { in php_trim_int()
912 …ZVAL_STR(return_value, php_trim_int(str, (what ? ZSTR_VAL(what) : NULL), (what ? ZSTR_LEN(what) : … in php_do_trim()
961 if (ZSTR_LEN(text) == 0) { in PHP_FUNCTION()
978 newtext = zend_string_init(ZSTR_VAL(text), ZSTR_LEN(text), 0); in PHP_FUNCTION()
981 for (current = 0; current < (zend_long)ZSTR_LEN(text); current++) { in PHP_FUNCTION()
1000 chk = (size_t)(ZSTR_LEN(text)/linelength + 1); in PHP_FUNCTION()
1001 newtext = zend_string_safe_alloc(chk, breakchar_len, ZSTR_LEN(text), 0); in PHP_FUNCTION()
1002 alloced = ZSTR_LEN(text) + chk * breakchar_len + 1; in PHP_FUNCTION()
1004 chk = ZSTR_LEN(text); in PHP_FUNCTION()
1005 alloced = ZSTR_LEN(text) * (breakchar_len + 1) + 1; in PHP_FUNCTION()
1006 newtext = zend_string_safe_alloc(ZSTR_LEN(text), breakchar_len + 1, 0, 0); in PHP_FUNCTION()
1013 for (current = 0; current < (zend_long)ZSTR_LEN(text); current++) { in PHP_FUNCTION()
1015 alloced += (size_t) (((ZSTR_LEN(text) - current + 1)/linelength + 1) * breakchar_len) + 1; in PHP_FUNCTION()
1017 chk = (size_t) ((ZSTR_LEN(text) - current)/linelength) + 1; in PHP_FUNCTION()
1022 && current + breakchar_len < ZSTR_LEN(text) in PHP_FUNCTION()
1089 char *endp = ZSTR_VAL(str) + ZSTR_LEN(str); in php_explode()
1090 char *p2 = (char *) php_memnstr(ZSTR_VAL(str), ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode()
1108 p1 = p2 + ZSTR_LEN(delim); in php_explode()
1109 p2 = (char *) php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode()
1126 char *endp = ZSTR_VAL(str) + ZSTR_LEN(str); in php_explode_negative_limit()
1127 char *p2 = (char *) php_memnstr(ZSTR_VAL(str), ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode_negative_limit()
1146 positions[found++] = p1 = p2 + ZSTR_LEN(delim); in php_explode_negative_limit()
1147 p2 = (char *) php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode_negative_limit()
1153 ZVAL_STRINGL(&tmp, positions[i], (positions[i+1] - ZSTR_LEN(delim)) - positions[i]); in php_explode_negative_limit()
1177 if (ZSTR_LEN(delim) == 0) { in PHP_FUNCTION()
1184 if (ZSTR_LEN(str) == 0) { in PHP_FUNCTION()
1247 len += ZSTR_LEN(*strptr); in php_implode()
1251 str = zend_string_safe_alloc(numelems - 1, ZSTR_LEN(glue), len, 0); in php_implode()
1252 cptr = ZSTR_VAL(str) + ZSTR_LEN(str); in php_implode()
1257 cptr -= ZSTR_LEN(*strptr); in php_implode()
1258 memcpy(cptr, ZSTR_VAL(*strptr), ZSTR_LEN(*strptr)); in php_implode()
1268 cptr -= ZSTR_LEN(glue); in php_implode()
1269 memcpy(cptr, ZSTR_VAL(glue), ZSTR_LEN(glue)); in php_implode()
1273 memcpy(ZSTR_VAL(str), ZSTR_VAL(*strptr), ZSTR_LEN(*strptr)); in php_implode()
1349 ZVAL_STRINGL(&BG(strtok_zval), ZSTR_VAL(str), ZSTR_LEN(str)); in PHP_FUNCTION()
1351 BG(strtok_len) = ZSTR_LEN(str); in PHP_FUNCTION()
1362 token_end = token + ZSTR_LEN(tok); in PHP_FUNCTION()
1429 e = c + ZSTR_LEN(s); in php_string_toupper()
1434 zend_string *res = zend_string_alloc(ZSTR_LEN(s), 0); in php_string_toupper()
1492 e = c + ZSTR_LEN(s); in php_string_tolower()
1497 zend_string *res = zend_string_alloc(ZSTR_LEN(s), 0); in php_string_tolower()
1656 ZSTR_LEN(ret) = php_win32_ioutil_dirname(ZSTR_VAL(ret), str_len);
1658 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), str_len);
1668 ZSTR_LEN(ret) = php_win32_ioutil_dirname(ZSTR_VAL(ret), str_len = ZSTR_LEN(ret));
1670 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), str_len = ZSTR_LEN(ret));
1672 } while (ZSTR_LEN(ret) < str_len && --levels);
1722 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1726 add_assoc_stringl(&tmp, "extension", ZSTR_VAL(ret) + idx + 1, ZSTR_LEN(ret) - idx - 1);
1739 p = zend_memrchr(ZSTR_VAL(ret), '.', ZSTR_LEN(ret));
1741 idx = p ? (p - ZSTR_VAL(ret)) : (ptrdiff_t)ZSTR_LEN(ret);
1859 haystack_dup = estrndup(ZSTR_VAL(haystack), ZSTR_LEN(haystack));
1869 found = php_stristr(haystack_dup, orig_needle, ZSTR_LEN(haystack), Z_STRLEN_P(needle));
1878 found = php_stristr(haystack_dup, needle_char, ZSTR_LEN(haystack), 1);
1886 RETVAL_STRINGL(ZSTR_VAL(haystack) + found_offset, ZSTR_LEN(haystack) - found_offset);
1920 …TR_VAL(haystack), Z_STRVAL_P(needle), Z_STRLEN_P(needle), ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1927 …found = (char*)php_memnstr(ZSTR_VAL(haystack), needle_char, 1, ZSTR_VAL(haystack) + ZSTR_LEN(hayst…
1935 RETURN_STRINGL(found, ZSTR_LEN(haystack) - found_offset);
1964 offset += (zend_long)ZSTR_LEN(haystack);
1966 if (offset < 0 || (size_t)offset > ZSTR_LEN(haystack)) {
1980 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
1990 ZSTR_VAL(haystack) + ZSTR_LEN(haystack));
2020 offset += (zend_long)ZSTR_LEN(haystack);
2022 if (offset < 0 || (size_t)offset > ZSTR_LEN(haystack)) {
2027 if (ZSTR_LEN(haystack) == 0) {
2032 if (Z_STRLEN_P(needle) == 0 || Z_STRLEN_P(needle) > ZSTR_LEN(haystack)) {
2039 ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack));
2050 ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack));
2098 if ((ZSTR_LEN(haystack) == 0) || (needle_len == 0)) {
2103 if ((size_t)offset > ZSTR_LEN(haystack)) {
2108 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2110 if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) {
2116 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
2118 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + offset + needle_len;
2162 if ((ZSTR_LEN(haystack) == 0) || (ZSTR_LEN(needle) == 0)) {
2167 if (ZSTR_LEN(needle) == 1) {
2171 if ((size_t)offset > ZSTR_LEN(haystack)) {
2177 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - 1;
2180 if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) {
2185 e = ZSTR_VAL(haystack) + ZSTR_LEN(haystack) + (size_t)offset;
2202 if ((size_t)offset > ZSTR_LEN(haystack)) {
2209 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2211 if (offset < -INT_MAX || (size_t)(-offset) > ZSTR_LEN(haystack)) {
2218 if ((size_t)-offset < ZSTR_LEN(needle)) {
2219 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack);
2221 e = ZSTR_VAL(haystack_dup) + ZSTR_LEN(haystack) + offset + ZSTR_LEN(needle);
2226 if ((found = (char *)zend_memnrstr(p, ZSTR_VAL(needle_dup), ZSTR_LEN(needle_dup), e))) {
2255 found = zend_memrchr(ZSTR_VAL(haystack), *Z_STRVAL_P(needle), ZSTR_LEN(haystack));
2262 found = zend_memrchr(ZSTR_VAL(haystack), needle_chr, ZSTR_LEN(haystack));
2267 RETURN_STRINGL(found, ZSTR_LEN(haystack) - found_offset);
2318 ZSTR_LEN(dest) = q - ZSTR_VAL(dest);
2346 if ((size_t)chunklen > ZSTR_LEN(str)) {
2348 result = zend_string_safe_alloc(ZSTR_LEN(str), 1, endlen, 0);
2349 memcpy(ZSTR_VAL(result), ZSTR_VAL(str), ZSTR_LEN(str));
2350 memcpy(ZSTR_VAL(result) + ZSTR_LEN(str), end, endlen);
2351 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2355 if (!ZSTR_LEN(str)) {
2359 result = php_chunk_split(ZSTR_VAL(str), ZSTR_LEN(str), end, endlen, (size_t)chunklen);
2385 if ((l < 0 && (size_t)(-l) > ZSTR_LEN(str))) {
2387 } else if (l > (zend_long)ZSTR_LEN(str)) {
2388 l = ZSTR_LEN(str);
2391 l = ZSTR_LEN(str);
2394 if (f > (zend_long)ZSTR_LEN(str)) {
2396 } else if (f < 0 && (size_t)-f > ZSTR_LEN(str)) {
2400 if (l < 0 && (l + (zend_long)ZSTR_LEN(str) - f) < 0) {
2408 f = (zend_long)ZSTR_LEN(str) + f;
2418 l = ((zend_long)ZSTR_LEN(str) - f) + l;
2424 if (f > (zend_long)ZSTR_LEN(str)) {
2428 if ((size_t)l > ZSTR_LEN(str) - (size_t)f) {
2429 l = ZSTR_LEN(str) - f;
2436 } else if (l == ZSTR_LEN(str)) {
2557 result = zend_string_safe_alloc(1, Z_STRLEN_P(str) - l + ZSTR_LEN(repl_str), 0, 0);
2560 if (ZSTR_LEN(repl_str)) {
2561 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(repl_str), ZSTR_LEN(repl_str));
2563 …memcpy((ZSTR_VAL(result) + f + ZSTR_LEN(repl_str)), Z_STRVAL_P(str) + f + l, Z_STRLEN_P(str) - f -…
2564 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2597 f = (zend_long)ZSTR_LEN(orig_str) + f;
2601 } else if (f > (zend_long)ZSTR_LEN(orig_str)) {
2602 f = ZSTR_LEN(orig_str);
2611 f = (zend_long)ZSTR_LEN(orig_str) + f;
2615 } else if (f > (zend_long)ZSTR_LEN(orig_str)) {
2616 f = ZSTR_LEN(orig_str);
2632 l = ZSTR_LEN(orig_str);
2637 l = ZSTR_LEN(orig_str);
2641 l = (ZSTR_LEN(orig_str) - f) + l;
2647 if ((f + l) > (zend_long)ZSTR_LEN(orig_str)) {
2648 l = ZSTR_LEN(orig_str) - f;
2651 result_len = ZSTR_LEN(orig_str) - l;
2664 result_len += ZSTR_LEN(repl_str);
2669 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(repl_str), ZSTR_LEN(repl_str));
2670 …memcpy((ZSTR_VAL(result) + f + ZSTR_LEN(repl_str)), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str)…
2676 memcpy((ZSTR_VAL(result) + f), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str) - f - l);
2685 …memcpy((ZSTR_VAL(result) + f + Z_STRLEN_P(repl)), ZSTR_VAL(orig_str) + f + l, ZSTR_LEN(orig_str) -…
2688 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
2719 old_end = ZSTR_VAL(old) + ZSTR_LEN(old);
2725 str = zend_string_safe_alloc(2, ZSTR_LEN(old), 0, 0);
2810 if (!ZSTR_LEN(str)) {
2814 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
2839 if (!ZSTR_LEN(str)) {
2843 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
2864 if (!ZSTR_LEN(str)) {
2870 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
2930 for (i = 0; i < ZSTR_LEN(str); i++) {
2932 new_str = zend_string_alloc(ZSTR_LEN(str), 0);
2938 for (; i < ZSTR_LEN(str); i++) {
2950 for (i = 0; i < ZSTR_LEN(str); i++) {
2952 new_str = zend_string_alloc(ZSTR_LEN(str), 0);
2959 for (;i < ZSTR_LEN(str); i++) {
2968 ZSTR_VAL(new_str)[ZSTR_LEN(new_str)] = 0;
2977 size_t slen = ZSTR_LEN(input);
3000 len = ZSTR_LEN(str_key);
3027 len = ZSTR_LEN(key_used);
3044 len = ZSTR_LEN(key_used);
3117 char *source, *target, *source_end= ZSTR_VAL(str) + ZSTR_LEN(str);
3120 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str);
3139 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
3141 result = zend_string_alloc(ZSTR_LEN(str) - char_count, 0);
3146 char *p = ZSTR_VAL(str), *e = p + ZSTR_LEN(str), *s = ZSTR_VAL(str);
3188 if (needle_len < ZSTR_LEN(haystack)) {
3194 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3197 new_str = zend_string_init(ZSTR_VAL(haystack), ZSTR_LEN(haystack), 0);
3210 char *endp = o + ZSTR_LEN(haystack);
3221 new_str = zend_string_safe_alloc(count, str_len - needle_len, ZSTR_LEN(haystack), 0);
3223 new_str = zend_string_alloc(count * (str_len - needle_len) + ZSTR_LEN(haystack), 0);
3227 end = ZSTR_VAL(haystack) + ZSTR_LEN(haystack);
3244 …} else if (needle_len > ZSTR_LEN(haystack) || memcmp(ZSTR_VAL(haystack), needle, ZSTR_LEN(haystack…
3270 if (ZSTR_LEN(needle) < ZSTR_LEN(haystack)) {
3274 if (ZSTR_LEN(needle) == str_len) {
3276 end = lc_haystack + ZSTR_LEN(haystack);
3277 …tack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end)); p = r + ZSTR_LEN
3279 new_str = zend_string_init(ZSTR_VAL(haystack), ZSTR_LEN(haystack), 0);
3294 char *endp = o + ZSTR_LEN(haystack);
3299 while ((o = (char*)php_memnstr(o, n, ZSTR_LEN(lc_needle), endp))) {
3300 o += ZSTR_LEN(lc_needle);
3309 if (str_len > ZSTR_LEN(lc_needle)) {
3310 new_str = zend_string_safe_alloc(count, str_len - ZSTR_LEN(lc_needle), ZSTR_LEN(haystack), 0);
3312 new_str = zend_string_alloc(count * (str_len - ZSTR_LEN(lc_needle)) + ZSTR_LEN(haystack), 0);
3316 end = lc_haystack + ZSTR_LEN(haystack);
3318 …tack; (r = (char*)php_memnstr(p, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle), end)); p = r + ZSTR_LEN
3336 } else if (ZSTR_LEN(needle) > ZSTR_LEN(haystack)) {
3342 if (memcmp(lc_haystack, ZSTR_VAL(lc_needle), ZSTR_LEN(lc_needle))) {
3451 if (ZSTR_LEN(str) == 0) {
3473 if (ZSTR_LEN(str_key) < 1) {
3475 } else if (ZSTR_LEN(str_key) == 1) {
3479 ZSTR_LEN(replace),
3485 ZSTR_VAL(str_key), ZSTR_LEN(str_key),
3486 ZSTR_VAL(replace), ZSTR_LEN(replace), &dummy));
3518 n = zend_string_alloc(ZSTR_LEN(str), 0);
3521 e = ZSTR_VAL(str) + ZSTR_LEN(str);
3599 if (ZSTR_LEN(t1) + ZSTR_LEN(t2) == 0) {
3607 sim = php_similar_char(ZSTR_VAL(t1), ZSTR_LEN(t1), ZSTR_VAL(t2), ZSTR_LEN(t2));
3610 Z_DVAL_P(percent) = sim * 200.0 / (ZSTR_LEN(t1) + ZSTR_LEN(t2));
3627 l = ZSTR_LEN(str);
3632 ZSTR_LEN(str)--;
3665 if (ZSTR_LEN(str) == 0) {
3669 if (ZSTR_LEN(what) == 0) {
3670 RETURN_STRINGL(ZSTR_VAL(str), ZSTR_LEN(str));
3673 RETURN_STR(php_addcslashes(str, 0, ZSTR_VAL(what), ZSTR_LEN(what)));
3687 if (ZSTR_LEN(str) == 0) {
3705 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
3720 ZVAL_STRINGL(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
3748 size_t nlen = ZSTR_LEN(str), i;
3751 …for (source = (char*)ZSTR_VAL(str), end = source + ZSTR_LEN(str), target = ZSTR_VAL(str); source <…
3802 ZSTR_LEN(str) = nlen;
3815 zend_string *new_str = zend_string_safe_alloc(4, ZSTR_LEN(str), 0, 0);
3819 …for (source = (char*)ZSTR_VAL(str), end = source + ZSTR_LEN(str), target = ZSTR_VAL(new_str); sour…
3842 if (newlen < ZSTR_LEN(str) * 4) {
3867 end = source + ZSTR_LEN(str);
3890 new_str = zend_string_safe_alloc(2, ZSTR_LEN(str) - offset, offset, 0);
3918 if (ZSTR_LEN(new_str) - (target - ZSTR_VAL(new_str)) > 16) {
3921 ZSTR_LEN(new_str) = target - ZSTR_VAL(new_str);
3951 if (ZSTR_LEN(subject_str) == 0) {
3974 if (ZSTR_LEN(search_str) == 0) {
3998 replace_len = ZSTR_LEN(replace_entry_str);
4008 if (ZSTR_LEN(search_str) == 1) {
4021 } else if (ZSTR_LEN(search_str) > 1) {
4024 ZSTR_VAL(search_str), ZSTR_LEN(search_str),
4376 end = ZSTR_VAL(str) + ZSTR_LEN(str);
4403 result = zend_string_safe_alloc(repl_cnt, repl_len, ZSTR_LEN(str), 0);
4463 buf = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), 0);
4464ZSTR_LEN(buf) = php_strip_tags_ex(ZSTR_VAL(buf), ZSTR_LEN(str), NULL, allowed_tags, allowed_tags_l…
4510 if (ZSTR_LEN(loc) >= 255) {
4523 if (ZSTR_LEN(loc) >= 5 && locp[2] == '_'
4550 if (len == ZSTR_LEN(loc) && !memcmp(ZSTR_VAL(loc), retval, len)) {
4558 } else if (len == ZSTR_LEN(loc) && !memcmp(ZSTR_VAL(loc), retval, len)) {
5012 php_fgetcsv(NULL, delim, enc, esc, ZSTR_LEN(str), ZSTR_VAL(str), return_value);
5037 if (ZSTR_LEN(input_str) == 0 || mult == 0)
5041 result = zend_string_safe_alloc(ZSTR_LEN(input_str), mult, 0, 0);
5042 result_len = ZSTR_LEN(input_str) * mult;
5045 if (ZSTR_LEN(input_str) == 1) {
5050 memcpy(ZSTR_VAL(result), ZSTR_VAL(input_str), ZSTR_LEN(input_str));
5052 e = ZSTR_VAL(result) + ZSTR_LEN(input_str);
5095 while (tmp < ZSTR_LEN(input)) {
5150 RETURN_LONG(strnatcmp_ex(ZSTR_VAL(s1), ZSTR_LEN(s1),
5151 ZSTR_VAL(s2), ZSTR_LEN(s2),
5161 …ZVAL_LONG(result, strnatcmp_ex(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2), cas…
5372 if (pad_length < 0 || (size_t)pad_length <= ZSTR_LEN(input)) {
5373 RETURN_STRINGL(ZSTR_VAL(input), ZSTR_LEN(input));
5386 num_pad_chars = pad_length - ZSTR_LEN(input);
5392 result = zend_string_safe_alloc(1, ZSTR_LEN(input), num_pad_chars, 0);
5393 ZSTR_LEN(result) = 0;
5415 ZSTR_VAL(result)[ZSTR_LEN(result)++] = pad_str[i % pad_str_len];
5418 memcpy(ZSTR_VAL(result) + ZSTR_LEN(result), ZSTR_VAL(input), ZSTR_LEN(input));
5419 ZSTR_LEN(result) += ZSTR_LEN(input);
5423 ZSTR_VAL(result)[ZSTR_LEN(result)++] = pad_str[i % pad_str_len];
5425 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0';
5467 if (ZSTR_LEN(arg) == 0) {
5511 RETVAL_STRINGL(ZSTR_VAL(arg), ZSTR_LEN(arg));
5547 if (!ZSTR_LEN(str)) {
5552 if (!ZSTR_LEN(str)) {
5567 e = ZSTR_VAL(str) + ZSTR_LEN(str);
5639 if ((res_len = strfmon(ZSTR_VAL(str), ZSTR_LEN(str), format, value)) < 0) {
5648 ZSTR_LEN(str) = strlen(ZSTR_VAL(str));
5650 ZSTR_LEN(str) = (size_t)res_len;
5652 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
5654 RETURN_NEW_STR(zend_string_truncate(str, ZSTR_LEN(str), 0));
5680 if (0 == ZSTR_LEN(str) || (size_t)split_length >= ZSTR_LEN(str)) {
5682 add_next_index_stringl(return_value, ZSTR_VAL(str), ZSTR_LEN(str));
5686 array_init_size(return_value, (uint32_t)(((ZSTR_LEN(str) - 1) / split_length) + 1));
5688 n_reg_segments = ZSTR_LEN(str) / split_length;
5696 if (p != (ZSTR_VAL(str) + ZSTR_LEN(str))) {
5697 add_next_index_stringl(return_value, p, (ZSTR_VAL(str) + ZSTR_LEN(str) - p));
5714 if (!ZSTR_LEN(char_list)) {
5719 …for (haystack_ptr = ZSTR_VAL(haystack); haystack_ptr < (ZSTR_VAL(haystack) + ZSTR_LEN(haystack)); …
5720 …for (cl_ptr = ZSTR_VAL(char_list); cl_ptr < (ZSTR_VAL(char_list) + ZSTR_LEN(char_list)); ++cl_ptr)…
5722 RETURN_STRINGL(haystack_ptr, (ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - haystack_ptr));
5760 offset = ZSTR_LEN(s1) + offset;
5764 if ((size_t)offset > ZSTR_LEN(s1)) {
5769 cmp_len = len ? (size_t)len : MAX(ZSTR_LEN(s2), (ZSTR_LEN(s1) - offset));
5772 …URN_LONG(zend_binary_strncmp(ZSTR_VAL(s1) + offset, (ZSTR_LEN(s1) - offset), ZSTR_VAL(s2), ZSTR_LE…
5774 …NG(zend_binary_strncasecmp_l(ZSTR_VAL(s1) + offset, (ZSTR_LEN(s1) - offset), ZSTR_VAL(s2), ZSTR_LE…
5787 ZSTR_LEN(str) = 0;
5793 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (char) c;
5797 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (0xc0 | (c >> 6));
5798 ZSTR_VAL(str)[ZSTR_LEN(str)++] = (0x80 | (c & 0x3f));
5803 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
5804 str = zend_string_truncate(str, ZSTR_LEN(str), 0);
5817 ZSTR_LEN(str) = 0;
5829 ZSTR_VAL(str)[ZSTR_LEN(str)++] = c;
5831 ZSTR_VAL(str)[ZSTR_LEN(str)] = '\0';
5832 if (ZSTR_LEN(str) < len) {
5833 str = zend_string_truncate(str, ZSTR_LEN(str), 0);