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

Function utf_32_be_encode

Lib/_pycodecs.py:529–533  ·  view source on GitHub ↗

UTF-32 big-endian encoding without BOM.

(obj, errors="strict")

Source from the content-addressed store, hash-verified

527
528
529def 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
536def PyUnicode_DecodeUTF32Stateful(data, size, errors, byteorder="little", final=0):

Callers

nothing calls this directly

Calls 2

PyUnicode_EncodeUTF32Function · 0.85
lenFunction · 0.85

Tested by

no test coverage detected