Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dunicodeobject.c5448 Py_ssize_t repsize, moreunits; in _PyUnicode_EncodeUTF32() local
5477 moreunits = repsize / 4; in _PyUnicode_EncodeUTF32()
5483 moreunits = repsize = PyUnicode_GET_LENGTH(rep); in _PyUnicode_EncodeUTF32()
5493 if (moreunits > 1) { in _PyUnicode_EncodeUTF32()
5495 if (moreunits >= (PY_SSIZE_T_MAX - PyBytes_GET_SIZE(v)) / 4) { in _PyUnicode_EncodeUTF32()
5500 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 4 * (moreunits - 1)) < 0) in _PyUnicode_EncodeUTF32()
5507 out += moreunits; in _PyUnicode_EncodeUTF32()
5800 Py_ssize_t repsize, moreunits; in _PyUnicode_EncodeUTF16() local
5829 moreunits = repsize / 2; in _PyUnicode_EncodeUTF16()
5835 moreunits = repsize = PyUnicode_GET_LENGTH(rep); in _PyUnicode_EncodeUTF16()
[all …]