Lines Matching refs:newpos
1471 Py_ssize_t newpos; in unicode_decode_call_errorhandler() local
1504 if (!PyArg_ParseTuple(restuple, argparse, &PyUnicode_Type, &repunicode, &newpos)) in unicode_decode_call_errorhandler()
1506 if (newpos<0) in unicode_decode_call_errorhandler()
1507 newpos = insize+newpos; in unicode_decode_call_errorhandler()
1508 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler()
1509 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler()
1523 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler()
1525 requiredsize += insize - newpos; in unicode_decode_call_errorhandler()
1533 *endinpos = newpos; in unicode_decode_call_errorhandler()
1534 *inptr = input + newpos; in unicode_decode_call_errorhandler()
3571 Py_ssize_t *newpos) in unicode_encode_call_errorhandler() argument
3599 &resunicode, newpos)) { in unicode_encode_call_errorhandler()
3603 if (*newpos<0) in unicode_encode_call_errorhandler()
3604 *newpos = size+*newpos; in unicode_encode_call_errorhandler()
3605 if (*newpos<0 || *newpos>size) { in unicode_encode_call_errorhandler()
3606 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos); in unicode_encode_call_errorhandler()
3664 Py_ssize_t newpos; in unicode_encode_ucs1() local
3742 … collstart-startp, collend-startp, &newpos); in unicode_encode_ucs1()
3778 p = startp + newpos; in unicode_encode_ucs1()
4654 Py_ssize_t newpos; in charmap_encoding_error() local
4748 collstartpos, collendpos, &newpos); in charmap_encoding_error()
4764 *inpos = newpos; in charmap_encoding_error()
4891 Py_ssize_t *newpos) in unicode_translate_call_errorhandler() argument
4925 *newpos = size+i_newpos; in unicode_translate_call_errorhandler()
4927 *newpos = i_newpos; in unicode_translate_call_errorhandler()
4928 if (*newpos<0 || *newpos>size) { in unicode_translate_call_errorhandler()
4929 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos); in unicode_translate_call_errorhandler()
5102 Py_ssize_t newpos; in PyUnicode_TranslateCharmap() local
5162 … collstart-startp, collend-startp, &newpos); in PyUnicode_TranslateCharmap()
5174 p = startp + newpos; in PyUnicode_TranslateCharmap()
5245 Py_ssize_t newpos; in PyUnicode_EncodeDecimal() local
5310 collstart-s, collend-s, &newpos); in PyUnicode_EncodeDecimal()
5333 p = s + newpos; in PyUnicode_EncodeDecimal()