UTF-32 little-endian decoding without BOM.
(data, errors="strict", final=0)
| 627 | |
| 628 | |
| 629 | def utf_32_le_decode(data, errors="strict", final=0): |
| 630 | """UTF-32 little-endian decoding without BOM.""" |
| 631 | res, consumed, _ = PyUnicode_DecodeUTF32Stateful( |
| 632 | data, len(data), errors, "little", final |
| 633 | ) |
| 634 | res = "".join(res) |
| 635 | return res, consumed |
| 636 | |
| 637 | |
| 638 | def utf_32_be_decode(data, errors="strict", final=0): |
nothing calls this directly
no test coverage detected