Home | History | Annotate | Download | only in Objects

Lines Matching defs:len1

9249     Py_ssize_t len1, len2, result;
9256 len1 = PyUnicode_GET_LENGTH(s1);
9258 ADJUST_INDICES(start, end, len1);
9284 result = asciilib_find_slice(buf1, len1, buf2, len2, start, end);
9286 result = ucs1lib_find_slice(buf1, len1, buf2, len2, start, end);
9289 result = ucs2lib_find_slice(buf1, len1, buf2, len2, start, end);
9292 result = ucs4lib_find_slice(buf1, len1, buf2, len2, start, end);
9302 result = asciilib_rfind_slice(buf1, len1, buf2, len2, start, end);
9304 result = ucs1lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9307 result = ucs2lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9310 result = ucs4lib_rfind_slice(buf1, len1, buf2, len2, start, end);
9416 Py_ssize_t len1, len2;
9426 len1 = PyUnicode_GET_LENGTH(str);
9428 ADJUST_INDICES(start, end, len1);
10247 Py_ssize_t len1, len2;
10289 len1 = PyUnicode_GET_LENGTH(self);
10291 if (kind1 < kind2 || len1 < len2) {
10311 self, buf1, len1, buf2, len2, maxcount);
10314 self, buf1, len1, buf2, len2, maxcount);
10318 self, buf1, len1, buf2, len2, maxcount);
10322 self, buf1, len1, buf2, len2, maxcount);
10339 Py_ssize_t len1, len2;
10381 len1 = PyUnicode_GET_LENGTH(self);
10383 if (kind1 < kind2 || len1 < len2) {
10403 self, buf1, len1, buf2, len2, maxcount);
10406 self, buf1, len1, buf2, len2, maxcount);
10410 self, buf1, len1, buf2, len2, maxcount);
10414 self, buf1, len1, buf2, len2, maxcount);
10425 anylib_find(int kind, PyObject *str1, void *buf1, Py_ssize_t len1,
10431 return asciilib_find(buf1, len1, buf2, len2, offset);
10433 return ucs1lib_find(buf1, len1, buf2, len2, offset);
10435 return ucs2lib_find(buf1, len1, buf2, len2, offset);
10437 return ucs4lib_find(buf1, len1, buf2, len2, offset);
10445 PyObject *str1, void *buf1, Py_ssize_t len1, Py_ssize_t maxcount)
10450 return asciilib_count(sbuf, slen, buf1, len1, maxcount);
10452 return ucs1lib_count(sbuf, slen, buf1, len1, maxcount);
10454 return ucs2lib_count(sbuf, slen, buf1, len1, maxcount);
10456 return ucs4lib_count(sbuf, slen, buf1, len1, maxcount);
10500 Py_ssize_t len1 = PyUnicode_GET_LENGTH(str1);
10524 if (len1 == len2) {
10526 if (len1 == 0)
10528 if (len1 == 1) {
10556 i = anylib_find(rkind, self, sbuf, slen, str1, buf1, len1, 0);
10588 i += len1;
10593 str1, buf1, len1, i);
10599 i += len1;
10615 n = anylib_count(rkind, self, sbuf, slen, str1, buf1, len1, maxcount);
10638 if (len1 < len2 && len2 - len1 > (PY_SSIZE_T_MAX - slen) / n) {
10643 new_size = slen + n * (len2 - len1);
10662 if (len1 > 0) {
10667 str1, buf1, len1, i);
10684 i = j + len1;
10871 Py_ssize_t len1, len2, len;
10877 len1 = PyUnicode_GET_LENGTH(str1);
10879 len = Py_MIN(len1, len2);
10957 if (len1 == len2)
10959 if (len1 < len2)
11037 size_t len1 = (size_t)PyUnicode_GET_LENGTH(uni);
11041 len = Py_MIN(len1, len2);
11049 if (len1 > len2)
11051 if (len1 < len2)
11232 Py_ssize_t len1, len2;
11250 len1 = PyUnicode_GET_LENGTH(str);
11252 if (len1 < len2)
11258 result = findchar((const char *)buf1, kind1, len1, ch, 1) != -1;
11269 result = ucs1lib_find(buf1, len1, buf2, len2, 0) != -1;
11272 result = ucs2lib_find(buf1, len1, buf2, len2, 0) != -1;
11275 result = ucs4lib_find(buf1, len1, buf2, len2, 0) != -1;
11452 Py_ssize_t len1, len2, iresult;
11462 len1 = PyUnicode_GET_LENGTH(self);
11464 ADJUST_INDICES(start, end, len1);
12862 Py_ssize_t len1, len2;
12869 len1 = PyUnicode_GET_LENGTH(str_obj);
12871 if (kind1 < kind2 || len1 < len2) {
12892 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12894 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12897 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12900 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2);
12920 Py_ssize_t len1, len2;
12927 len1 = PyUnicode_GET_LENGTH(str_obj);
12929 if (kind1 < kind2 || len1 < len2) {
12950 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
12952 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
12955 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);
12958 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2);