Lines Matching refs:unicode_findchar
2873 from _testcapi import unicode_findchar
2877 self.assertEqual(unicode_findchar(str, ord(ch), 0, len(str), 1), i)
2878 self.assertEqual(unicode_findchar(str, ord(ch), 0, len(str), -1), i)
2881 self.assertEqual(unicode_findchar(str, 0x110000, 0, len(str), 1), -1)
2882 self.assertEqual(unicode_findchar(str, 0x110000, 0, len(str), -1), -1)
2884 self.assertEqual(unicode_findchar(str, ord('!'), 1, len(str)+1, 1), 4)
2885 self.assertEqual(unicode_findchar(str, ord('!'), 1, len(str)+1, -1), 4)
2887 self.assertEqual(unicode_findchar(str, ord('!'), 0, 0, 1), -1)
2888 self.assertEqual(unicode_findchar(str, ord('!'), len(str), 0, 1), -1)
2890 self.assertEqual(unicode_findchar(str, ord('!'), -len(str), -1, 1), 0)
2891 self.assertEqual(unicode_findchar(str, ord('!'), -len(str), -1, -1), 0)