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

Function utf_32_be_decode

Lib/_pycodecs.py:638–644  ·  view source on GitHub ↗

UTF-32 big-endian decoding without BOM.

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

Source from the content-addressed store, hash-verified

636
637
638def 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# ----------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected