MCPcopy Index your code
hub / github.com/RustPython/RustPython / utf_32_le_decode

Function utf_32_le_decode

Lib/_pycodecs.py:629–635  ·  view source on GitHub ↗

UTF-32 little-endian decoding without BOM.

(data, errors="strict", final=0)

Source from the content-addressed store, hash-verified

627
628
629def 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
638def utf_32_be_decode(data, errors="strict", final=0):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected