Lines Matching defs:pos
1535 Py_ssize_t pos = 0;
1553 memcpy(buf + pos, src, len);
1554 pos += len;
1556 assert(pos == self->pending_bytes_count);
2030 const char *pos = find_control_char(kind, start, end, '\n');
2031 if (pos != NULL)
2032 return (pos - start)/kind + 1;
2072 const char *pos = find_control_char(kind, start, end, nl[0]);
2073 if (pos != NULL)
2074 return (pos - start)/kind + 1;
2081 const char *pos;
2086 const char *pos = find_control_char(kind, s, end, nl[0]);
2087 if (pos == NULL || pos >= e)
2090 if (PyUnicode_READ(kind, pos, i) != nl[i])
2094 return (pos - start)/kind + readnl_len;
2095 s = pos + kind;
2097 pos = find_control_char(kind, e, end, nl[0]);
2098 if (pos == NULL)
2101 *consumed = (pos - start)/kind;
2732 current pos */
2745 /* Before pos and no bytes buffered in decoder => OK */
2847 pos: object = None
2852 _io_TextIOWrapper_truncate_impl(textio *self, PyObject *pos)
2864 return PyObject_CallMethodOneArg(self->buffer, &_Py_ID(truncate), pos);