UTF-32 big-endian encoding without BOM.
(obj, errors="strict")
| 527 | |
| 528 | |
| 529 | def utf_32_be_encode(obj, errors="strict"): |
| 530 | """UTF-32 big-endian encoding without BOM.""" |
| 531 | res = PyUnicode_EncodeUTF32(obj, len(obj), errors, "big") |
| 532 | res = bytes(res) |
| 533 | return res, len(obj) |
| 534 | |
| 535 | |
| 536 | def PyUnicode_DecodeUTF32Stateful(data, size, errors, byteorder="little", final=0): |
nothing calls this directly
no test coverage detected