Lines Matching refs:maxsplit
30 split_whitespace(char *s, Py_ssize_t len, Py_ssize_t maxsplit)
63 if (maxsplit && (countsplit >= maxsplit) && i < len) {
86 "split(s [,sep [,maxsplit]]) -> list of strings\n"
87 "splitfields(s [,sep [,maxsplit]]) -> list of strings\n"
90 "delimiter string. If maxsplit is nonzero, splits into at most\n"
91 "maxsplit words. If sep is not specified, any whitespace string\n"
100 Py_ssize_t splitcount, maxsplit;
108 maxsplit = 0;
109 if (!PyArg_ParseTuple(args, "t#|z#n:split", &s, &len, &sub, &n, &maxsplit))
112 return split_whitespace(s, len, maxsplit);
134 if (maxsplit && (splitcount >= maxsplit))
1163 "replace (str, old, new[, maxsplit]) -> string\n"
1166 "old replaced by new. If the optional argument maxsplit is\n"
1167 "given, only the first maxsplit occurrences are replaced.");