Home
last modified time | relevance | path

Searched refs:collend (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dunicodeobject.c3669 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()
[all …]
/external/python/cpython3/Objects/
Dunicodeobject.c626 PyObject *unicode, Py_ssize_t collstart, Py_ssize_t collend) in backslashreplace() argument
639 for (i = collstart; i < collend; ++i) { in backslashreplace()
664 for (i = collstart; i < collend; ++i) { in backslashreplace()
693 PyObject *unicode, Py_ssize_t collstart, Py_ssize_t collend) in xmlcharrefreplace() argument
706 for (i = collstart; i < collend; ++i) { in xmlcharrefreplace()
739 for (i = collstart; i < collend; ++i) { in xmlcharrefreplace()
6771 Py_ssize_t collend = collstart + 1; in unicode_encode_ucs1() local
6774 while ((collend < size) && (PyUnicode_READ(kind, data, collend) >= limit)) in unicode_encode_ucs1()
6775 ++collend; in unicode_encode_ucs1()
6778 writer.overallocate = (collend < size); in unicode_encode_ucs1()
[all …]