• Home
  • Raw
  • Download

Lines Matching refs:rkind

10515             int rkind = skind;  in replace()  local
10519 if (kind1 < rkind) { in replace()
10521 buf1 = _PyUnicode_AsKind(str1, rkind); in replace()
10525 i = anylib_find(rkind, self, sbuf, slen, str1, buf1, len1, 0); in replace()
10528 if (rkind > kind2) { in replace()
10530 buf2 = _PyUnicode_AsKind(str2, rkind); in replace()
10534 else if (rkind < kind2) { in replace()
10536 rkind = kind2; in replace()
10539 sbuf = _PyUnicode_AsKind(self, rkind); in replace()
10542 buf1 = _PyUnicode_AsKind(str1, rkind); in replace()
10549 assert(PyUnicode_KIND(u) == rkind); in replace()
10552 memcpy(res, sbuf, rkind * slen); in replace()
10554 memcpy(res + rkind * i, in replace()
10556 rkind * len2); in replace()
10560 i = anylib_find(rkind, self, in replace()
10561 sbuf+rkind*i, slen-i, in replace()
10565 memcpy(res + rkind * i, in replace()
10567 rkind * len2); in replace()
10575 int rkind = skind; in replace() local
10578 if (kind1 < rkind) { in replace()
10580 buf1 = _PyUnicode_AsKind(str1, rkind); in replace()
10584 n = anylib_count(rkind, self, sbuf, slen, str1, buf1, len1, maxcount); in replace()
10587 if (kind2 < rkind) { in replace()
10589 buf2 = _PyUnicode_AsKind(str2, rkind); in replace()
10593 else if (kind2 > rkind) { in replace()
10595 rkind = kind2; in replace()
10596 sbuf = _PyUnicode_AsKind(self, rkind); in replace()
10601 buf1 = _PyUnicode_AsKind(str1, rkind); in replace()
10620 if (new_size > (PY_SSIZE_T_MAX / rkind)) { in replace()
10628 assert(PyUnicode_KIND(u) == rkind); in replace()
10634 j = anylib_find(rkind, self, in replace()
10635 sbuf + rkind * i, slen-i, in replace()
10641 memcpy(res + rkind * ires, in replace()
10642 sbuf + rkind * i, in replace()
10643 rkind * (j-i)); in replace()
10648 memcpy(res + rkind * ires, in replace()
10650 rkind * len2); in replace()
10657 memcpy(res + rkind * ires, in replace()
10658 sbuf + rkind * i, in replace()
10659 rkind * (slen-i)); in replace()
10664 memcpy(res + rkind * ires, in replace()
10666 rkind * len2); in replace()
10670 memcpy(res + rkind * ires, in replace()
10671 sbuf + rkind * i, in replace()
10672 rkind); in replace()
10676 memcpy(res + rkind * ires, in replace()
10677 sbuf + rkind * i, in replace()
10678 rkind * (slen-i)); in replace()