Home
last modified time | relevance | path

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

/external/python/cpython2/Objects/
Dunicodeobject.c3049 const Py_ssize_t expandsize = 10; in unicodeescape_string() local
3051 const Py_ssize_t expandsize = 6; in unicodeescape_string() local
3072 if (size > (PY_SSIZE_T_MAX - 2 - 1) / expandsize) in unicodeescape_string()
3077 + expandsize*size in unicodeescape_string()
3332 const Py_ssize_t expandsize = 10; in PyUnicode_EncodeRawUnicodeEscape() local
3334 const Py_ssize_t expandsize = 6; in PyUnicode_EncodeRawUnicodeEscape() local
3337 if (size > PY_SSIZE_T_MAX / expandsize) in PyUnicode_EncodeRawUnicodeEscape()
3340 repr = PyString_FromStringAndSize(NULL, expandsize * size); in PyUnicode_EncodeRawUnicodeEscape()
/external/python/cpython2/Modules/
DcPickle.c1333 const Py_ssize_t expandsize = 10; in modified_EncodeRawUnicodeEscape() local
1335 const Py_ssize_t expandsize = 6; in modified_EncodeRawUnicodeEscape() local
1338 if (size > PY_SSIZE_T_MAX / expandsize) in modified_EncodeRawUnicodeEscape()
1341 repr = PyString_FromStringAndSize(NULL, expandsize * size); in modified_EncodeRawUnicodeEscape()
/external/python/cpython3/Objects/
Dunicodeobject.c6169 Py_ssize_t expandsize; in PyUnicode_AsUnicodeEscapeString() local
6196 expandsize = kind * 2 + 2; in PyUnicode_AsUnicodeEscapeString()
6197 if (len > PY_SSIZE_T_MAX / expandsize) { in PyUnicode_AsUnicodeEscapeString()
6200 repr = PyBytes_FromStringAndSize(NULL, expandsize * len); in PyUnicode_AsUnicodeEscapeString()
6420 Py_ssize_t expandsize, pos; in PyUnicode_AsRawUnicodeEscapeString() local
6441 expandsize = kind * 2 + 2; in PyUnicode_AsRawUnicodeEscapeString()
6443 if (len > PY_SSIZE_T_MAX / expandsize) { in PyUnicode_AsRawUnicodeEscapeString()
6446 repr = PyBytes_FromStringAndSize(NULL, expandsize * len); in PyUnicode_AsRawUnicodeEscapeString()