• Home
  • Raw
  • Download

Lines Matching refs:kind1

9251     int kind1, kind2;  in any_find_slice()  local
9255 kind1 = PyUnicode_KIND(s1); in any_find_slice()
9257 if (kind1 < kind2) in any_find_slice()
9270 result = findchar((const char *)buf1 + kind1*start, in any_find_slice()
9271 kind1, end - start, ch, direction); in any_find_slice()
9278 if (kind2 != kind1) { in any_find_slice()
9279 buf2 = _PyUnicode_AsKind(s2, kind1); in any_find_slice()
9285 switch (kind1) { in any_find_slice()
9303 switch (kind1) { in any_find_slice()
9321 if (kind2 != kind1) in any_find_slice()
9480 int kind1, kind2; in PyUnicode_Count() local
9487 kind1 = PyUnicode_KIND(str); in PyUnicode_Count()
9489 if (kind1 < kind2) in PyUnicode_Count()
9500 if (kind2 != kind1) { in PyUnicode_Count()
9501 buf2 = _PyUnicode_AsKind(substr, kind1); in PyUnicode_Count()
9506 switch (kind1) { in PyUnicode_Count()
9535 if (kind2 != kind1) in PyUnicode_Count()
9540 if (kind2 != kind1 && buf2) in PyUnicode_Count()
10218 int kind1, kind2; in split() local
10259 kind1 = PyUnicode_KIND(self); in split()
10263 if (kind1 < kind2 || len1 < len2) { in split()
10273 if (kind2 != kind1) { in split()
10274 buf2 = _PyUnicode_AsKind(substring, kind1); in split()
10279 switch (kind1) { in split()
10299 if (kind2 != kind1) in split()
10309 int kind1, kind2; in rsplit() local
10350 kind1 = PyUnicode_KIND(self); in rsplit()
10354 if (kind1 < kind2 || len1 < len2) { in rsplit()
10364 if (kind2 != kind1) { in rsplit()
10365 buf2 = _PyUnicode_AsKind(substring, kind1); in rsplit()
10370 switch (kind1) { in rsplit()
10390 if (kind2 != kind1) in rsplit()
10466 int kind1 = PyUnicode_KIND(str1); in replace() local
10502 u1 = PyUnicode_READ(kind1, buf1, 0); in replace()
10519 if (kind1 < rkind) { in replace()
10578 if (kind1 < rkind) { in replace()
10850 int kind1, kind2; in unicode_compare() local
10854 kind1 = PyUnicode_KIND(str1); in unicode_compare()
10862 switch(kind1) { in unicode_compare()
11185 int kind1, kind2; in PyUnicode_Contains() local
11201 kind1 = PyUnicode_KIND(str); in PyUnicode_Contains()
11203 if (kind1 < kind2) in PyUnicode_Contains()
11213 result = findchar((const char *)buf1, kind1, len1, ch, 1) != -1; in PyUnicode_Contains()
11216 if (kind2 != kind1) { in PyUnicode_Contains()
11217 buf2 = _PyUnicode_AsKind(substr, kind1); in PyUnicode_Contains()
11222 switch (kind1) { in PyUnicode_Contains()
11236 if (kind2 != kind1) in PyUnicode_Contains()
11413 int kind1, kind2; in unicode_count() local
11420 kind1 = PyUnicode_KIND(self); in unicode_count()
11422 if (kind1 < kind2) in unicode_count()
11433 if (kind2 != kind1) { in unicode_count()
11434 buf2 = _PyUnicode_AsKind(substring, kind1); in unicode_count()
11438 switch (kind1) { in unicode_count()
11463 if (kind2 != kind1) in unicode_count()
12908 int kind1, kind2; in PyUnicode_Partition() local
12915 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition()
12919 if (kind1 < kind2 || len1 < len2) { in PyUnicode_Partition()
12931 if (kind2 != kind1) { in PyUnicode_Partition()
12932 buf2 = _PyUnicode_AsKind(sep_obj, kind1); in PyUnicode_Partition()
12937 switch (kind1) { in PyUnicode_Partition()
12954 if (kind2 != kind1) in PyUnicode_Partition()
12965 int kind1, kind2; in PyUnicode_RPartition() local
12972 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_RPartition()
12976 if (kind1 < kind2 || len1 < len2) { in PyUnicode_RPartition()
12988 if (kind2 != kind1) { in PyUnicode_RPartition()
12989 buf2 = _PyUnicode_AsKind(sep_obj, kind1); in PyUnicode_RPartition()
12994 switch (kind1) { in PyUnicode_RPartition()
13011 if (kind2 != kind1) in PyUnicode_RPartition()