Lines Matching refs:from_len
1672 const char *from_s, Py_ssize_t from_len, in replace_delete_substring() argument
1685 from_s, from_len, in replace_delete_substring()
1693 result_len = self_len - (count * from_len); in replace_delete_substring()
1706 from_s, from_len, in replace_delete_substring()
1715 start = next+from_len; in replace_delete_substring()
1769 const char *from_s, Py_ssize_t from_len, in replace_substring_in_place() argument
1784 from_s, from_len, in replace_substring_in_place()
1800 Py_MEMCPY(start, to_s, from_len); in replace_substring_in_place()
1801 start += from_len; in replace_substring_in_place()
1806 from_s, from_len, in replace_substring_in_place()
1810 Py_MEMCPY(start+offset, to_s, from_len); in replace_substring_in_place()
1811 start += offset+from_len; in replace_substring_in_place()
1887 const char *from_s, Py_ssize_t from_len, in replace_substring() argument
1901 from_s, from_len, in replace_substring()
1911 product = count * (to_len-from_len); in replace_substring()
1912 if (product / (to_len-from_len) != count) { in replace_substring()
1931 from_s, from_len, in replace_substring()
1940 start += from_len; in replace_substring()
1947 start = next+from_len; in replace_substring()
1959 const char *from_s, Py_ssize_t from_len, in replace() argument
1971 (from_len == 0 && to_len == 0)) { in replace()
1978 if (from_len == 0) { in replace()
1994 if (from_len == 1) { in replace()
1998 return replace_delete_substring(self, from_s, from_len, maxcount); in replace()
2004 if (from_len == to_len) { in replace()
2005 if (from_len == 1) { in replace()
2013 self, from_s, from_len, to_s, to_len, maxcount); in replace()
2018 if (from_len == 1) { in replace()
2023 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount); in replace()