/external/python/cpython3/Include/ |
D | unicodeobject.h | 132 Py_ssize_t size /* size of buffer */ 144 Py_ssize_t start, 145 Py_ssize_t end); 157 Py_ssize_t buflen, 169 PyAPI_FUNC(Py_ssize_t) PyUnicode_GetLength( 177 Py_DEPRECATED(3.3) PyAPI_FUNC(Py_ssize_t) PyUnicode_GetSize( 186 Py_ssize_t index 196 Py_ssize_t index, 219 Py_ssize_t length /* New length */ 287 Py_ssize_t size /* size of buffer */ [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); 44 PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, 45 Py_ssize_t *start, Py_ssize_t *stop, 46 Py_ssize_t *step, 47 Py_ssize_t *slicelength); 56 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); 57 PyAPI_FUNC(Py_ssize_t) PySlice_AdjustIndices(Py_ssize_t length, 58 Py_ssize_t *start, Py_ssize_t *stop, [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/Include/ |
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); 42 Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); 43 PyAPI_FUNC(Py_ssize_t) _PySlice_AdjustIndices(Py_ssize_t length, 44 Py_ssize_t *start, Py_ssize_t *stop, 45 Py_ssize_t step);
|
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 …]
|
/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 | fastsearch.h | 47 Py_LOCAL_INLINE(Py_ssize_t) 48 STRINGLIB(find_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch) in STRINGLIB() 104 Py_LOCAL_INLINE(Py_ssize_t) 105 STRINGLIB(rfind_char)(const STRINGLIB_CHAR* s, Py_ssize_t n, STRINGLIB_CHAR ch) in STRINGLIB() 123 Py_ssize_t n1; in STRINGLIB() 178 Py_LOCAL_INLINE(Py_ssize_t) 179 STRINGLIB(_lex_search)(const STRINGLIB_CHAR *needle, Py_ssize_t len_needle, in STRINGLIB() 180 Py_ssize_t *return_period, int invert_alphabet) in STRINGLIB() 185 Py_ssize_t max_suffix = 0; in STRINGLIB() 186 Py_ssize_t candidate = 1; in STRINGLIB() [all …]
|
D | transmogrify.h | 43 Py_ssize_t i, j; in stringlib_expandtabs_impl() 52 Py_ssize_t incr = tabsize - (j % tabsize); in stringlib_expandtabs_impl() 106 pad(PyObject *self, Py_ssize_t left, Py_ssize_t right, char fill) in pad() 147 stringlib_ljust_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_ljust_impl() 171 stringlib_rjust_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_rjust_impl() 195 stringlib_center_impl(PyObject *self, Py_ssize_t width, char fillchar) in stringlib_center_impl() 198 Py_ssize_t marg, left; in stringlib_center_impl() 222 stringlib_zfill_impl(PyObject *self, Py_ssize_t width) in stringlib_zfill_impl() 225 Py_ssize_t fill; in stringlib_zfill_impl() 257 static Py_ssize_t [all …]
|
/external/python/cpython3/Include/internal/ |
D | pycore_bytes_methods.h | 13 extern PyObject* _Py_bytes_isspace(const char *cptr, Py_ssize_t len); 14 extern PyObject* _Py_bytes_isalpha(const char *cptr, Py_ssize_t len); 15 extern PyObject* _Py_bytes_isalnum(const char *cptr, Py_ssize_t len); 16 extern PyObject* _Py_bytes_isascii(const char *cptr, Py_ssize_t len); 17 extern PyObject* _Py_bytes_isdigit(const char *cptr, Py_ssize_t len); 18 extern PyObject* _Py_bytes_islower(const char *cptr, Py_ssize_t len); 19 extern PyObject* _Py_bytes_isupper(const char *cptr, Py_ssize_t len); 20 extern PyObject* _Py_bytes_istitle(const char *cptr, Py_ssize_t len); 23 extern void _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len); 24 extern void _Py_bytes_upper(char *result, const char *cptr, Py_ssize_t len); [all …]
|
D | pycore_atomic_funcs.h | 30 static inline Py_ssize_t _Py_atomic_size_get(Py_ssize_t *var) in _Py_atomic_size_get() 35 static inline void _Py_atomic_size_set(Py_ssize_t *var, Py_ssize_t value) in _Py_atomic_size_set() 42 static inline Py_ssize_t _Py_atomic_size_get(Py_ssize_t *var) 62 static inline void _Py_atomic_size_set(Py_ssize_t *var, Py_ssize_t value) 78 static inline Py_ssize_t _Py_atomic_size_get(Py_ssize_t *var) 80 volatile Py_ssize_t *volatile_var = (volatile Py_ssize_t *)var; 84 static inline void _Py_atomic_size_set(Py_ssize_t *var, Py_ssize_t value) 86 volatile Py_ssize_t *volatile_var = (volatile Py_ssize_t *)var;
|
D | pycore_blocks_output_buffer.h | 47 Py_ssize_t allocated; 49 Py_ssize_t max_length; 60 static const Py_ssize_t BUFFER_BLOCK_SIZE[] = 101 static inline Py_ssize_t 103 const Py_ssize_t max_length, in _BlocksOutputBuffer_InitAndGrow() 107 Py_ssize_t block_size; in _BlocksOutputBuffer_InitAndGrow() 149 static inline Py_ssize_t 151 const Py_ssize_t init_size, in _BlocksOutputBuffer_InitWithSize() 187 static inline Py_ssize_t 190 const Py_ssize_t avail_out) in _BlocksOutputBuffer_Grow() [all …]
|
/external/python/cpython3/Include/cpython/ |
D | unicodeobject.h | 54 Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) { in Py_UNICODE_COPY() 59 Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) { in Py_UNICODE_FILL() 60 Py_ssize_t i; in Py_UNICODE_FILL() 160 Py_ssize_t length; /* Number of code points in the string */ 226 Py_ssize_t utf8_length; /* Number of bytes in utf8, excluding the 229 Py_ssize_t wstr_length; /* Number of code points in wstr, possible 446 static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { in _PyUnicode_get_wstr_length() 461 Py_ssize_t size, /* Number of code points in the new string */ 499 PyAPI_FUNC(Py_ssize_t) PyUnicode_CopyCharacters( 501 Py_ssize_t to_start, [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 …]
|
/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/Modules/clinic/ |
D | _bisectmodule.c.h | 21 static Py_ssize_t 23 Py_ssize_t lo, Py_ssize_t hi, PyObject *key); 26 _bisect_bisect_right(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _bisect_bisect_right() 32 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 2; in _bisect_bisect_right() 35 Py_ssize_t lo = 0; in _bisect_bisect_right() 36 Py_ssize_t hi = -1; in _bisect_bisect_right() 38 Py_ssize_t _return_value; in _bisect_bisect_right() 51 Py_ssize_t ival = -1; in _bisect_bisect_right() 106 Py_ssize_t lo, Py_ssize_t hi, PyObject *key); 109 _bisect_insort_right(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _bisect_insort_right() [all …]
|
D | _sre.c.h | 171 PyObject *string, Py_ssize_t pos, 172 Py_ssize_t endpos); 175 _sre_SRE_Pattern_match(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t na… in _sre_SRE_Pattern_match() 181 Py_ssize_t pos = 0; in _sre_SRE_Pattern_match() 182 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_match() 205 PyObject *string, Py_ssize_t pos, 206 Py_ssize_t endpos); 209 …llmatch(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject … in _sre_SRE_Pattern_fullmatch() 215 Py_ssize_t pos = 0; in _sre_SRE_Pattern_fullmatch() 216 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_fullmatch() [all …]
|
/external/python/cpython3/Objects/ |
D | bytes_methods.c | 13 _Py_bytes_isspace(const char *cptr, Py_ssize_t len) in _Py_bytes_isspace() 43 _Py_bytes_isalpha(const char *cptr, Py_ssize_t len) in _Py_bytes_isalpha() 73 _Py_bytes_isalnum(const char *cptr, Py_ssize_t len) in _Py_bytes_isalnum() 114 _Py_bytes_isascii(const char *cptr, Py_ssize_t len) in _Py_bytes_isascii() 154 _Py_bytes_isdigit(const char *cptr, Py_ssize_t len) in _Py_bytes_isdigit() 184 _Py_bytes_islower(const char *cptr, Py_ssize_t len) in _Py_bytes_islower() 218 _Py_bytes_isupper(const char *cptr, Py_ssize_t len) in _Py_bytes_isupper() 254 _Py_bytes_istitle(const char *cptr, Py_ssize_t len) in _Py_bytes_istitle() 300 _Py_bytes_lower(char *result, const char *cptr, Py_ssize_t len) in _Py_bytes_lower() 302 Py_ssize_t i; in _Py_bytes_lower() [all …]
|
/external/python/cpython3/Python/ |
D | formatter_unicode.c | 59 get_integer(PyObject *str, Py_ssize_t *ppos, Py_ssize_t end, in get_integer() 60 Py_ssize_t *result) in get_integer() 62 Py_ssize_t accumulator, digitval, pos = *ppos; in get_integer() 133 Py_ssize_t width; 135 Py_ssize_t precision; 166 Py_ssize_t start, Py_ssize_t end, in parse_internal_render_format_spec() 171 Py_ssize_t pos = start; in parse_internal_render_format_spec() 178 Py_ssize_t consumed; in parse_internal_render_format_spec() 333 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() 334 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 | 18 static inline Py_ssize_t 19 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi, in internal_bisect_right() 23 Py_ssize_t mid; in internal_bisect_right() 83 static Py_ssize_t 85 Py_ssize_t lo, Py_ssize_t hi, PyObject *key) in _bisect_bisect_right_impl() 111 Py_ssize_t lo, Py_ssize_t hi, PyObject *key) in _bisect_insort_right_impl() 115 Py_ssize_t index; in _bisect_insort_right_impl() 143 static inline Py_ssize_t 144 internal_bisect_left(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi, in internal_bisect_left() 148 Py_ssize_t mid; in internal_bisect_left() [all …]
|