Lines Matching defs:start

2650 PyUnicodeEncodeError_GetStart(PyObject *exc, Py_ssize_t *start)
2657 *start = ((PyUnicodeErrorObject *)exc)->start;
2659 if (*start<0)
2660 *start = 0; /*XXX check for values <0*/
2661 if (*start>=size)
2662 *start = size-1;
2669 PyUnicodeDecodeError_GetStart(PyObject *exc, Py_ssize_t *start)
2676 *start = ((PyUnicodeErrorObject *)exc)->start;
2677 if (*start<0)
2678 *start = 0;
2679 if (*start>=size)
2680 *start = size-1;
2687 PyUnicodeTranslateError_GetStart(PyObject *exc, Py_ssize_t *start)
2689 return PyUnicodeEncodeError_GetStart(exc, start);
2694 PyUnicodeEncodeError_SetStart(PyObject *exc, Py_ssize_t start)
2696 ((PyUnicodeErrorObject *)exc)->start = start;
2702 PyUnicodeDecodeError_SetStart(PyObject *exc, Py_ssize_t start)
2704 ((PyUnicodeErrorObject *)exc)->start = start;
2710 PyUnicodeTranslateError_SetStart(PyObject *exc, Py_ssize_t start)
2712 ((PyUnicodeErrorObject *)exc)->start = start;
2860 {"start", T_PYSSIZET, offsetof(PyUnicodeErrorObject, start), 0,
2861 PyDoc_STR("exception start")},
2890 &err->start, &err->end, &err->reason)) {
2923 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) {
2924 Py_UCS4 badchar = PyUnicode_ReadChar(uself->object, uself->start);
2936 uself->start,
2943 uself->start,
2988 &ude->start, &ude->end, &ude->reason)) {
3036 if (uself->start < PyBytes_GET_SIZE(uself->object) && uself->end == uself->start+1) {
3037 int byte = (int)(PyBytes_AS_STRING(((PyUnicodeErrorObject *)self)->object)[uself->start]&0xff);
3042 uself->start,
3049 uself->start,
3077 Py_ssize_t start, Py_ssize_t end, const char *reason)
3080 encoding, object, length, start, end, reason);
3100 &self->start, &self->end, &self->reason)) {
3129 if (uself->start < PyUnicode_GET_LENGTH(uself->object) && uself->end == uself->start+1) {
3130 Py_UCS4 badchar = PyUnicode_ReadChar(uself->object, uself->start);
3141 uself->start,
3147 uself->start,
3174 Py_ssize_t start, Py_ssize_t end, const char *reason)
3177 object, start, end, reason);
3775 * exceptions (e.g. AttributeError) start to be converted to rich