Home
last modified time | relevance | path

Searched refs:repsize (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dunicodeobject.c1473 Py_ssize_t repsize; in unicode_decode_call_errorhandler() local
1518 repsize = PyUnicode_GET_SIZE(repunicode); in unicode_decode_call_errorhandler()
1520 if (requiredsize > PY_SSIZE_T_MAX - repsize) in unicode_decode_call_errorhandler()
1522 requiredsize += repsize; in unicode_decode_call_errorhandler()
1535 Py_UNICODE_COPY(*outptr, repptr, repsize); in unicode_decode_call_errorhandler()
1536 *outptr += repsize; in unicode_decode_call_errorhandler()
1537 *outpos += repsize; in unicode_decode_call_errorhandler()
3663 Py_ssize_t repsize; in unicode_encode_ucs1() local
3749 repsize = PyUnicode_GET_SIZE(repunicode); in unicode_encode_ucs1()
3750 if (respos > PY_SSIZE_T_MAX - repsize) in unicode_encode_ucs1()
[all …]
/external/python/cpython3/Objects/
Dunicodeobject.c5448 Py_ssize_t repsize, moreunits; in _PyUnicode_EncodeUTF32() local
5470 repsize = PyBytes_GET_SIZE(rep); in _PyUnicode_EncodeUTF32()
5471 if (repsize & 3) { in _PyUnicode_EncodeUTF32()
5477 moreunits = repsize / 4; in _PyUnicode_EncodeUTF32()
5483 moreunits = repsize = PyUnicode_GET_LENGTH(rep); in _PyUnicode_EncodeUTF32()
5506 memcpy(out, PyBytes_AS_STRING(rep), repsize); in _PyUnicode_EncodeUTF32()
5510 ucs1lib_utf32_encode(PyUnicode_1BYTE_DATA(rep), repsize, in _PyUnicode_EncodeUTF32()
5800 Py_ssize_t repsize, moreunits; in _PyUnicode_EncodeUTF16() local
5822 repsize = PyBytes_GET_SIZE(rep); in _PyUnicode_EncodeUTF16()
5823 if (repsize & 1) { in _PyUnicode_EncodeUTF16()
[all …]