• Home
  • Raw
  • Download

Lines Matching refs:to_len

280                              const char *to_s, Py_ssize_t to_len,  in stringlib_replace_interleave()  argument
304 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_interleave()
309 result_len = count * to_len + self_len; in stringlib_replace_interleave()
318 if (to_len > 1) { in stringlib_replace_interleave()
320 memcpy(result_s, to_s, to_len); in stringlib_replace_interleave()
321 result_s += to_len; in stringlib_replace_interleave()
326 memcpy(result_s, to_s, to_len); in stringlib_replace_interleave()
327 result_s += to_len; in stringlib_replace_interleave()
332 result_s += to_len; in stringlib_replace_interleave()
337 result_s += to_len; in stringlib_replace_interleave()
495 const char *to_s, Py_ssize_t to_len, in stringlib_replace_substring_in_place() argument
547 const char *to_s, Py_ssize_t to_len, in stringlib_replace_single_character() argument
568 if (to_len - 1 > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_single_character()
572 result_len = self_len + count * (to_len - 1); in stringlib_replace_single_character()
589 memcpy(result_s, to_s, to_len); in stringlib_replace_single_character()
590 result_s += to_len; in stringlib_replace_single_character()
596 memcpy(result_s, to_s, to_len); in stringlib_replace_single_character()
597 result_s += to_len; in stringlib_replace_single_character()
611 const char *to_s, Py_ssize_t to_len, in stringlib_replace_substring() argument
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()
658 memcpy(result_s, to_s, to_len); in stringlib_replace_substring()
659 result_s += to_len; in stringlib_replace_substring()
665 memcpy(result_s, to_s, to_len); in stringlib_replace_substring()
666 result_s += to_len; in stringlib_replace_substring()
680 const char *to_s, Py_ssize_t to_len, in stringlib_replace() argument
692 if (to_len == 0) { in stringlib_replace()
699 return stringlib_replace_interleave(self, to_s, to_len, maxcount); in stringlib_replace()
709 if (to_len == 0) { in stringlib_replace()
722 if (from_len == to_len) { in stringlib_replace()
728 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()
735 self, from_s[0], to_s, to_len, maxcount); in stringlib_replace()
739 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()