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.c2642 Py_ssize_t chars_to_skip, chars_decoded; in _io_TextIOWrapper_tell_impl() local
2759 DECODER_DECODE(input, skip_bytes, chars_decoded); in _io_TextIOWrapper_tell_impl()
2760 if (chars_decoded <= chars_to_skip) { in _io_TextIOWrapper_tell_impl()
2765 chars_to_skip -= chars_decoded; in _io_TextIOWrapper_tell_impl()
2796 chars_decoded = 0; in _io_TextIOWrapper_tell_impl()
2805 chars_decoded += n; in _io_TextIOWrapper_tell_impl()
2809 if (dec_buffer_len == 0 && chars_decoded <= chars_to_skip) { in _io_TextIOWrapper_tell_impl()
2812 chars_to_skip -= chars_decoded; in _io_TextIOWrapper_tell_impl()
2815 chars_decoded = 0; in _io_TextIOWrapper_tell_impl()
2817 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.py2395 chars_decoded = 0
2398 chars_decoded += len(decoder.decode(next_input[i:i+1]))
2400 if not dec_buffer and chars_decoded <= chars_to_skip:
2403 chars_to_skip -= chars_decoded
2404 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
2405 if chars_decoded >= chars_to_skip:
2409 chars_decoded += len(decoder.decode(b'', final=True))
2411 if chars_decoded < chars_to_skip: