Home | History | Annotate | Download | only in Objects

Lines Matching refs:from_len

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

1667 const char *from_s, Py_ssize_t from_len,
1680 from_s, from_len,
1688 result_len = self_len - (count * from_len);
1701 from_s, from_len,
1710 start = next+from_len;
1764 const char *from_s, Py_ssize_t from_len,
1779 from_s, from_len,
1795 Py_MEMCPY(start, to_s, from_len);
1796 start += from_len;
1801 from_s, from_len,
1805 Py_MEMCPY(start+offset, to_s, from_len);
1806 start += offset+from_len;
1882 const char *from_s, Py_ssize_t from_len,
1896 from_s, from_len,
1905 /* result_len = self_len + count * (to_len-from_len) */
1906 product = count * (to_len-from_len);
1907 if (product / (to_len-from_len) != count) {
1926 from_s, from_len,
1935 start += from_len;
1942 start = next+from_len;
1954 const char *from_s, Py_ssize_t from_len,
1966 (from_len == 0 && to_len == 0)) {
1973 if (from_len == 0) {
1989 if (from_len == 1) {
1993 return replace_delete_substring(self, from_s, from_len, maxcount);
1999 if (from_len == to_len) {
2000 if (from_len == 1) {
2008 self, from_s, from_len, to_s, to_len, maxcount);
2013 if (from_len == 1) {
2018 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount);