Lines Matching refs:newpos
313 Py_ssize_t startpos, Py_ssize_t endpos, Py_ssize_t *newpos);
4121 Py_ssize_t newpos; in unicode_decode_call_errorhandler_wchar() local
4150 if (!PyArg_ParseTuple(restuple, argparse, &repunicode, &newpos)) in unicode_decode_call_errorhandler_wchar()
4165 if (newpos<0) in unicode_decode_call_errorhandler_wchar()
4166 newpos = insize+newpos; in unicode_decode_call_errorhandler_wchar()
4167 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler_wchar()
4168 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler_wchar()
4183 if (requiredsize > PY_SSIZE_T_MAX - (insize - newpos)) in unicode_decode_call_errorhandler_wchar()
4185 requiredsize += insize - newpos; in unicode_decode_call_errorhandler_wchar()
4194 *endinpos = newpos; in unicode_decode_call_errorhandler_wchar()
4195 *inptr = *input + newpos; in unicode_decode_call_errorhandler_wchar()
4224 Py_ssize_t newpos; in unicode_decode_call_errorhandler_writer() local
4252 if (!PyArg_ParseTuple(restuple, argparse, &repunicode, &newpos)) in unicode_decode_call_errorhandler_writer()
4268 if (newpos<0) in unicode_decode_call_errorhandler_writer()
4269 newpos = insize+newpos; in unicode_decode_call_errorhandler_writer()
4270 if (newpos<0 || newpos>insize) { in unicode_decode_call_errorhandler_writer()
4271 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos); in unicode_decode_call_errorhandler_writer()
4280 new_inptr = *input + newpos; in unicode_decode_call_errorhandler_writer()
4299 *endinpos = newpos; in unicode_decode_call_errorhandler_writer()
6670 Py_ssize_t *newpos) in unicode_encode_call_errorhandler() argument
6702 &resunicode, newpos)) { in unicode_encode_call_errorhandler()
6711 if (*newpos<0) in unicode_encode_call_errorhandler()
6712 *newpos = len + *newpos; in unicode_encode_call_errorhandler()
6713 if (*newpos<0 || *newpos>len) { in unicode_encode_call_errorhandler()
6714 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos); in unicode_encode_call_errorhandler()
6768 Py_ssize_t newpos, i; in unicode_encode_ucs1() local
6836 collstart, collend, &newpos); in unicode_encode_ucs1()
6841 writer.min_size -= newpos - collstart; in unicode_encode_ucs1()
6872 pos = newpos; in unicode_encode_ucs1()
7541 Py_ssize_t newpos, newoutsize; in encode_code_page_errors() local
7630 pos, pos + 1, &newpos); in encode_code_page_errors()
7633 pos = newpos; in encode_code_page_errors()
8401 Py_ssize_t newpos; in charmap_encoding_error() local
8489 collstartpos, collendpos, &newpos); in charmap_encoding_error()
8507 *inpos = newpos; in charmap_encoding_error()
8532 *inpos = newpos; in charmap_encoding_error()
8670 Py_ssize_t *newpos) in unicode_translate_call_errorhandler() argument
8704 *newpos = PyUnicode_GET_LENGTH(unicode)+i_newpos; in unicode_translate_call_errorhandler()
8706 *newpos = i_newpos; in unicode_translate_call_errorhandler()
8707 if (*newpos<0 || *newpos>PyUnicode_GET_LENGTH(unicode)) { in unicode_translate_call_errorhandler()
8708 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos); in unicode_translate_call_errorhandler()
8988 Py_ssize_t newpos; in _PyUnicode_TranslateCharmap() local
9027 collstart, collend, &newpos); in _PyUnicode_TranslateCharmap()
9035 i = newpos; in _PyUnicode_TranslateCharmap()