Searched refs:unicode_asutf8andsize (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_unicode.py | 2859 from _testcapi import unicode_asutf8andsize 2865 self.assertEqual(unicode_asutf8andsize(bmp), (b'\xc4\x80', 2)) 2866 self.assertEqual(unicode_asutf8andsize(bmp2), (b'\xef\xbf\xbf', 3)) 2867 self.assertEqual(unicode_asutf8andsize(nonbmp), (b'\xf4\x8f\xbf\xbf', 4)) 2868 self.assertRaises(UnicodeEncodeError, unicode_asutf8andsize, 'a\ud800b\udfffc')
|
/external/python/cpython3/Modules/ |
D | _testcapimodule.c | 1954 unicode_asutf8andsize(PyObject *self, PyObject *args) in unicode_asutf8andsize() function 5427 {"unicode_asutf8andsize", unicode_asutf8andsize, METH_VARARGS},
|