• Home
  • Raw
  • Download

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()
795 return ((PyStringObject *)op) -> ob_sval; in PyString_AsString()
871 char *data = op->ob_sval; in string_print()
895 if (memchr(op->ob_sval, '\'', Py_SIZE(op)) && in string_print()
896 !memchr(op->ob_sval, '"', Py_SIZE(op))) in string_print()
906 c = op->ob_sval[i]; in string_print()
950 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr()
951 !memchr(op->ob_sval, '"', Py_SIZE(op))) in PyString_Repr()
960 c = op->ob_sval[i]; in PyString_Repr()
1005 return PyString_FromStringAndSize(t->ob_sval, Py_SIZE(t)); in string_str()
1067 Py_MEMCPY(op->ob_sval, a->ob_sval, Py_SIZE(a)); in string_concat()
1068 Py_MEMCPY(op->ob_sval + Py_SIZE(a), b->ob_sval, Py_SIZE(b)); in string_concat()
1069 op->ob_sval[size] = '\0'; in string_concat()
1109 op->ob_sval[size] = '\0'; in string_repeat()
1111 memset(op->ob_sval, a->ob_sval[0] , n); in string_repeat()
1116 Py_MEMCPY(op->ob_sval, a->ob_sval, Py_SIZE(a)); in string_repeat()
1121 Py_MEMCPY(op->ob_sval+i, op->ob_sval, j); in string_repeat()
1147 return PyString_FromStringAndSize(a->ob_sval + i, j-i); in string_slice()
1178 pchar = a->ob_sval[i]; in string_item()
1218 && (a->ob_sval[0] == b->ob_sval[0] in string_richcompare()
1219 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0)) { in string_richcompare()
1229 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in string_richcompare()
1231 c = memcmp(a->ob_sval, b->ob_sval, min_len); in string_richcompare()
1259 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0; in _PyString_Eq()
1283 p = (unsigned char *) a->ob_sval; in string_hash()
1366 *ptr = (void *)self->ob_sval; in string_buffer_getreadbuf()
1394 *ptr = self->ob_sval; in string_buffer_getcharbuf()
1402 (void *)self->ob_sval, Py_SIZE(self), in string_buffer_getbuffer()
3588 return Py_BuildValue("(s#)", v->ob_sval, Py_SIZE(v)); in string_getnewargs()
3919 sv->ob_sval[newsize] = '\0'; in _PyString_Resize()