Searched refs:unicode_findchar (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_unicode.py | 2767 from _testcapi import unicode_findchar 2771 self.assertEqual(unicode_findchar(str, ord(ch), 0, len(str), 1), i) 2772 self.assertEqual(unicode_findchar(str, ord(ch), 0, len(str), -1), i) 2775 self.assertEqual(unicode_findchar(str, 0x110000, 0, len(str), 1), -1) 2776 self.assertEqual(unicode_findchar(str, 0x110000, 0, len(str), -1), -1) 2778 self.assertEqual(unicode_findchar(str, ord('!'), 1, len(str)+1, 1), 4) 2779 self.assertEqual(unicode_findchar(str, ord('!'), 1, len(str)+1, -1), 4) 2781 self.assertEqual(unicode_findchar(str, ord('!'), 0, 0, 1), -1) 2782 self.assertEqual(unicode_findchar(str, ord('!'), len(str), 0, 1), -1) 2784 self.assertEqual(unicode_findchar(str, ord('!'), -len(str), -1, 1), 0) [all …]
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1896 unicode_findchar(PyObject *self, PyObject *args) in unicode_findchar() function 4689 {"unicode_findchar", unicode_findchar, METH_VARARGS},
|