Searched refs:ob_sval (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython2/Objects/ |
D | bytesobject.c | 33 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1) 91 op->ob_sval[size] = '\0'; in _PyBytes_FromSize() 125 memcpy(op->ob_sval, str, size); in PyBytes_FromStringAndSize() 168 memcpy(op->ob_sval, str, size+1); in PyBytes_FromString() 1290 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString() 1347 s = (unsigned char*)op->ob_sval; in PyBytes_Repr() 1380 unsigned char c = op->ob_sval[i]; in PyBytes_Repr() 1512 op->ob_sval[size] = '\0'; in bytes_repeat() 1514 memset(op->ob_sval, a->ob_sval[0] , n); in bytes_repeat() 1519 memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a)); in bytes_repeat() [all …]
|
D | stringobject.c | 32 #define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1) 95 Py_MEMCPY(op->ob_sval, str, size); in PyString_FromStringAndSize() 96 op->ob_sval[size] = '\0'; in PyString_FromStringAndSize() 149 Py_MEMCPY(op->ob_sval, str, size+1); in PyString_FromString() 801 return ((PyStringObject *)op) -> ob_sval; in PyString_AsString() 877 char *data = op->ob_sval; in string_print() 901 if (memchr(op->ob_sval, '\'', Py_SIZE(op)) && in string_print() 902 !memchr(op->ob_sval, '"', Py_SIZE(op))) in string_print() 912 c = op->ob_sval[i]; in string_print() 956 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr() [all …]
|
D | bytearrayobject.c | 35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 33 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1) 91 op->ob_sval[size] = '\0'; in _PyBytes_FromSize() 125 memcpy(op->ob_sval, str, size); in PyBytes_FromStringAndSize() 168 memcpy(op->ob_sval, str, size+1); in PyBytes_FromString() 1296 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString() 1353 s = (unsigned char*)op->ob_sval; in PyBytes_Repr() 1386 unsigned char c = op->ob_sval[i]; in PyBytes_Repr() 1518 op->ob_sval[size] = '\0'; in bytes_repeat() 1520 memset(op->ob_sval, a->ob_sval[0] , n); in bytes_repeat() 1525 memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a)); in bytes_repeat() [all …]
|
/external/python/cpython2/Include/ |
D | stringobject.h | 39 char ob_sval[1]; member 91 #define PyString_AS_STRING(op) (((PyStringObject *)(op))->ob_sval)
|
/external/python/cpython3/Include/ |
D | bytesobject.h | 34 char ob_sval[1]; member 88 (((PyBytesObject *)(op))->ob_sval))
|
/external/python/cpython2/Misc/ |
D | gdbinit | 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
|
D | HISTORY | 5781 the ob_sval member, so as a precaution the API_VERSION has been 5788 it also slowed things down a bit because ob_sval was no longer
|
/external/python/cpython3/Misc/ |
D | gdbinit | 55 set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
|
D | HISTORY | 15360 "offsetof(PyBytesObject, ob_sval) + 1" when allocating memory for 23165 the ob_sval member, so as a precaution the API_VERSION has been 23172 it also slowed things down a bit because ob_sval was no longer
|
/external/python/cpython2/Mac/Modules/ |
D | MacOS.c | 719 long off = (long)&(p->ob_sval[0]);
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7a1.rst | 1228 Replace ``sizeof(PyStringObject)`` with ``offsetof(PyStringObject, ob_sval)
|