Lines Matching refs:from_len
1692 const char *from_s, Py_ssize_t from_len, in replace_delete_substring() argument
1705 from_s, from_len, in replace_delete_substring()
1713 result_len = self_len - (count * from_len); in replace_delete_substring()
1726 from_s, from_len, in replace_delete_substring()
1735 start = next+from_len; in replace_delete_substring()
1789 const char *from_s, Py_ssize_t from_len, in replace_substring_in_place() argument
1804 from_s, from_len, in replace_substring_in_place()
1820 Py_MEMCPY(start, to_s, from_len); in replace_substring_in_place()
1821 start += from_len; in replace_substring_in_place()
1826 from_s, from_len, in replace_substring_in_place()
1830 Py_MEMCPY(start+offset, to_s, from_len); in replace_substring_in_place()
1831 start += offset+from_len; in replace_substring_in_place()
1903 const char *from_s, Py_ssize_t from_len, in replace_substring() argument
1917 from_s, from_len, in replace_substring()
1928 if (to_len - from_len > (PY_SSIZE_T_MAX - self_len) / count) { in replace_substring()
1932 result_len = self_len + count * (to_len - from_len); in replace_substring()
1943 from_s, from_len, in replace_substring()
1952 start += from_len; in replace_substring()
1959 start = next+from_len; in replace_substring()
1971 const char *from_s, Py_ssize_t from_len, in replace() argument
1983 (from_len == 0 && to_len == 0)) { in replace()
1990 if (from_len == 0) { in replace()
2006 if (from_len == 1) { in replace()
2010 return replace_delete_substring(self, from_s, from_len, maxcount); in replace()
2016 if (from_len == to_len) { in replace()
2017 if (from_len == 1) { in replace()
2025 self, from_s, from_len, to_s, to_len, maxcount); in replace()
2030 if (from_len == 1) { in replace()
2035 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount); in replace()