Home | History | Annotate | Download | only in _io

Lines Matching refs:endpos

1696     Py_ssize_t start, endpos, chunked, offset_to_buffer;
1731 start = endpos = offset_to_buffer = 0;
1754 endpos = _PyIO_find_line_ending(
1757 if (endpos >= 0) {
1758 endpos += start;
1759 if (limit >= 0 && (endpos - start) + chunked >= limit)
1760 endpos = start + limit - chunked;
1764 /* We can put aside up to `endpos` */
1765 endpos = consumed + start;
1766 if (limit >= 0 && (endpos - start) + chunked >= limit) {
1768 endpos = start + limit - chunked;
1772 if (endpos > start) {
1780 s = PyUnicode_FromUnicode(ptr + start, endpos - start);
1792 if (endpos < line_len) {
1794 ptr + endpos, line_len - endpos);
1805 self->decoded_chars_used = endpos - offset_to_buffer;
1806 if (start > 0 || endpos < PyUnicode_GET_SIZE(line)) {
1808 if (PyUnicode_Resize(&line, endpos) < 0)
1813 PyUnicode_AS_UNICODE(line) + start, endpos - start);