Lines Matching refs:endpos
2111 Py_ssize_t start, endpos, chunked, offset_to_buffer;
2147 start = endpos = offset_to_buffer = 0;
2173 endpos = _PyIO_find_line_ending(
2179 if (endpos >= 0) {
2180 endpos += start;
2181 if (limit >= 0 && (endpos - start) + chunked >= limit)
2182 endpos = start + limit - chunked;
2186 /* We can put aside up to `endpos` */
2187 endpos = consumed + start;
2188 if (limit >= 0 && (endpos - start) + chunked >= limit) {
2190 endpos = start + limit - chunked;
2194 if (endpos > start) {
2202 s = PyUnicode_Substring(line, start, endpos);
2214 if (endpos < line_len) {
2215 remaining = PyUnicode_Substring(line, endpos, line_len);
2226 self->decoded_chars_used = endpos - offset_to_buffer;
2227 if (start > 0 || endpos < PyUnicode_GET_LENGTH(line)) {
2228 PyObject *s = PyUnicode_Substring(line, start, endpos);