Lines Matching refs:PyUnicode_AsUTF8
706 return _PyUnicode_AsASCIIString(text, PyUnicode_AsUTF8(self->errors)); in ascii_encode()
713 PyUnicode_AsUTF8(self->errors), 1); in utf16be_encode()
720 PyUnicode_AsUTF8(self->errors), -1); in utf16le_encode()
735 PyUnicode_AsUTF8(self->errors), 0); in utf16_encode()
742 PyUnicode_AsUTF8(self->errors), 1); in utf32be_encode()
749 PyUnicode_AsUTF8(self->errors), -1); in utf32le_encode()
764 PyUnicode_AsUTF8(self->errors), 0); in utf32_encode()
770 return _PyUnicode_AsUTF8String(text, PyUnicode_AsUTF8(self->errors)); in utf8_encode()
776 return _PyUnicode_AsLatin1String(text, PyUnicode_AsUTF8(self->errors)); in latin1_encode()
1128 encoding = PyUnicode_AsUTF8(self->encoding); in _io_TextIOWrapper___init___impl()
1167 if (_textiowrapper_set_decoder(self, codec_info, PyUnicode_AsUTF8(errors)) != 0) in _io_TextIOWrapper___init___impl()
1171 if (_textiowrapper_set_encoder(self, codec_info, PyUnicode_AsUTF8(errors)) != 0) in _io_TextIOWrapper___init___impl()
1261 const char *c_errors = PyUnicode_AsUTF8(errors); in textiowrapper_change_encoding()
1268 PyUnicode_AsUTF8(encoding), "codecs.open()"); in textiowrapper_change_encoding()
1323 newline = PyUnicode_AsUTF8(newline_obj); in _io_TextIOWrapper_reconfigure_impl()