Lines Matching refs:moreunits
5861 Py_ssize_t newpos, repsize, moreunits;
5890 moreunits = repsize / 4;
5896 moreunits = repsize = PyUnicode_GET_LENGTH(rep);
5904 moreunits += pos - newpos;
5908 if (moreunits > 0) {
5910 if (moreunits >= (PY_SSIZE_T_MAX - PyBytes_GET_SIZE(v)) / 4) {
5915 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 4 * moreunits) < 0)
6200 Py_ssize_t newpos, repsize, moreunits;
6229 moreunits = repsize / 2;
6235 moreunits = repsize = PyUnicode_GET_LENGTH(rep);
6243 moreunits += pos - newpos;
6247 if (moreunits > 0) {
6249 if (moreunits >= (PY_SSIZE_T_MAX - PyBytes_GET_SIZE(v)) / 2) {
6254 if (_PyBytes_Resize(&v, PyBytes_GET_SIZE(v) + 2 * moreunits) < 0)