Lines Matching refs:collend
3669 const Py_UNICODE *collend = p; in unicode_encode_ucs1() local
3671 while ((collend < endp) && ((*collend) >= limit)) in unicode_encode_ucs1()
3672 ++collend; in unicode_encode_ucs1()
3688 … raise_encode_exception(&exc, encoding, startp, size, collstart-startp, collend-startp, reason); in unicode_encode_ucs1()
3691 while (collstart++ < collend) in unicode_encode_ucs1()
3694 p = collend; in unicode_encode_ucs1()
3700 for (p = collstart; p < collend;) { in unicode_encode_ucs1()
3701 Py_UCS4 ch = _Py_UNICODE_NEXT(p, collend); in unicode_encode_ucs1()
3721 if (requiredsize > PY_SSIZE_T_MAX - (endp - collend)) in unicode_encode_ucs1()
3723 requiredsize += endp - collend; in unicode_encode_ucs1()
3733 for (p = collstart; p < collend;) { in unicode_encode_ucs1()
3734 Py_UCS4 ch = _Py_UNICODE_NEXT(p, collend); in unicode_encode_ucs1()
3737 p = collend; in unicode_encode_ucs1()
3742 … collstart-startp, collend-startp, &newpos); in unicode_encode_ucs1()
3753 if (requiredsize > PY_SSIZE_T_MAX - (endp - collend)) in unicode_encode_ucs1()
3755 requiredsize += endp - collend; in unicode_encode_ucs1()
5106 const Py_UNICODE *collend = p+1; in PyUnicode_TranslateCharmap() local
5110 while (collend < endp) { in PyUnicode_TranslateCharmap()
5111 if (charmaptranslate_lookup(*collend, mapping, &x)) in PyUnicode_TranslateCharmap()
5116 ++collend; in PyUnicode_TranslateCharmap()
5134 … raise_translate_exception(&exc, startp, size, collstart-startp, collend-startp, reason); in PyUnicode_TranslateCharmap()
5138 for (coll = collstart; coll<collend; ++coll) in PyUnicode_TranslateCharmap()
5142 p = collend; in PyUnicode_TranslateCharmap()
5146 for (p = collstart; p < collend;) { in PyUnicode_TranslateCharmap()
5149 Py_UCS4 ch = _Py_UNICODE_NEXT(p, collend); in PyUnicode_TranslateCharmap()
5152 … (str-PyUnicode_AS_UNICODE(res))+strlen(buffer)+(endp-collend))) in PyUnicode_TranslateCharmap()
5157 p = collend; in PyUnicode_TranslateCharmap()
5162 … collstart-startp, collend-startp, &newpos); in PyUnicode_TranslateCharmap()
5168 … (str-PyUnicode_AS_UNICODE(res))+repsize+(endp-collend))) { in PyUnicode_TranslateCharmap()
5248 Py_UNICODE *collend; in PyUnicode_EncodeDecimal() local
5268 for (collend = p+1; collend < end; collend++) { in PyUnicode_EncodeDecimal()
5269 if ((0 < *collend && *collend < 256) || in PyUnicode_EncodeDecimal()
5270 Py_UNICODE_ISSPACE(*collend) || in PyUnicode_EncodeDecimal()
5271 0 <= Py_UNICODE_TODECIMAL(*collend)) in PyUnicode_EncodeDecimal()
5290 raise_encode_exception(&exc, encoding, s, length, collstart-s, collend-s, reason); in PyUnicode_EncodeDecimal()
5293 for (p = collstart; p < collend; ++p) in PyUnicode_EncodeDecimal()
5297 p = collend; in PyUnicode_EncodeDecimal()
5301 for (p = collstart; p < collend;) { in PyUnicode_EncodeDecimal()
5302 Py_UCS4 ch = _Py_UNICODE_NEXT(p, collend); in PyUnicode_EncodeDecimal()
5305 p = collend; in PyUnicode_EncodeDecimal()
5310 collstart-s, collend-s, &newpos); in PyUnicode_EncodeDecimal()
5328 s, length, collstart-s, collend-s, reason); in PyUnicode_EncodeDecimal()