Lines Matching defs:out
1696 PyErr_SetString(PyExc_IndexError, "string index out of range");
1700 PyErr_SetString(PyExc_IndexError, "string index out of range");
4303 PyErr_SetString(PyExc_IndexError, "string index out of range");
4320 PyErr_SetString(PyExc_IndexError, "string index out of range");
4326 PyErr_SetString(PyExc_ValueError, "character out of range");
4447 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos);
4562 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", newpos);
4576 the decoder may write out-of-bound then. Is it possible for the
4910 char * out;
4929 start = out = PyBytes_AS_STRING(v);
4935 /* shifting out */
4937 *out++ = TO_BASE64(base64buffer << (6-base64bits));
4945 *out++ = '-';
4947 *out++ = (char) ch;
4955 *out++ = '+';
4956 *out++ = '-';
4959 *out++ = (char) ch;
4962 *out++ = '+';
4976 *out++ = TO_BASE64(base64buffer >> (base64bits-6));
4985 *out++ = TO_BASE64(base64buffer >> (base64bits-6));
4990 *out++= TO_BASE64(base64buffer << (6-base64bits) );
4992 *out++ = '-';
4993 if (_PyBytes_Resize(&v, out - start) < 0)
5810 uint32_t *out;
5841 out = (uint32_t *)PyBytes_AS_STRING(v);
5843 *out++ = 0xFEFF;
5855 ucs1lib_utf32_encode((const Py_UCS1 *)data, len, &out, native_ordering);
5865 &out, native_ordering);
5870 &out, native_ordering);
5909 Py_ssize_t outpos = out - (uint32_t*) PyBytes_AS_STRING(v);
5917 out = (uint32_t*) PyBytes_AS_STRING(v) + outpos;
5921 memcpy(out, PyBytes_AS_STRING(rep), repsize);
5922 out += repsize / 4;
5926 &out, native_ordering);
5935 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v);
6131 unsigned short *out;
6175 out = (unsigned short *)PyBytes_AS_STRING(v);
6177 *out++ = 0xFEFF;
6184 ucs1lib_utf16_encode((const Py_UCS1 *)data, len, &out, native_ordering);
6204 &out, native_ordering);
6209 &out, native_ordering);
6248 Py_ssize_t outpos = out - (unsigned short*) PyBytes_AS_STRING(v);
6256 out = (unsigned short*) PyBytes_AS_STRING(v) + outpos;
6260 memcpy(out, PyBytes_AS_STRING(rep), repsize);
6261 out += repsize / 2;
6265 &out, native_ordering);
6274 nsize = (unsigned char*) out - (unsigned char*) PyBytes_AS_STRING(v);
6810 message = "\\Uxxxxxxxx out of range";
7038 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos);
7439 wchar_t *out;
7459 out = *buf + n;
7462 outsize = MultiByteToWideChar(code_page, flags, in, insize, out, outsize);
7497 wchar_t buffer[2], *out;
7533 out = *buf + n;
7573 outpos = out - *buf;
7582 out = *buf + outpos;
7586 memcpy(out, buffer, outsize * sizeof(wchar_t));
7587 out += outsize;
7592 assert(out - *buf <= *bufsize);
7593 *bufsize = out - *buf;
7735 char *out;
7788 out = PyBytes_AS_STRING(*outbytes);
7800 out = PyBytes_AS_STRING(*outbytes) + n;
7806 out, outsize,
7855 char *out;
7898 out = PyBytes_AS_STRING(*outbytes);
7909 out = PyBytes_AS_STRING(*outbytes) + n;
7936 memcpy(out, buffer, outsize);
7937 out += outsize;
7958 Py_ssize_t offset = out - PyBytes_AS_STRING(*outbytes);
7964 out = PyBytes_AS_STRING(*outbytes) + offset;
7966 memcpy(out, PyBytes_AS_STRING(rep), outsize);
7967 out += outsize;
7982 Py_ssize_t offset = out - PyBytes_AS_STRING(*outbytes);
7988 out = PyBytes_AS_STRING(*outbytes) + offset;
8002 *out = (unsigned char)ch;
8003 out++;
8010 *out = 0;
8011 outsize = out - PyBytes_AS_STRING(*outbytes);
8968 PyErr_Format(PyExc_IndexError, "position %zd from error handler out of bounds", *newpos);
9147 Py_UCS1 *out;
9159 out = PyUnicode_1BYTE_DATA(writer->buffer);
9179 *out = ch2;
9180 out++;
9185 writer->pos = out - PyUnicode_1BYTE_DATA(writer->buffer);
9341 Py_UCS1 *out = PyUnicode_1BYTE_DATA(result);
9348 out[i] = ch;
9351 out[i] = ' ';
9356 out[i] = '?';
9357 out[i+1] = '\0';
9361 out[i] = '0' + decimal;
10125 * Do a pre-pass to figure out the total amount of space we'll
10264 PyErr_SetString(PyExc_IndexError, "string index out of range");
10367 PyObject* out;
10410 out = PyList_New(1);
10411 if (out == NULL)
10414 PyList_SET_ITEM(out, 0, self);
10415 return out;
10428 out = asciilib_split(
10431 out = ucs1lib_split(
10435 out = ucs2lib_split(
10439 out = ucs4lib_split(
10443 out = NULL;
10448 return out;
10459 PyObject* out;
10502 out = PyList_New(1);
10503 if (out == NULL)
10506 PyList_SET_ITEM(out, 0, self);
10507 return out;
10520 out = asciilib_rsplit(
10523 out = ucs1lib_rsplit(
10527 out = ucs2lib_rsplit(
10531 out = ucs4lib_rsplit(
10535 out = NULL;
10540 return out;
11813 PyErr_SetString(PyExc_IndexError, "string index out of range");
12576 PyErr_SetString(PyExc_IndexError, "string index out of range");
13194 PyObject* out;
13221 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13223 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13226 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13229 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13239 return out;
13246 PyObject* out;
13273 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13275 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13278 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13281 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13291 return out;