Lines Matching refs:from_len

353                                    const char *from_s, Py_ssize_t from_len,  in stringlib_replace_delete_substring()  argument
366 from_s, from_len, in stringlib_replace_delete_substring()
374 result_len = self_len - (count * from_len); in stringlib_replace_delete_substring()
387 from_s, from_len, in stringlib_replace_delete_substring()
396 start = next + from_len; in stringlib_replace_delete_substring()
452 const char *from_s, Py_ssize_t from_len, in stringlib_replace_substring_in_place() argument
467 from_s, from_len, in stringlib_replace_substring_in_place()
484 memcpy(start, to_s, from_len); in stringlib_replace_substring_in_place()
485 start += from_len; in stringlib_replace_substring_in_place()
490 from_s, from_len, in stringlib_replace_substring_in_place()
494 memcpy(start + offset, to_s, from_len); in stringlib_replace_substring_in_place()
495 start += offset + from_len; in stringlib_replace_substring_in_place()
568 const char *from_s, Py_ssize_t from_len, in stringlib_replace_substring() argument
582 from_s, from_len, in stringlib_replace_substring()
593 if (to_len - from_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_substring()
597 result_len = self_len + count * (to_len - from_len); in stringlib_replace_substring()
609 from_s, from_len, in stringlib_replace_substring()
618 start += from_len; in stringlib_replace_substring()
625 start = next + from_len; in stringlib_replace_substring()
637 const char *from_s, Py_ssize_t from_len, in stringlib_replace() argument
649 if (from_len == 0) { in stringlib_replace()
669 if (from_len == 1) { in stringlib_replace()
674 self, from_s, from_len, maxcount); in stringlib_replace()
680 if (from_len == to_len) { in stringlib_replace()
681 if (from_len == 1) { in stringlib_replace()
686 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()
691 if (from_len == 1) { in stringlib_replace()
697 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()