• Home
  • Raw
  • Download

Lines Matching refs:len1

9721     Py_ssize_t len1, len2, result;  in any_find_slice()  local
9728 len1 = PyUnicode_GET_LENGTH(s1); in any_find_slice()
9730 ADJUST_INDICES(start, end, len1); in any_find_slice()
9756 result = asciilib_find_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9758 result = ucs1lib_find_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9761 result = ucs2lib_find_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9764 result = ucs4lib_find_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9774 result = asciilib_rfind_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9776 result = ucs1lib_rfind_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9779 result = ucs2lib_rfind_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9782 result = ucs4lib_rfind_slice(buf1, len1, buf2, len2, start, end); in any_find_slice()
9951 Py_ssize_t len1, len2; in PyUnicode_Count() local
9961 len1 = PyUnicode_GET_LENGTH(str); in PyUnicode_Count()
9963 ADJUST_INDICES(start, end, len1); in PyUnicode_Count()
10693 Py_ssize_t len1, len2; in split() local
10734 len1 = PyUnicode_GET_LENGTH(self); in split()
10736 if (kind1 < kind2 || len1 < len2) { in split()
10756 self, buf1, len1, buf2, len2, maxcount); in split()
10759 self, buf1, len1, buf2, len2, maxcount); in split()
10763 self, buf1, len1, buf2, len2, maxcount); in split()
10767 self, buf1, len1, buf2, len2, maxcount); in split()
10785 Py_ssize_t len1, len2; in rsplit() local
10826 len1 = PyUnicode_GET_LENGTH(self); in rsplit()
10828 if (kind1 < kind2 || len1 < len2) { in rsplit()
10848 self, buf1, len1, buf2, len2, maxcount); in rsplit()
10851 self, buf1, len1, buf2, len2, maxcount); in rsplit()
10855 self, buf1, len1, buf2, len2, maxcount); in rsplit()
10859 self, buf1, len1, buf2, len2, maxcount); in rsplit()
10871 anylib_find(int kind, PyObject *str1, const void *buf1, Py_ssize_t len1, in anylib_find() argument
10877 return asciilib_find(buf1, len1, buf2, len2, offset); in anylib_find()
10879 return ucs1lib_find(buf1, len1, buf2, len2, offset); in anylib_find()
10881 return ucs2lib_find(buf1, len1, buf2, len2, offset); in anylib_find()
10883 return ucs4lib_find(buf1, len1, buf2, len2, offset); in anylib_find()
10890 PyObject *str1, const void *buf1, Py_ssize_t len1, Py_ssize_t maxcount) in anylib_count() argument
10895 return asciilib_count(sbuf, slen, buf1, len1, maxcount); in anylib_count()
10897 return ucs1lib_count(sbuf, slen, buf1, len1, maxcount); in anylib_count()
10899 return ucs2lib_count(sbuf, slen, buf1, len1, maxcount); in anylib_count()
10901 return ucs4lib_count(sbuf, slen, buf1, len1, maxcount); in anylib_count()
10944 Py_ssize_t len1 = PyUnicode_GET_LENGTH(str1); in replace() local
10949 if (slen < len1) in replace()
10971 if (len1 == len2) { in replace()
10973 if (len1 == 0) in replace()
10975 if (len1 == 1) { in replace()
10999 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11003 i = anylib_find(rkind, self, sbuf, slen, str1, buf1, len1, 0); in replace()
11024 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11039 i += len1; in replace()
11044 str1, buf1, len1, i); in replace()
11050 i += len1; in replace()
11062 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11066 n = anylib_count(rkind, self, sbuf, slen, str1, buf1, len1, maxcount); in replace()
11087 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11093 if (len1 < len2 && len2 - len1 > (PY_SSIZE_T_MAX - slen) / n) { in replace()
11098 new_size = slen + n * (len2 - len1); in replace()
11114 if (len1 > 0) { in replace()
11119 str1, buf1, len1, i); in replace()
11136 i = j + len1; in replace()
11344 Py_ssize_t len1, len2, len; in unicode_compare() local
11350 len1 = PyUnicode_GET_LENGTH(str1); in unicode_compare()
11352 len = Py_MIN(len1, len2); in unicode_compare()
11430 if (len1 == len2) in unicode_compare()
11432 if (len1 < len2) in unicode_compare()
11510 size_t len1 = (size_t)PyUnicode_GET_LENGTH(uni); in PyUnicode_CompareWithASCIIString() local
11514 len = Py_MIN(len1, len2); in PyUnicode_CompareWithASCIIString()
11522 if (len1 > len2) in PyUnicode_CompareWithASCIIString()
11524 if (len1 < len2) in PyUnicode_CompareWithASCIIString()
11681 Py_ssize_t len1, len2; in PyUnicode_Contains() local
11699 len1 = PyUnicode_GET_LENGTH(str); in PyUnicode_Contains()
11701 if (len1 < len2) in PyUnicode_Contains()
11707 result = findchar((const char *)buf1, kind1, len1, ch, 1) != -1; in PyUnicode_Contains()
11718 result = ucs1lib_find(buf1, len1, buf2, len2, 0) != -1; in PyUnicode_Contains()
11721 result = ucs2lib_find(buf1, len1, buf2, len2, 0) != -1; in PyUnicode_Contains()
11724 result = ucs4lib_find(buf1, len1, buf2, len2, 0) != -1; in PyUnicode_Contains()
11915 Py_ssize_t len1, len2, iresult; in unicode_count() local
11925 len1 = PyUnicode_GET_LENGTH(self); in unicode_count()
11927 ADJUST_INDICES(start, end, len1); in unicode_count()
13512 Py_ssize_t len1, len2; in PyUnicode_Partition() local
13519 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_Partition()
13521 if (kind1 < kind2 || len1 < len2) { in PyUnicode_Partition()
13536 out = asciilib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13538 out = ucs1lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13541 out = ucs2lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13544 out = ucs4lib_partition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_Partition()
13564 Py_ssize_t len1, len2; in PyUnicode_RPartition() local
13571 len1 = PyUnicode_GET_LENGTH(str_obj); in PyUnicode_RPartition()
13573 if (kind1 < kind2 || len1 < len2) { in PyUnicode_RPartition()
13588 out = asciilib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13590 out = ucs1lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13593 out = ucs2lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()
13596 out = ucs4lib_rpartition(str_obj, buf1, len1, sep_obj, buf2, len2); in PyUnicode_RPartition()