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