/external/python/cpython3/Include/ |
D | unicodeobject.h | 162 do {Py_ssize_t i_; Py_UNICODE *t_ = (target); Py_UNICODE v_ = (value);\ 276 Py_ssize_t length; /* Number of code points in the string */ 342 Py_ssize_t utf8_length; /* Number of bytes in utf8, excluding the 345 Py_ssize_t wstr_length; /* Number of code points in wstr, possible 587 Py_ssize_t size, /* Number of code points in the new string */ 631 PyAPI_FUNC(Py_ssize_t) PyUnicode_CopyCharacters( 633 Py_ssize_t to_start, 635 Py_ssize_t from_start, 636 Py_ssize_t how_many 644 Py_ssize_t to_start, [all …]
|
D | sliceobject.h | 36 PyAPI_FUNC(PyObject *) _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop); 41 PyAPI_FUNC(int) PySlice_GetIndices(PyObject *r, Py_ssize_t length, 42 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); 43 PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, 44 Py_ssize_t *start, Py_ssize_t *stop, 45 Py_ssize_t *step, Py_ssize_t *slicelength); 54 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); 55 PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length, 56 Py_ssize_t *start, Py_ssize_t *stop, 57 Py_ssize_t step);
|
D | bytesobject.h | 51 PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); 58 PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *); 64 PyAPI_FUNC(int) _PyBytes_Resize(PyObject **, Py_ssize_t); 67 Py_ssize_t format_len, 74 PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t, 75 const char *, Py_ssize_t, 79 PyAPI_FUNC(PyObject *) _PyBytes_DecodeEscape(const char *, Py_ssize_t, 80 const char *, Py_ssize_t, 106 Py_ssize_t *len /* pointer to length variable or NULL 115 PyAPI_FUNC(Py_ssize_t) _PyBytes_InsertThousandsGroupingLocale(char *buffer, [all …]
|
D | bytes_methods.h | 9 extern PyObject* _Py_bytes_isspace(const char *cptr, Py_ssize_t len); 10 extern PyObject* _Py_bytes_isalpha(const char *cptr, Py_ssize_t len); 11 extern PyObject* _Py_bytes_isalnum(const char *cptr, Py_ssize_t len); 12 extern PyObject* _Py_bytes_isdigit(const char *cptr, Py_ssize_t len); 13 extern PyObject* _Py_bytes_islower(const char *cptr, Py_ssize_t len); 14 extern PyObject* _Py_bytes_isupper(const char *cptr, Py_ssize_t len); 15 extern PyObject* _Py_bytes_istitle(const char *cptr, Py_ssize_t len); 18 extern void _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len); 19 extern void _Py_bytes_upper(char *result, const char *cptr, Py_ssize_t len); 20 extern void _Py_bytes_title(char *result, const char *s, Py_ssize_t len); [all …]
|
D | abstract.h | 280 Py_ssize_t nargs); 304 Py_ssize_t nargs, 319 PyObject **args, Py_ssize_t nargs, 340 Py_ssize_t nargs, 488 PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o); 499 PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o); 504 PyAPI_FUNC(Py_ssize_t) PyObject_LengthHint(PyObject *o, Py_ssize_t); 552 Py_ssize_t *buffer_len); 575 Py_ssize_t *buffer_len); 590 Py_ssize_t *buffer_len); [all …]
|
/external/python/cpython2/Modules/_ctypes/ |
D | ctypes.h | 15 typedef int Py_ssize_t; typedef 19 typedef Py_ssize_t (*readbufferproc)(PyObject *, Py_ssize_t, void **); 20 typedef Py_ssize_t (*writebufferproc)(PyObject *, Py_ssize_t, void **); 21 typedef Py_ssize_t (*segcountproc)(PyObject *, Py_ssize_t *); 22 typedef Py_ssize_t (*charbufferproc)(PyObject *, Py_ssize_t, char **); 54 typedef PyObject *(* GETFUNC)(void *, Py_ssize_t size); 55 typedef PyObject *(* SETFUNC)(void *, PyObject *value, Py_ssize_t size); 89 Py_ssize_t b_size; /* size of memory block in bytes */ 90 Py_ssize_t b_length; /* number of references we need */ 91 Py_ssize_t b_index; /* index of this object into base's [all …]
|
/external/python/cpython2/Objects/stringlib/ |
D | find.h | 10 Py_LOCAL_INLINE(Py_ssize_t) 11 stringlib_find(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_find() 12 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_find() 13 Py_ssize_t offset) in stringlib_find() 15 Py_ssize_t pos; in stringlib_find() 30 Py_LOCAL_INLINE(Py_ssize_t) 31 stringlib_rfind(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in stringlib_rfind() 32 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in stringlib_rfind() 33 Py_ssize_t offset) in stringlib_rfind() 35 Py_ssize_t pos; in stringlib_rfind() [all …]
|
D | localeutil.h | 14 Py_ssize_t i; /* Where we're currently pointing in grouping. */ 26 static Py_ssize_t 43 return (Py_ssize_t)ch; in _GroupGenerator_next() 52 Py_ssize_t n_chars, Py_ssize_t n_zeros, const char* thousands_sep, in fill() 53 Py_ssize_t thousands_sep_len) in fill() 56 Py_ssize_t i; in fill() 112 Py_ssize_t 114 Py_ssize_t n_buffer, in _Py_InsertThousandsGrouping() 116 Py_ssize_t n_digits, in _Py_InsertThousandsGrouping() 117 Py_ssize_t min_width, in _Py_InsertThousandsGrouping() [all …]
|
D | formatter.h | 74 Py_ssize_t *result) in get_integer() 76 Py_ssize_t accumulator, digitval; in get_integer() 136 Py_ssize_t width; 138 Py_ssize_t precision; 170 Py_ssize_t format_spec_len, in parse_internal_render_format_spec() 181 Py_ssize_t consumed; in parse_internal_render_format_spec() 308 calc_padding(Py_ssize_t nchars, Py_ssize_t width, STRINGLIB_CHAR align, in calc_padding() 309 Py_ssize_t *n_lpadding, Py_ssize_t *n_rpadding, in calc_padding() 310 Py_ssize_t *n_total) in calc_padding() 343 fill_padding(STRINGLIB_CHAR *p, Py_ssize_t nchars, STRINGLIB_CHAR fill_char, in fill_padding() [all …]
|
/external/python/cpython3/Objects/stringlib/ |
D | find.h | 7 Py_LOCAL_INLINE(Py_ssize_t) 8 STRINGLIB(find)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 9 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in STRINGLIB() 10 Py_ssize_t offset) in STRINGLIB() 12 Py_ssize_t pos; in STRINGLIB() 26 Py_LOCAL_INLINE(Py_ssize_t) 27 STRINGLIB(rfind)(const STRINGLIB_CHAR* str, Py_ssize_t str_len, in STRINGLIB() 28 const STRINGLIB_CHAR* sub, Py_ssize_t sub_len, in STRINGLIB() 29 Py_ssize_t offset) in STRINGLIB() 31 Py_ssize_t pos; in STRINGLIB() [all …]
|
D | localeutil.h | 12 Py_ssize_t i; /* Where we're currently pointing in grouping. */ 24 static Py_ssize_t 41 return (Py_ssize_t)ch; in STRINGLIB() 50 Py_ssize_t n_chars, Py_ssize_t n_zeros, STRINGLIB_CHAR* thousands_sep, in STRINGLIB() 51 Py_ssize_t thousands_sep_len) in STRINGLIB() 53 Py_ssize_t i; in STRINGLIB() 102 static Py_ssize_t 105 Py_ssize_t n_buffer, in STRINGLIB() 107 Py_ssize_t n_digits, in STRINGLIB() 108 Py_ssize_t min_width, in STRINGLIB() [all …]
|
D | transmogrify.h | 25 Py_ssize_t i, j; in stringlib_expandtabs() 40 Py_ssize_t incr = tabsize - (j % tabsize); in stringlib_expandtabs() 94 pad(PyObject *self, Py_ssize_t left, Py_ssize_t right, char fill) in pad() 125 Py_ssize_t width; in stringlib_ljust() 142 Py_ssize_t width; in stringlib_rjust() 159 Py_ssize_t marg, left; in stringlib_center() 160 Py_ssize_t width; in stringlib_center() 179 Py_ssize_t fill; in stringlib_zfill() 182 Py_ssize_t width; in stringlib_zfill() 215 static Py_ssize_t [all …]
|
/external/python/cpython3/Modules/_ctypes/ |
D | ctypes.h | 16 typedef PyObject *(* GETFUNC)(void *, Py_ssize_t size); 17 typedef PyObject *(* SETFUNC)(void *, PyObject *value, Py_ssize_t size); 49 Py_ssize_t b_size; /* size of memory block in bytes */ 50 Py_ssize_t b_length; /* number of references we need */ 51 Py_ssize_t b_index; /* index of this object into base's 79 Py_ssize_t b_size; /* size of memory block in bytes */ 80 Py_ssize_t b_length; /* number of references we need */ 81 Py_ssize_t b_index; /* index of this object into base's 109 extern int PyType_stginfo(PyTypeObject *self, Py_ssize_t *psize, Py_ssize_t *palign, Py_ssize_t *pl… 110 extern int PyObject_stginfo(PyObject *self, Py_ssize_t *psize, Py_ssize_t *palign, Py_ssize_t *plen… [all …]
|
D | cfield.c | 46 PyCField_FromDesc(PyObject *desc, Py_ssize_t index, in PyCField_FromDesc() 47 Py_ssize_t *pfield_size, int bitsize, int *pbitofs, in PyCField_FromDesc() 48 Py_ssize_t *psize, Py_ssize_t *poffset, Py_ssize_t *palign, in PyCField_FromDesc() 53 Py_ssize_t size, align; in PyCField_FromDesc() 159 Py_ssize_t delta = align - (*poffset % align); in PyCField_FromDesc() 277 Py_ssize_t bits = self->size >> 16; in PyCField_repr() 278 Py_ssize_t size = self->size & 0xFFFF; in PyCField_repr() 509 b_set(void *ptr, PyObject *value, Py_ssize_t size) in b_set() 520 b_get(void *ptr, Py_ssize_t size) in b_get() 528 B_set(void *ptr, PyObject *value, Py_ssize_t size) in B_set() [all …]
|
/external/python/cpython2/Objects/ |
D | bufferobject.c | 11 Py_ssize_t b_size; 12 Py_ssize_t b_offset; 26 get_buf(PyBufferObject *self, void **ptr, Py_ssize_t *size, in get_buf() 35 Py_ssize_t count, offset; in get_buf() 99 buffer_from_memory(PyObject *base, Py_ssize_t size, Py_ssize_t offset, void *ptr, in buffer_from_memory() 131 buffer_from_object(PyObject *base, Py_ssize_t size, Py_ssize_t offset, int readonly) in buffer_from_object() 142 Py_ssize_t base_size = b->b_size - offset; in buffer_from_object() 156 PyBuffer_FromObject(PyObject *base, Py_ssize_t offset, Py_ssize_t size) in PyBuffer_FromObject() 172 PyBuffer_FromReadWriteObject(PyObject *base, Py_ssize_t offset, Py_ssize_t size) in PyBuffer_FromReadWriteObject() 188 PyBuffer_FromMemory(void *ptr, Py_ssize_t size) in PyBuffer_FromMemory() [all …]
|
/external/python/cpython3/Objects/ |
D | bytes_methods.c | 12 _Py_bytes_isspace(const char *cptr, Py_ssize_t len) in _Py_bytes_isspace() 42 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len) in _Py_bytes_isalpha() 72 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len) in _Py_bytes_isalnum() 102 _Py_bytes_isdigit(const char *cptr, Py_ssize_t len) in _Py_bytes_isdigit() 132 _Py_bytes_islower(const char *cptr, Py_ssize_t len) in _Py_bytes_islower() 166 _Py_bytes_isupper(const char *cptr, Py_ssize_t len) in _Py_bytes_isupper() 202 _Py_bytes_istitle(const char *cptr, Py_ssize_t len) in _Py_bytes_istitle() 248 _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len) in _Py_bytes_lower() 250 Py_ssize_t i; in _Py_bytes_lower() 264 _Py_bytes_upper(char *result, const char *cptr, Py_ssize_t len) in _Py_bytes_upper() [all …]
|
D | listobject.c | 26 list_resize(PyListObject *self, Py_ssize_t newsize) in list_resize() 30 Py_ssize_t allocated = self->allocated; in list_resize() 140 PyList_New(Py_ssize_t size) in PyList_New() 185 Py_ssize_t 199 PyList_GetItem(PyObject *op, Py_ssize_t i) in PyList_GetItem() 219 PyList_SetItem(PyObject *op, Py_ssize_t i, in PyList_SetItem() 240 ins1(PyListObject *self, Py_ssize_t where, PyObject *v) in ins1() 242 Py_ssize_t i, n = Py_SIZE(self); in ins1() 273 PyList_Insert(PyObject *op, Py_ssize_t where, PyObject *newitem) in PyList_Insert() 285 Py_ssize_t n = PyList_GET_SIZE(self); in app1() [all …]
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 397 do {Py_ssize_t i_; Py_UNICODE *t_ = (target); Py_UNICODE v_ = (value);\ 417 Py_ssize_t length; /* Length of raw Unicode data in buffer */ 466 Py_ssize_t size /* size of buffer */ 472 Py_ssize_t size /* size of buffer */ 490 PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( 513 Py_ssize_t length /* New length */ 563 Py_ssize_t format_spec_len); 576 Py_ssize_t size /* size of buffer */ 591 PyAPI_FUNC(Py_ssize_t) PyUnicode_AsWideChar( 594 Py_ssize_t size /* size of buffer */ [all …]
|
D | stringobject.h | 62 PyAPI_FUNC(PyObject *) PyString_FromStringAndSize(const char *, Py_ssize_t); 68 PyAPI_FUNC(Py_ssize_t) PyString_Size(PyObject *); 73 PyAPI_FUNC(int) _PyString_Resize(PyObject **, Py_ssize_t); 78 PyAPI_FUNC(PyObject *) PyString_DecodeEscape(const char *, Py_ssize_t, 79 const char *, Py_ssize_t, 105 Py_ssize_t size, /* size of buffer */ 115 Py_ssize_t size, /* number of chars to encode */ 175 register Py_ssize_t *len /* pointer to length variable or NULL 184 PyAPI_FUNC(Py_ssize_t) _PyString_InsertThousandsGroupingLocale(char *buffer, 185 Py_ssize_t n_buffer, [all …]
|
D | abstract.h | 421 PyAPI_FUNC(Py_ssize_t) PyObject_Size(PyObject *o); 433 PyAPI_FUNC(Py_ssize_t) PyObject_Length(PyObject *o); 436 PyAPI_FUNC(Py_ssize_t) _PyObject_LengthHint(PyObject *o, Py_ssize_t); 478 Py_ssize_t *buffer_len); 503 Py_ssize_t *buffer_len); 519 Py_ssize_t *buffer_len); 552 PyAPI_FUNC(void *) PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices); 566 Py_ssize_t len, char fort); 569 Py_ssize_t len, char fort); 597 Py_ssize_t *shape, [all …]
|
D | sliceobject.h | 34 PyAPI_FUNC(PyObject *) _PySlice_FromIndices(Py_ssize_t start, Py_ssize_t stop); 35 PyAPI_FUNC(int) PySlice_GetIndices(PySliceObject *r, Py_ssize_t length, 36 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); 37 PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length, 38 Py_ssize_t *start, Py_ssize_t *stop, 39 Py_ssize_t *step, Py_ssize_t *slicelength);
|
/external/python/cpython3/Modules/clinic/ |
D | _sre.c.h | 76 Py_ssize_t pos, Py_ssize_t endpos, 80 _sre_SRE_Pattern_match(PatternObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_match() 86 Py_ssize_t pos = 0; in _sre_SRE_Pattern_match() 87 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_match() 112 Py_ssize_t pos, Py_ssize_t endpos, 116 _sre_SRE_Pattern_fullmatch(PatternObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwname… in _sre_SRE_Pattern_fullmatch() 122 Py_ssize_t pos = 0; in _sre_SRE_Pattern_fullmatch() 123 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_fullmatch() 150 Py_ssize_t pos, Py_ssize_t endpos, 154 _sre_SRE_Pattern_search(PatternObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_search() [all …]
|
/external/python/cpython3/Python/ |
D | formatter_unicode.c | 57 get_integer(PyObject *str, Py_ssize_t *ppos, Py_ssize_t end, in get_integer() 58 Py_ssize_t *result) in get_integer() 60 Py_ssize_t accumulator, digitval, pos = *ppos; in get_integer() 131 Py_ssize_t width; 133 Py_ssize_t precision; 164 Py_ssize_t start, Py_ssize_t end, in parse_internal_render_format_spec() 169 Py_ssize_t pos = start; in parse_internal_render_format_spec() 176 Py_ssize_t consumed; in parse_internal_render_format_spec() 328 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() 329 Py_ssize_t *n_lpadding, Py_ssize_t *n_rpadding, in calc_padding() [all …]
|
/external/python/cpython2/Modules/ |
D | _bisectmodule.c | 8 static Py_ssize_t 9 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_right() 12 Py_ssize_t mid, res; in internal_bisect_right() 47 Py_ssize_t lo = 0; in bisect_right() 48 Py_ssize_t hi = -1; in bisect_right() 49 Py_ssize_t index; in bisect_right() 78 Py_ssize_t lo = 0; in insort_right() 79 Py_ssize_t hi = -1; in insort_right() 80 Py_ssize_t index; in insort_right() 114 static Py_ssize_t [all …]
|
/external/python/cpython3/Modules/ |
D | _bisectmodule.c | 11 static Py_ssize_t 12 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_right() 15 Py_ssize_t mid; in internal_bisect_right() 51 Py_ssize_t lo = 0; in bisect_right() 52 Py_ssize_t hi = -1; in bisect_right() 53 Py_ssize_t index; in bisect_right() 81 Py_ssize_t lo = 0; in insort_right() 82 Py_ssize_t hi = -1; in insort_right() 83 Py_ssize_t index; in insort_right() 115 static Py_ssize_t [all …]
|