Home
last modified time | relevance | path

Searched refs:PyStringObject (Results 1 – 25 of 25) sorted by relevance

/external/python/cpython2/Objects/
Dstringobject.c13 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()
[all …]
Ddictobject.c717 (hash = ((PyStringObject *) key)->ob_shash) == -1) in PyDict_GetItem()
767 (hash = ((PyStringObject *) key)->ob_shash) == -1) in _PyDict_GetItemWithError()
839 hash = ((PyStringObject *)key)->ob_shash; in PyDict_SetItem()
880 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in PyDict_DelItem()
912 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in _PyDict_DelItemIf()
1247 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_subscript()
1998 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_contains()
2031 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_get()
2060 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_setdefault()
2105 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in dict_pop()
[all …]
Dfileobject.c23 #define BUF(v) PyString_AS_STRING((PyStringObject *)v)
2298 static PyStringObject *
2301 PyStringObject* s; in readahead_get_line_skip()
2312 return (PyStringObject *)PyString_FromStringAndSize(NULL, skip); in readahead_get_line_skip()
2317 s = (PyStringObject *)PyString_FromStringAndSize(NULL, skip + len); in readahead_get_line_skip()
2346 PyStringObject* l; in file_iternext()
Dsetobject.c383 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_add_key()
430 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_discard_key()
692 (hash = ((PyStringObject *) key)->ob_shash) == -1) { in set_contains_key()
Dlongobject.c1458 PyStringObject *str; in _PyLong_Format()
1491 str = (PyStringObject *) PyString_FromStringAndSize((char *)0, sz); in _PyLong_Format()
Dtypeobject.c23 ((PyStringObject *)(name))->ob_shash)
2593 assert(((PyStringObject *)(name))->ob_shash != -1); in _PyType_Lookup()
/external/python/cpython2/Include/
Dstringobject.h49 } PyStringObject; typedef
88 #define PyString_CHECK_INTERNED(op) (((PyStringObject *)(op))->ob_sstate)
91 #define PyString_AS_STRING(op) (((PyStringObject *)(op))->ob_sval)
Dbytesobject.h1 #define PyBytesObject PyStringObject
/external/python/cpython2/Misc/
Dgdbinit54 set $__sz = ((PyStringObject *)$__co->co_lnotab)->ob_size/2
55 set $__p = (unsigned char *)((PyStringObject *)$__co->co_lnotab)->ob_sval
79 set $__fn = (char *)((PyStringObject *)co->co_filename)->ob_sval
80 set $__n = (char *)((PyStringObject *)co->co_name)->ob_sval
/external/python/cpython2/Objects/stringlib/
Dstringdefs.h9 #define STRINGLIB_OBJECT PyStringObject
/external/python/cpython2/Modules/
Ddbmmodule.c110 PyString_AS_STRING((PyStringObject *)key)); in dbm_subscript()
142 PyString_AS_STRING((PyStringObject *)v)); in dbm_ass_sub()
Dgdbmmodule.c131 PyString_AS_STRING((PyStringObject *)key)); in dbm_subscript()
158 PyString_AS_STRING((PyStringObject *)v)); in dbm_ass_sub()
Dbz2module.c37 #define BUF(v) PyString_AS_STRING((PyStringObject *)v)
451 static PyStringObject *
454 PyStringObject* s; in Util_ReadAheadGetLineSkip()
465 return (PyStringObject *) in Util_ReadAheadGetLineSkip()
471 s = (PyStringObject *) in Util_ReadAheadGetLineSkip()
1527 PyStringObject* ret; in BZ2File_iternext()
DcPickle.c1182 PyString_AS_STRING((PyStringObject *)repr), in save_long()
1259 repr_str = PyString_AS_STRING((PyStringObject *)repr); in save_string()
1303 (PyStringObject *)args), in save_string()
1430 repr_str = PyString_AS_STRING((PyStringObject *)repr); in save_unicode()
2117 module_str = PyString_AS_STRING((PyStringObject *)module); in save_inst()
2118 name_str = PyString_AS_STRING((PyStringObject *)name); in save_inst()
2217 module_str = PyString_AS_STRING((PyStringObject *)module); in save_global()
2218 name_str = PyString_AS_STRING((PyStringObject *)global_name); in save_global()
2366 (PyStringObject *)pid), in save_pers()
2958 s = PyString_AS_STRING((PyStringObject *)r); in Pickle_getvalue()
[all …]
Dstropmodule.c928 c = (unsigned char *) PyString_AS_STRING((PyStringObject *)result); in strop_maketrans()
Dbinascii.c144 #define BASE64_MAXBIN (PY_SSIZE_T_MAX/2 - sizeof(PyStringObject) - 3)
/external/python/cpython2/PC/
D_winreg.c793 (PyStringObject *)value)); in Py2Reg()
805 (PyStringObject *)value)); in Py2Reg()
844 (PyStringObject *)obs[j])); in Py2Reg()
862 (PyStringObject *)t)); in Py2Reg()
865 (PyStringObject *)t)); in Py2Reg()
/external/python/cpython2/Python/
Dmarshal.c88 p->ptr = PyString_AS_STRING((PyStringObject *)p->str) + size; in w_more()
90 PyString_AS_STRING((PyStringObject *)p->str) + newsize; in w_more()
1225 wf.ptr = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
1234 char *base = PyString_AS_STRING((PyStringObject *)wf.str); in PyMarshal_WriteObjectToString()
Dceval.c2353 long hash = ((PyStringObject *)w)->ob_shash; in PyEval_EvalFrameEx()
/external/python/cpython2/Mac/Modules/
DMacOS.c718 PyStringObject *p = 0;
/external/python/cpython2/Doc/c-api/
Dstring.rst20 .. c:type:: PyStringObject
Darg.rst245 ``S`` (string) [PyStringObject \*]
/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst1228 Replace ``sizeof(PyStringObject)`` with ``offsetof(PyStringObject, ob_sval)
/external/python/cpython2/Doc/whatsnew/
D2.6.rst976 string type, called :c:type:`PyStringObject` in Python 2.x,
/external/python/cpython3/Doc/whatsnew/
D2.6.rst980 string type, called :c:type:`PyStringObject` in Python 2.x,