Lines Matching defs:start

23 [clinic start generated code]*/
226 [clinic start generated code]*/
491 [clinic start generated code]*/
503 [clinic start generated code]*/
548 [clinic start generated code]*/
584 [clinic start generated code]*/
655 /* Whether or not it's the start of the stream */
1061 [clinic start generated code]*/
1317 [clinic start generated code]*/
1485 [clinic start generated code]*/
1580 [clinic start generated code]*/
1895 [clinic start generated code]*/
2024 int kind, const char *start, const char *end, Py_ssize_t *consumed)
2026 Py_ssize_t len = (end - start)/kind;
2030 const char *pos = find_control_char(kind, start, end, '\n');
2032 return (pos - start)/kind + 1;
2042 const char *s = start;
2056 return (s - start)/kind;
2059 return (s - start)/kind + 1;
2061 return (s - start)/kind;
2072 const char *pos = find_control_char(kind, start, end, nl[0]);
2074 return (pos - start)/kind + 1;
2079 const char *s = start;
2094 return (pos - start)/kind + readnl_len;
2101 *consumed = (pos - start)/kind;
2111 Py_ssize_t start, endpos, chunked, offset_to_buffer;
2147 start = endpos = offset_to_buffer = 0;
2153 start = self->decoded_chars_used;
2160 start = 0;
2176 ptr + kind * start,
2180 endpos += start;
2181 if (limit >= 0 && (endpos - start) + chunked >= limit)
2182 endpos = start + limit - chunked;
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);
2227 if (start > 0 || endpos < PyUnicode_GET_LENGTH(line)) {
2228 PyObject *s = PyUnicode_Substring(line, start, endpos);
2273 [clinic start generated code]*/
2368 /* When seeking to the start of the stream, we call decoder.reset()
2371 at start is not (b"", 0) but e.g. (b"", 2) (meaning, in the case of
2420 [clinic start generated code]*/
2495 /* If seek() == 0, we are at the start of stream, otherwise not */
2529 /* The strategy of seek() is to go back to the safe start point
2535 /* Seek back to the safe start point. */
2548 /* Restore the decoder to its state from the safe start point. */
2614 [clinic start generated code]*/
2722 #define DECODER_DECODE(start, len, res) do { \
2724 self->decoder, &_Py_ID(decode), "y#", start, len); \
2731 /* Fast search for an acceptable start point, close to our
2738 /* Decode up to temptative start point */
2766 /* Note our initial start point. */
2774 * As we go, note the nearest "safe start point" before the current
2776 * can safely start from there and advance to this location).
2792 /* Decoder buffer is empty, so this is a safe start point. */
2828 /* The returned cookie corresponds to the last safe start point. */
2849 [clinic start generated code]*/
2937 [clinic start generated code]*/
2949 [clinic start generated code]*/
2961 [clinic start generated code]*/
2973 [clinic start generated code]*/
2985 [clinic start generated code]*/
2997 [clinic start generated code]*/
3013 [clinic start generated code]*/