Lines Matching refs:ob_sval
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()
957 !memchr(op->ob_sval, '"', Py_SIZE(op))) in PyString_Repr()
966 c = op->ob_sval[i]; in PyString_Repr()
1011 return PyString_FromStringAndSize(t->ob_sval, Py_SIZE(t)); in string_str()
1073 Py_MEMCPY(op->ob_sval, a->ob_sval, Py_SIZE(a)); in string_concat()
1074 Py_MEMCPY(op->ob_sval + Py_SIZE(a), b->ob_sval, Py_SIZE(b)); in string_concat()
1075 op->ob_sval[size] = '\0'; in string_concat()
1115 op->ob_sval[size] = '\0'; in string_repeat()
1117 memset(op->ob_sval, a->ob_sval[0] , n); in string_repeat()
1122 Py_MEMCPY(op->ob_sval, a->ob_sval, Py_SIZE(a)); in string_repeat()
1127 Py_MEMCPY(op->ob_sval+i, op->ob_sval, j); in string_repeat()
1153 return PyString_FromStringAndSize(a->ob_sval + i, j-i); in string_slice()
1184 pchar = a->ob_sval[i]; in string_item()
1224 && (a->ob_sval[0] == b->ob_sval[0] in string_richcompare()
1225 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0)) { in string_richcompare()
1235 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in string_richcompare()
1237 c = memcmp(a->ob_sval, b->ob_sval, min_len); in string_richcompare()
1265 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0; in _PyString_Eq()
1289 p = (unsigned char *) a->ob_sval; in string_hash()
1372 *ptr = (void *)self->ob_sval; in string_buffer_getreadbuf()
1400 *ptr = self->ob_sval; in string_buffer_getcharbuf()
1408 (void *)self->ob_sval, Py_SIZE(self), in string_buffer_getbuffer()
3585 return Py_BuildValue("(s#)", v->ob_sval, Py_SIZE(v)); in string_getnewargs()
3916 sv->ob_sval[newsize] = '\0'; in _PyString_Resize()