Lines Matching refs:outpos
4112 PyObject **output, Py_ssize_t *outpos) in unicode_decode_call_errorhandler_wchar() argument
4179 requiredsize = *outpos; in unicode_decode_call_errorhandler_wchar()
4192 wcsncpy(_PyUnicode_WSTR(*output) + *outpos, repwstr, repwlen); in unicode_decode_call_errorhandler_wchar()
4193 *outpos += repwlen; in unicode_decode_call_errorhandler_wchar()
4978 Py_ssize_t outpos; in _Py_DecodeUTF8Ex() local
4993 outpos = 0; in _Py_DecodeUTF8Ex()
4997 ch = ucs4lib_utf8_decode(&s, e, (Py_UCS4 *)unicode, &outpos); in _Py_DecodeUTF8Ex()
4999 ch = ucs2lib_utf8_decode(&s, e, (Py_UCS2 *)unicode, &outpos); in _Py_DecodeUTF8Ex()
5007 unicode[outpos++] = (wchar_t)Py_UNICODE_HIGH_SURROGATE(ch); in _Py_DecodeUTF8Ex()
5008 unicode[outpos++] = (wchar_t)Py_UNICODE_LOW_SURROGATE(ch); in _Py_DecodeUTF8Ex()
5036 unicode[outpos++] = 0xDC00 + (unsigned char)*s++; in _Py_DecodeUTF8Ex()
5039 unicode[outpos] = L'\0'; in _Py_DecodeUTF8Ex()
5041 *wlen = outpos; in _Py_DecodeUTF8Ex()
5494 Py_ssize_t outpos = out - (uint32_t*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF32() local
5502 out = (uint32_t*) PyBytes_AS_STRING(v) + outpos; in _PyUnicode_EncodeUTF32()
5846 Py_ssize_t outpos = out - (unsigned short*) PyBytes_AS_STRING(v); in _PyUnicode_EncodeUTF16() local
5854 out = (unsigned short*) PyBytes_AS_STRING(v) + outpos; in _PyUnicode_EncodeUTF16()
6947 Py_ssize_t outpos; in PyUnicode_DecodeASCII() local
6967 outpos = ascii_decode(s, e, (Py_UCS1 *)data); in PyUnicode_DecodeASCII()
6968 writer.pos = outpos; in PyUnicode_DecodeASCII()
7263 Py_ssize_t startinpos, endinpos, outpos; in decode_code_page_errors() local
7271 outpos = out - PyUnicode_AS_UNICODE(*v); in decode_code_page_errors()
7276 v, &outpos)) in decode_code_page_errors()
7280 out = PyUnicode_AS_UNICODE(*v) + outpos; in decode_code_page_errors()
8314 charmapencode_resize(PyObject **outobj, Py_ssize_t *outpos, Py_ssize_t requiredsize) in charmapencode_resize() argument
8336 PyObject **outobj, Py_ssize_t *outpos) in charmapencode_output() argument
8344 Py_ssize_t requiredsize = *outpos+1; in charmapencode_output()
8348 if (charmapencode_resize(outobj, outpos, requiredsize)) in charmapencode_output()
8351 outstart[(*outpos)++] = (char)res; in charmapencode_output()
8363 Py_ssize_t requiredsize = *outpos+1; in charmapencode_output()
8365 if (charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
8370 outstart[(*outpos)++] = (char)PyLong_AS_LONG(rep); in charmapencode_output()
8375 Py_ssize_t requiredsize = *outpos+repsize; in charmapencode_output()
8377 if (charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
8382 memcpy(outstart + *outpos, repchars, repsize); in charmapencode_output()
8383 *outpos += repsize; in charmapencode_output()