Home | History | Annotate | Download | only in Objects

Lines Matching refs:from_len

1636     result_len = self_len - count;  /* from_len == 1 */

1663 const char *from_s, Py_ssize_t from_len,
1676 from_s, from_len,
1684 result_len = self_len - (count * from_len);
1697 from_s, from_len,
1706 start = next+from_len;
1760 const char *from_s, Py_ssize_t from_len,
1775 from_s, from_len,
1791 Py_MEMCPY(start, to_s, from_len);
1792 start += from_len;
1797 from_s, from_len,
1801 Py_MEMCPY(start+offset, to_s, from_len);
1802 start += offset+from_len;
1878 const char *from_s, Py_ssize_t from_len,
1892 from_s, from_len,
1901 /* result_len = self_len + count * (to_len-from_len) */
1902 product = count * (to_len-from_len);
1903 if (product / (to_len-from_len) != count) {
1922 from_s, from_len,
1931 start += from_len;
1938 start = next+from_len;
1950 const char *from_s, Py_ssize_t from_len,
1962 (from_len == 0 && to_len == 0)) {
1969 if (from_len == 0) {
1985 if (from_len == 1) {
1989 return replace_delete_substring(self, from_s, from_len, maxcount);
1995 if (from_len == to_len) {
1996 if (from_len == 1) {
2004 self, from_s, from_len, to_s, to_len, maxcount);
2009 if (from_len == 1) {
2014 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount);