• Home
  • Raw
  • Download

Lines Matching refs:from_len

395                                    const char *from_s, Py_ssize_t from_len,  in stringlib_replace_delete_substring()  argument
408 from_s, from_len, in stringlib_replace_delete_substring()
416 result_len = self_len - (count * from_len); in stringlib_replace_delete_substring()
429 from_s, from_len, in stringlib_replace_delete_substring()
438 start = next + from_len; in stringlib_replace_delete_substring()
494 const char *from_s, Py_ssize_t from_len, in stringlib_replace_substring_in_place() argument
509 from_s, from_len, in stringlib_replace_substring_in_place()
526 memcpy(start, to_s, from_len); in stringlib_replace_substring_in_place()
527 start += from_len; in stringlib_replace_substring_in_place()
532 from_s, from_len, in stringlib_replace_substring_in_place()
536 memcpy(start + offset, to_s, from_len); in stringlib_replace_substring_in_place()
537 start += offset + from_len; in stringlib_replace_substring_in_place()
610 const char *from_s, Py_ssize_t from_len, in stringlib_replace_substring() argument
624 from_s, from_len, in stringlib_replace_substring()
635 if (to_len - from_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_substring()
639 result_len = self_len + count * (to_len - from_len); in stringlib_replace_substring()
651 from_s, from_len, in stringlib_replace_substring()
660 start += from_len; in stringlib_replace_substring()
667 start = next + from_len; in stringlib_replace_substring()
679 const char *from_s, Py_ssize_t from_len, in stringlib_replace() argument
683 if (STRINGLIB_LEN(self) < from_len) { in stringlib_replace()
695 if (from_len == 0) { in stringlib_replace()
708 if (from_len == 1) { in stringlib_replace()
713 self, from_s, from_len, maxcount); in stringlib_replace()
719 if (from_len == to_len) { in stringlib_replace()
720 if (from_len == 1) { in stringlib_replace()
725 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()
730 if (from_len == 1) { in stringlib_replace()
736 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()