• Home
  • Raw
  • Download

Lines Matching refs:Py_SIZE

793     return Py_SIZE(op);  in PyString_Size()
878 Py_ssize_t size = Py_SIZE(op); 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()
905 str_len = Py_SIZE(op); in string_print()
937 if (Py_SIZE(op) > (PY_SSIZE_T_MAX - 2)/4) { in PyString_Repr()
942 newsize = 2 + 4*Py_SIZE(op); in PyString_Repr()
956 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr()
957 !memchr(op->ob_sval, '"', Py_SIZE(op))) in PyString_Repr()
962 for (i = 0; i < Py_SIZE(op); i++) { in PyString_Repr()
1011 return PyString_FromStringAndSize(t->ob_sval, Py_SIZE(t)); in string_str()
1018 return Py_SIZE(a); in string_length()
1040 if ((Py_SIZE(a) == 0 || Py_SIZE(b) == 0) && in string_concat()
1042 if (Py_SIZE(a) == 0) { in string_concat()
1053 if (Py_SIZE(a) < 0 || Py_SIZE(b) < 0 || in string_concat()
1054 Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) { in string_concat()
1059 size = Py_SIZE(a) + Py_SIZE(b); in string_concat()
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()
1093 if (n && Py_SIZE(a) > PY_SSIZE_T_MAX / n) { in string_repeat()
1098 size = Py_SIZE(a) * n; in string_repeat()
1099 if (size == Py_SIZE(a) && PyString_CheckExact(a)) { in string_repeat()
1116 if (Py_SIZE(a) == 1 && n > 0) { in string_repeat()
1122 Py_MEMCPY(op->ob_sval, a->ob_sval, Py_SIZE(a)); in string_repeat()
1123 i = Py_SIZE(a); in string_repeat()
1144 if (j > Py_SIZE(a)) in string_slice()
1145 j = Py_SIZE(a); in string_slice()
1146 if (i == 0 && j == Py_SIZE(a) && PyString_CheckExact(a)) { in string_slice()
1180 if (i < 0 || i >= Py_SIZE(a)) { in string_item()
1223 if (Py_SIZE(a) == Py_SIZE(b) in string_richcompare()
1225 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0)) { in string_richcompare()
1232 len_a = Py_SIZE(a); len_b = Py_SIZE(b); in string_richcompare()
1264 return Py_SIZE(a) == Py_SIZE(b) in _PyString_Eq()
1265 && memcmp(a->ob_sval, b->ob_sval, Py_SIZE(a)) == 0; in _PyString_Eq()
1280 len = Py_SIZE(a); in string_hash()
1294 x ^= Py_SIZE(a); in string_hash()
1373 return Py_SIZE(self); in string_buffer_getreadbuf()
1388 *lenp = Py_SIZE(self); in string_buffer_getsegcount()
1401 return Py_SIZE(self); 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()
3915 Py_SIZE(sv) = newsize; in _PyString_Resize()
4841 immortal_size += Py_SIZE(s); in _Py_ReleaseInternedStrings()
4845 mortal_size += Py_SIZE(s); in _Py_ReleaseInternedStrings()