Lines Matching refs:PyStringObject
13 static PyStringObject *characters[UCHAR_MAX + 1];
14 static PyStringObject *nullstring;
29 Using PyStringObject_SIZE instead of sizeof(PyStringObject) saves
32 #define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1)
59 register PyStringObject *op;
88 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size);
101 op = (PyStringObject *)t;
107 op = (PyStringObject *)t;
118 register PyStringObject *op;
143 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size);
154 op = (PyStringObject *)t;
160 op = (PyStringObject *)t;
795 return ((PyStringObject *)op) -> ob_sval;
853 string_print(PyStringObject *op, FILE *fp, int flags)
863 op = (PyStringObject *) PyObject_Str((PyObject *)op);
928 register PyStringObject* op = (PyStringObject*) obj;
1004 PyStringObject *t = (PyStringObject *) s;
1010 string_length(PyStringObject *a)
1016 string_concat(register PyStringObject *a, register PyObject *bb)
1019 register PyStringObject *op;
1032 #define b ((PyStringObject *)bb)
1061 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size);
1075 string_repeat(register PyStringObject *a, register Py_ssize_t n)
1080 register PyStringObject *op;
1103 op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + nbytes);
1130 string_slice(register PyStringObject *a, register Py_ssize_t i,
1170 string_item(PyStringObject *a, register Py_ssize_t i)
1192 string_richcompare(PyStringObject *a, PyStringObject *b, int op)
1256 PyStringObject *a = (PyStringObject*) o1;
1257 PyStringObject *b = (PyStringObject*) o2;
1263 string_hash(PyStringObject *a)
1297 string_subscript(PyStringObject* self, PyObject* item)
1359 string_buffer_getreadbuf(PyStringObject *self, Py_ssize_t index, const void **ptr)
1371 string_buffer_getwritebuf(PyStringObject *self, Py_ssize_t index, const void **ptr)
1379 string_buffer_getsegcount(PyStringObject *self, Py_ssize_t *lenp)
1387 string_buffer_getcharbuf(PyStringObject *self, Py_ssize_t index, const char **ptr)
1399 string_buffer_getbuffer(PyStringObject *self, Py_buffer *view, int flags)
1453 string_split(PyStringObject *self, PyObject *args)
1488 string_partition(PyStringObject *self, PyObject *sep_obj)
1519 string_rpartition(PyStringObject *self, PyObject *sep_obj)
1552 string_rsplit(PyStringObject *self, PyObject *args)
1587 string_join(PyStringObject *self, PyObject *orig)
1688 return string_join((PyStringObject *)sep, x);
1707 string_find_internal(PyStringObject *self, PyObject *args, int dir)
1753 string_find(PyStringObject *self, PyObject *args)
1768 string_index(PyStringObject *self, PyObject *args)
1792 string_rfind(PyStringObject *self, PyObject *args)
1807 string_rindex(PyStringObject *self, PyObject *args)
1822 do_xstrip(PyStringObject *self, int striptype, PyObject *sepobj)
1855 do_strip(PyStringObject *self, int striptype)
1885 do_argstrip(PyStringObject *self, int striptype, PyObject *args)
1930 string_strip(PyStringObject *self, PyObject *args)
1947 string_lstrip(PyStringObject *self, PyObject *args)
1964 string_rstrip(PyStringObject *self, PyObject *args)
1984 string_lower(PyStringObject *self)
2017 string_upper(PyStringObject *self)
2047 string_title(PyStringObject *self)
2082 string_capitalize(PyStringObject *self)
2120 string_count(PyStringObject *self, PyObject *args)
2161 string_swapcase(PyStringObject *self)
2198 string_translate(PyStringObject *self, PyObject *args)
2322 Py_LOCAL(PyStringObject *)
2323 return_self(PyStringObject *self)
2329 return (PyStringObject *)PyString_FromStringAndSize(
2354 Py_LOCAL(PyStringObject *)
2355 replace_interleave(PyStringObject *self,
2362 PyStringObject *result;
2386 if (! (result = (PyStringObject *)
2414 Py_LOCAL(PyStringObject *)
2415 replace_delete_single_character(PyStringObject *self,
2422 PyStringObject *result;
2435 if ( (result = (PyStringObject *)
2457 Py_LOCAL(PyStringObject *)
2458 replace_delete_substring(PyStringObject *self,
2465 PyStringObject *result;
2482 if ( (result = (PyStringObject *)
2508 Py_LOCAL(PyStringObject *)
2509 replace_single_character_in_place(PyStringObject *self,
2515 PyStringObject *result;
2529 result = (PyStringObject *) PyString_FromStringAndSize(NULL, self_len);
2553 Py_LOCAL(PyStringObject *)
2554 replace_substring_in_place(PyStringObject *self,
2562 PyStringObject *result;
2578 result = (PyStringObject *) PyString_FromStringAndSize(NULL, self_len);
2604 Py_LOCAL(PyStringObject *)
2605 replace_single_character(PyStringObject *self,
2614 PyStringObject *result;
2638 if ( (result = (PyStringObject *)
2671 Py_LOCAL(PyStringObject *)
2672 replace_substring(PyStringObject *self,
2680 PyStringObject *result;
2707 if ( (result = (PyStringObject *)
2742 Py_LOCAL(PyStringObject *)
2743 replace(PyStringObject *self,
2820 string_replace(PyStringObject *self, PyObject *args)
2854 return (PyObject *)replace((PyStringObject *) self,
2866 _string_tailmatch(PyStringObject *self, PyObject *substr, Py_ssize_t start,
2916 string_startswith(PyStringObject *self, PyObject *args)
2960 string_endswith(PyStringObject *self, PyObject *args)
3006 string_encode(PyStringObject *self, PyObject *args, PyObject *kwargs)
3045 string_decode(PyStringObject *self, PyObject *args, PyObject *kwargs)
3080 string_expandtabs(PyStringObject *self, PyObject *args)
3161 pad(PyStringObject *self, Py_ssize_t left, Py_ssize_t right, char fill)
3198 string_ljust(PyStringObject *self, PyObject *args)
3222 string_rjust(PyStringObject *self, PyObject *args)
3246 string_center(PyStringObject *self, PyObject *args)
3273 string_zfill(PyStringObject *self, PyObject *args)
3319 string_isspace(PyStringObject *self)
3350 string_isalpha(PyStringObject *self)
3381 string_isalnum(PyStringObject *self)
3412 string_isdigit(PyStringObject *self)
3443 string_islower(PyStringObject *self)
3477 string_isupper(PyStringObject *self)
3513 string_istitle(PyStringObject *self, PyObject *uncased)
3561 string_splitlines(PyStringObject *self, PyObject *args)
3578 string_sizeof(PyStringObject *v)
3586 string_getnewargs(PyStringObject *v)
3727 ((PyStringObject *)pnew)->ob_shash =
3728 ((PyStringObject *)tmp)->ob_shash;
3729 ((PyStringObject *)pnew)->ob_sstate = SSTATE_NOT_INTERNED;
3867 v = string_concat((PyStringObject *) *pv, w);
3897 register PyStringObject *sv;
3917 sv = (PyStringObject *) *pv;
4749 register PyStringObject *s = (PyStringObject *)(*p);
4816 PyStringObject *s;
4837 s = (PyStringObject *) PyList_GET_ITEM(keys, i);