Lines Matching defs:in
34 "After the underlying buffer has been detached, the TextIO is in an\n"
180 "Codec used when reading a file in universal newlines mode. It wraps\n"
183 "translate=False, it ensures that the newline sequence is returned in\n"
303 * then readline() is sure to get \r\n in one pass
327 all in one pass. */
349 (there's nothing else to be done, even when in translation mode)
407 Py_UNICODE *in, *out, *end;
412 translation is done in place. */
425 in = in_str;
431 while ((c = *in++) > '\r')
439 if (*in == '\n') {
440 in++;
448 if (in > end)
638 " enabled. Lines in the input can end in '\\n', '\\r', or '\\r\\n', and\n"
682 /* Reads and writes are internally buffered in order to speed things up.
688 IncrementalEncoder (whose encode() method is always written in Python)
700 * snapshot point. We use this to reconstruct decoder states in tell().
711 /* A couple of specialized cases in order to bypass the slow incremental
1343 /* Steal a reference to chars and store it in the decoded_char buffer;
1397 * placed in self._decoded_chars (replacing its previous value). The
1399 * buffered in the decoder, yet to be converted.
1408 /* To prepare for tell(), we need to snapshot a point in the file
1428 /* Read a chunk, decode it, and put the result in self._decoded_chars. */
1628 * The decoder ensures that \r\n are not split in two pieces
1804 /* Our line ends in the current buffer */
1886 To speed up cookie packing/unpacking, we store the fields in a temporary
1888 The following macros define at which offsets in the intermediary byte
1899 significant byte of the cookie, which means that in big-endian mode we
1900 must copy the fields in reverse order. */
1969 at start is not (b"", 0) but e.g. (b"", 2) (meaning, in the case of
2147 self->snapshot = Py_BuildValue("iN", cookie.dec_flags, input_chunk);