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

Function utf_16_decode

Lib/_pycodecs.py:154–163  ·  view source on GitHub ↗

None

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

Source from the content-addressed store, hash-verified

152
153
154def utf_16_decode(data, errors="strict", final=False):
155 """None"""
156 consumed = len(data)
157 if final:
158 consumed = 0
159 res, consumed, byteorder = PyUnicode_DecodeUTF16Stateful(
160 data, len(data), errors, "native", final
161 )
162 res = "".join(res)
163 return res, consumed
164
165
166def unicode_escape_decode(data, errors="strict", final=True):

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected