Home
last modified time | relevance | path

Searched refs:chars_decoded (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
D_pyio.py1747 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
1756 chars_decoded += len(decoder.decode(next_byte))
1758 if not dec_buffer and chars_decoded <= chars_to_skip:
1761 chars_to_skip -= chars_decoded
1762 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
1763 if chars_decoded >= chars_to_skip:
1767 chars_decoded += len(decoder.decode(b'', final=True))
1769 if chars_decoded < chars_to_skip:
/external/python/cpython3/Modules/_io/
Dtextio.c2601 Py_ssize_t chars_to_skip, chars_decoded; in _io_TextIOWrapper_tell_impl() local
2718 DECODER_DECODE(input, skip_bytes, chars_decoded); in _io_TextIOWrapper_tell_impl()
2719 if (chars_decoded <= chars_to_skip) { in _io_TextIOWrapper_tell_impl()
2724 chars_to_skip -= chars_decoded; in _io_TextIOWrapper_tell_impl()
2755 chars_decoded = 0; in _io_TextIOWrapper_tell_impl()
2764 chars_decoded += n; in _io_TextIOWrapper_tell_impl()
2768 if (dec_buffer_len == 0 && chars_decoded <= chars_to_skip) { in _io_TextIOWrapper_tell_impl()
2771 chars_to_skip -= chars_decoded; in _io_TextIOWrapper_tell_impl()
2774 chars_decoded = 0; in _io_TextIOWrapper_tell_impl()
2776 if (chars_decoded >= chars_to_skip) in _io_TextIOWrapper_tell_impl()
[all …]
/external/python/cpython2/Modules/_io/
Dtextio.c2198 Py_ssize_t chars_to_skip, chars_decoded; in textiowrapper_tell() local
2274 chars_decoded = 0; in textiowrapper_tell()
2287 chars_decoded += PyUnicode_GET_SIZE(decoded); in textiowrapper_tell()
2302 if (dec_buffer_len == 0 && chars_decoded <= chars_to_skip) { in textiowrapper_tell()
2305 chars_to_skip -= chars_decoded; in textiowrapper_tell()
2308 chars_decoded = 0; in textiowrapper_tell()
2310 if (chars_decoded >= chars_to_skip) in textiowrapper_tell()
2320 chars_decoded += PyUnicode_GET_SIZE(decoded); in textiowrapper_tell()
2324 if (chars_decoded < chars_to_skip) { in textiowrapper_tell()
/external/python/cpython3/Lib/
D_pyio.py2388 chars_decoded = 0
2391 chars_decoded += len(decoder.decode(next_input[i:i+1]))
2393 if not dec_buffer and chars_decoded <= chars_to_skip:
2396 chars_to_skip -= chars_decoded
2397 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
2398 if chars_decoded >= chars_to_skip:
2402 chars_decoded += len(decoder.decode(b'', final=True))
2404 if chars_decoded < chars_to_skip: