• Home
  • Raw
  • Download

Lines Matching refs:kind1

9719     int kind1, kind2;  in any_find_slice()  local
9723 kind1 = PyUnicode_KIND(s1); in any_find_slice()
9725 if (kind1 < kind2) in any_find_slice()
9738 result = findchar((const char *)buf1 + kind1*start, in any_find_slice()
9739 kind1, end - start, ch, direction); in any_find_slice()
9746 if (kind2 != kind1) { in any_find_slice()
9747 buf2 = unicode_askind(kind2, buf2, len2, kind1); in any_find_slice()
9753 switch (kind1) { in any_find_slice()
9771 switch (kind1) { in any_find_slice()
9789 assert((kind2 != kind1) == (buf2 != PyUnicode_DATA(s2))); in any_find_slice()
9790 if (kind2 != kind1) in any_find_slice()
9949 int kind1, kind2; in PyUnicode_Count() local
9956 kind1 = PyUnicode_KIND(str); in PyUnicode_Count()
9958 if (kind1 < kind2) in PyUnicode_Count()
9969 if (kind2 != kind1) { in PyUnicode_Count()
9970 buf2 = unicode_askind(kind2, buf2, len2, kind1); in PyUnicode_Count()
9975 switch (kind1) { in PyUnicode_Count()
10004 assert((kind2 != kind1) == (buf2 != PyUnicode_DATA(substr))); in PyUnicode_Count()
10005 if (kind2 != kind1) in PyUnicode_Count()
10010 assert((kind2 != kind1) == (buf2 != PyUnicode_DATA(substr))); in PyUnicode_Count()
10011 if (kind2 != kind1) in PyUnicode_Count()
10691 int kind1, kind2; in split() local
10732 kind1 = PyUnicode_KIND(self); in split()
10736 if (kind1 < kind2 || len1 < len2) { in split()
10746 if (kind2 != kind1) { in split()
10747 buf2 = unicode_askind(kind2, buf2, len2, kind1); in split()
10752 switch (kind1) { in split()
10772 assert((kind2 != kind1) == (buf2 != PyUnicode_DATA(substring))); in split()
10773 if (kind2 != kind1) in split()
10783 int kind1, kind2; in rsplit() local
10824 kind1 = PyUnicode_KIND(self); in rsplit()
10828 if (kind1 < kind2 || len1 < len2) { in rsplit()
10838 if (kind2 != kind1) { in rsplit()
10839 buf2 = unicode_askind(kind2, buf2, len2, kind1); in rsplit()
10844 switch (kind1) { in rsplit()
10864 assert((kind2 != kind1) == (buf2 != PyUnicode_DATA(substring))); in rsplit()
10865 if (kind2 != kind1) in rsplit()
10941 int kind1 = PyUnicode_KIND(str1); in replace() local
10980 u1 = PyUnicode_READ(kind1, buf1, 0); in replace()
10997 if (kind1 < rkind) { in replace()
10999 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11024 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11060 if (kind1 < rkind) { in replace()
11062 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11087 buf1 = unicode_askind(kind1, buf1, len1, rkind); in replace()
11342 int kind1, kind2; in unicode_compare() local
11346 kind1 = PyUnicode_KIND(str1); in unicode_compare()
11354 switch(kind1) { in unicode_compare()
11679 int kind1, kind2; in PyUnicode_Contains() local
11695 kind1 = PyUnicode_KIND(str); in PyUnicode_Contains()
11697 if (kind1 < kind2) in PyUnicode_Contains()
11707 result = findchar((const char *)buf1, kind1, len1, ch, 1) != -1; in PyUnicode_Contains()
11710 if (kind2 != kind1) { in PyUnicode_Contains()
11711 buf2 = unicode_askind(kind2, buf2, len2, kind1); in PyUnicode_Contains()
11716 switch (kind1) { in PyUnicode_Contains()
11730 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(substr))); in PyUnicode_Contains()
11731 if (kind2 != kind1) in PyUnicode_Contains()
11913 int kind1, kind2; in unicode_count() local
11920 kind1 = PyUnicode_KIND(self); in unicode_count()
11922 if (kind1 < kind2) in unicode_count()
11933 if (kind2 != kind1) { in unicode_count()
11934 buf2 = unicode_askind(kind2, buf2, len2, kind1); in unicode_count()
11938 switch (kind1) { in unicode_count()
11963 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(substring))); in unicode_count()
11964 if (kind2 != kind1) in unicode_count()
13510 int kind1, kind2; in PyUnicode_Partition() local
13517 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_Partition()
13521 if (kind1 < kind2 || len1 < len2) { in PyUnicode_Partition()
13527 if (kind2 != kind1) { in PyUnicode_Partition()
13528 buf2 = unicode_askind(kind2, buf2, len2, kind1); in PyUnicode_Partition()
13533 switch (kind1) { in PyUnicode_Partition()
13550 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(sep_obj))); in PyUnicode_Partition()
13551 if (kind2 != kind1) in PyUnicode_Partition()
13562 int kind1, kind2; in PyUnicode_RPartition() local
13569 kind1 = PyUnicode_KIND(str_obj); in PyUnicode_RPartition()
13573 if (kind1 < kind2 || len1 < len2) { in PyUnicode_RPartition()
13579 if (kind2 != kind1) { in PyUnicode_RPartition()
13580 buf2 = unicode_askind(kind2, buf2, len2, kind1); in PyUnicode_RPartition()
13585 switch (kind1) { in PyUnicode_RPartition()
13602 assert((kind2 == kind1) == (buf2 == PyUnicode_DATA(sep_obj))); in PyUnicode_RPartition()
13603 if (kind2 != kind1) in PyUnicode_RPartition()