UTF-32 big-endian decoding without BOM.
(data, errors="strict", final=0)
| 636 | |
| 637 | |
| 638 | def utf_32_be_decode(data, errors="strict", final=0): |
| 639 | """UTF-32 big-endian decoding without BOM.""" |
| 640 | res, consumed, _ = PyUnicode_DecodeUTF32Stateful( |
| 641 | data, len(data), errors, "big", final |
| 642 | ) |
| 643 | res = "".join(res) |
| 644 | return res, consumed |
| 645 | |
| 646 | |
| 647 | # ---------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected