• Home
  • Raw
  • Download

Lines Matching refs:to_len

238                              const char *to_s, Py_ssize_t to_len,  in stringlib_replace_interleave()  argument
262 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_interleave()
267 result_len = count * to_len + self_len; in stringlib_replace_interleave()
276 if (to_len > 1) { in stringlib_replace_interleave()
278 memcpy(result_s, to_s, to_len); in stringlib_replace_interleave()
279 result_s += to_len; in stringlib_replace_interleave()
284 memcpy(result_s, to_s, to_len); in stringlib_replace_interleave()
285 result_s += to_len; in stringlib_replace_interleave()
290 result_s += to_len; in stringlib_replace_interleave()
295 result_s += to_len; in stringlib_replace_interleave()
453 const char *to_s, Py_ssize_t to_len, in stringlib_replace_substring_in_place() argument
505 const char *to_s, Py_ssize_t to_len, in stringlib_replace_single_character() argument
526 if (to_len - 1 > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_single_character()
530 result_len = self_len + count * (to_len - 1); in stringlib_replace_single_character()
547 memcpy(result_s, to_s, to_len); in stringlib_replace_single_character()
548 result_s += to_len; in stringlib_replace_single_character()
554 memcpy(result_s, to_s, to_len); in stringlib_replace_single_character()
555 result_s += to_len; in stringlib_replace_single_character()
569 const char *to_s, Py_ssize_t to_len, in stringlib_replace_substring() argument
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()
616 memcpy(result_s, to_s, to_len); in stringlib_replace_substring()
617 result_s += to_len; in stringlib_replace_substring()
623 memcpy(result_s, to_s, to_len); in stringlib_replace_substring()
624 result_s += to_len; in stringlib_replace_substring()
638 const char *to_s, Py_ssize_t to_len, in stringlib_replace() argument
650 if (to_len == 0) { in stringlib_replace()
657 return stringlib_replace_interleave(self, to_s, to_len, maxcount); in stringlib_replace()
667 if (to_len == 0) { in stringlib_replace()
680 if (from_len == to_len) { in stringlib_replace()
686 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()
693 self, from_s[0], to_s, to_len, maxcount); in stringlib_replace()
697 self, from_s, from_len, to_s, to_len, maxcount); in stringlib_replace()