Lines Matching defs:buf1
9393 const void *buf1, *buf2;
9407 buf1 = PyUnicode_DATA(s1);
9411 result = findchar((const char *)buf1 + kind1*start,
9429 result = asciilib_find_slice(buf1, len1, buf2, len2, start, end);
9431 result = ucs1lib_find_slice(buf1, len1, buf2, len2, start, end);
9434 result = ucs2lib_find_slice(buf1, len1, buf2, len2, start, end);
9437 result = ucs4lib_find_slice(buf1, len1, buf2, len2, start, end);
9447 result = asciilib_rfind_slice(buf1, len1, buf2, len2, start, end);
9449 result = ucs1lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9452 result = ucs2lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9455 result = ucs4lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9623 const void *buf1 = NULL, *buf2 = NULL;
9640 buf1 = PyUnicode_DATA(str);
9652 ((const Py_UCS1*)buf1) + start, end - start,
9657 ((const Py_UCS1*)buf1) + start, end - start,
9663 ((const Py_UCS2*)buf1) + start, end - start,
9669 ((const Py_UCS4*)buf1) + start, end - start,
10365 const void *buf1, *buf2;
10417 buf1 = PyUnicode_DATA(self);
10429 self, buf1, len1, buf2, len2, maxcount);
10432 self, buf1, len1, buf2, len2, maxcount);
10436 self, buf1, len1, buf2, len2, maxcount);
10440 self, buf1, len1, buf2, len2, maxcount);
10457 const void *buf1, *buf2;
10509 buf1 = PyUnicode_DATA(self);
10521 self, buf1, len1, buf2, len2, maxcount);
10524 self, buf1, len1, buf2, len2, maxcount);
10528 self, buf1, len1, buf2, len2, maxcount);
10532 self, buf1, len1, buf2, len2, maxcount);
10544 anylib_find(int kind, PyObject *str1, const void *buf1, Py_ssize_t len1,
10550 return asciilib_find(buf1, len1, buf2, len2, offset);
10552 return ucs1lib_find(buf1, len1, buf2, len2, offset);
10554 return ucs2lib_find(buf1, len1, buf2, len2, offset);
10556 return ucs4lib_find(buf1, len1, buf2, len2, offset);
10563 PyObject *str1, const void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
10568 return asciilib_count(sbuf, slen, buf1, len1, maxcount);
10570 return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
10572 return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
10574 return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
10610 const void *buf1 = PyUnicode_DATA(str1);
10653 u1 = PyUnicode_READ(kind1, buf1, 0);
10672 buf1 = unicode_askind(kind1, buf1, len1, rkind);
10673 if (!buf1) goto error;
10676 i = anylib_find(rkind, self, sbuf, slen, str1, buf1, len1, 0);
10686 /* widen self and buf1 */
10689 assert(buf1 != PyUnicode_DATA(str1));
10690 PyMem_Free((void *)buf1);
10691 buf1 = PyUnicode_DATA(str1);
10697 buf1 = unicode_askind(kind1, buf1, len1, rkind);
10698 if (!buf1) goto error;
10717 str1, buf1, len1, i);
10735 buf1 = unicode_askind(kind1, buf1, len1, rkind);
10736 if (!buf1) goto error;
10739 n = anylib_count(rkind, self, sbuf, slen, str1, buf1, len1, maxcount);
10749 /* widen self and buf1 */
10755 assert(buf1 != PyUnicode_DATA(str1));
10756 PyMem_Free((void *)buf1);
10757 buf1 = PyUnicode_DATA(str1);
10760 buf1 = unicode_askind(kind1, buf1, len1, rkind);
10761 if (!buf1) goto error;
10792 str1, buf1, len1, i);
10846 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10851 PyMem_Free((void *)buf1);
10860 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10865 PyMem_Free((void *)buf1);
10872 assert(release1 == (buf1 != PyUnicode_DATA(str1)));
10877 PyMem_Free((void *)buf1);
11365 const void *buf1, *buf2;
11388 buf1 = PyUnicode_DATA(str);
11392 result = findchar((const char *)buf1, kind1, len1, ch, 1) != -1;
11403 result = ucs1lib_find(buf1, len1, buf2, len2, 0) != -1;
11406 result = ucs2lib_find(buf1, len1, buf2, len2, 0) != -1;
11409 result = ucs4lib_find(buf1, len1, buf2, len2, 0) != -1;
11599 const void *buf1, *buf2;
11616 buf1 = PyUnicode_DATA(self);
11626 ((const Py_UCS1*)buf1) + start, end - start,
11632 ((const Py_UCS2*)buf1) + start, end - start,
11638 ((const Py_UCS4*)buf1) + start, end - start,
13196 const void *buf1, *buf2;
13210 buf1 = PyUnicode_DATA(str_obj);
13221 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13223 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13226 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13229 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
13248 const void *buf1, *buf2;
13262 buf1 = PyUnicode_DATA(str_obj);
13273 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13275 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13278 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
13281 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);