Searched refs:nneeded (Results 1 – 2 of 2) sorted by relevance
2154 Py_ssize_t nneeded; /* number of result bytes needed */ in PyUnicode_EncodeUTF8() local2223 nneeded = p - stackbuf; in PyUnicode_EncodeUTF8()2224 assert(nneeded <= nallocated); in PyUnicode_EncodeUTF8()2225 v = PyString_FromStringAndSize(stackbuf, nneeded); in PyUnicode_EncodeUTF8()2229 nneeded = p - PyString_AS_STRING(v); in PyUnicode_EncodeUTF8()2230 assert(nneeded <= nallocated); in PyUnicode_EncodeUTF8()2231 if (_PyString_Resize(&v, nneeded)) in PyUnicode_EncodeUTF8()
2087 Py_ssize_t nneeded; /* number of result bytes needed */ in PyUnicode_EncodeUTF8() local2156 nneeded = p - stackbuf; in PyUnicode_EncodeUTF8()2157 assert(nneeded <= nallocated); in PyUnicode_EncodeUTF8()2158 v = PyString_FromStringAndSize(stackbuf, nneeded); in PyUnicode_EncodeUTF8()2162 nneeded = p - PyString_AS_STRING(v); in PyUnicode_EncodeUTF8()2163 assert(nneeded <= nallocated); in PyUnicode_EncodeUTF8()2164 if (_PyString_Resize(&v, nneeded)) in PyUnicode_EncodeUTF8()