Searched refs:expandsize (Results 1 – 3 of 3) sorted by relevance
3049 const Py_ssize_t expandsize = 10; in unicodeescape_string() local3051 const Py_ssize_t expandsize = 6; in unicodeescape_string() local3072 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() local3334 const Py_ssize_t expandsize = 6; in PyUnicode_EncodeRawUnicodeEscape() local3337 if (size > PY_SSIZE_T_MAX / expandsize) in PyUnicode_EncodeRawUnicodeEscape()3340 repr = PyString_FromStringAndSize(NULL, expandsize * size); in PyUnicode_EncodeRawUnicodeEscape()
1333 const Py_ssize_t expandsize = 10; in modified_EncodeRawUnicodeEscape() local1335 const Py_ssize_t expandsize = 6; in modified_EncodeRawUnicodeEscape() local1338 if (size > PY_SSIZE_T_MAX / expandsize) in modified_EncodeRawUnicodeEscape()1341 repr = PyString_FromStringAndSize(NULL, expandsize * size); in modified_EncodeRawUnicodeEscape()
6169 Py_ssize_t expandsize; in PyUnicode_AsUnicodeEscapeString() local6196 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() local6441 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()