• Home
  • Raw
  • Download

Lines Matching refs:maxcount

2335 countchar(const char *target, Py_ssize_t target_len, char c, Py_ssize_t maxcount)  in countchar()  argument
2343 if (count >= maxcount) in countchar()
2357 Py_ssize_t maxcount) in replace_interleave() argument
2368 if (maxcount < count) in replace_interleave()
2369 count = maxcount; in replace_interleave()
2416 char from_c, Py_ssize_t maxcount) in replace_delete_single_character() argument
2427 count = countchar(self_s, self_len, from_c, maxcount); in replace_delete_single_character()
2460 Py_ssize_t maxcount) { in replace_delete_substring() argument
2472 maxcount); in replace_delete_substring()
2511 Py_ssize_t maxcount) in replace_single_character_in_place() argument
2541 while (--maxcount > 0) { in replace_single_character_in_place()
2557 Py_ssize_t maxcount) in replace_substring_in_place() argument
2590 while ( --maxcount > 0) { in replace_substring_in_place()
2608 Py_ssize_t maxcount) in replace_single_character() argument
2619 count = countchar(self_s, self_len, from_c, maxcount); in replace_single_character()
2675 Py_ssize_t maxcount) { in replace_substring() argument
2687 maxcount); in replace_substring()
2746 Py_ssize_t maxcount) in replace() argument
2748 if (maxcount < 0) { in replace()
2749 maxcount = PY_SSIZE_T_MAX; in replace()
2750 } else if (maxcount == 0 || PyString_GET_SIZE(self) == 0) { in replace()
2755 if (maxcount == 0 || in replace()
2767 return replace_interleave(self, to_s, to_len, maxcount); in replace()
2781 self, from_s[0], maxcount); in replace()
2783 return replace_delete_substring(self, from_s, from_len, maxcount); in replace()
2795 maxcount); in replace()
2798 self, from_s, from_len, to_s, to_len, maxcount); in replace()
2805 to_s, to_len, maxcount); in replace()
2808 return replace_substring(self, from_s, from_len, to_s, to_len, maxcount); in replace()