Lines Matching refs:new_str
3186 char *new_str = safe_emalloc(4, (length?length:(length=strlen(str))), 1); local
3198 for (source = str, end = source + length, target = new_str; source < end; source++) {
3220 newlen = target - new_str;
3221 if (target - new_str < length * 4) {
3222 new_str = erealloc(new_str, newlen + 1);
3230 return new_str;
3247 char *new_str; local
3259 new_str = (char *) safe_emalloc(2, (length ? length : (length = strlen(str))), 1);
3262 target = new_str;
3303 *new_length = target - new_str;
3307 new_str = (char *) erealloc(new_str, *new_length + 1);
3308 return new_str;
3401 char *new_str; local
3408 new_str = estrndup(haystack, length);
3412 end = new_str + length;
3413 for (p = new_str; (r = php_memnstr(p, needle, needle_len, end)); p = r + needle_len) {
3426 memcpy(new_str + (r - haystack_dup), str, str_len);
3434 return new_str;
3444 new_str = emalloc(length + 1);
3470 new_str = estrndup(haystack, length);
3474 return new_str;
3476 new_str = safe_emalloc(count, str_len - needle_len, length + 1);
3480 e = s = new_str;
3527 new_str = erealloc(new_str, *_new_length + 1);
3528 return new_str;
3533 new_str = estrndup(haystack, length);
3534 return new_str;
3557 new_str = estrndup(str, str_len);
3562 return new_str;