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

Function PyUnicode_DecodeLatin1

Lib/_pycodecs.py:1401–1410  ·  view source on GitHub ↗
(s, size, errors)

Source from the content-addressed store, hash-verified

1399
1400
1401def PyUnicode_DecodeLatin1(s, size, errors):
1402 # /* Latin-1 is equivalent to the first 256 ordinals in Unicode. */
1403 ## if (size == 1):
1404 ## return [PyUnicode_FromUnicode(s, 1)]
1405 pos = 0
1406 p = []
1407 while pos < size:
1408 p += chr(s[pos])
1409 pos += 1
1410 return p
1411
1412
1413def unicode_encode_ucs1(p, size, errors, limit):

Callers 2

latin_1_decodeFunction · 0.85
PyUnicode_DecodeCharmapFunction · 0.85

Calls 1

chrFunction · 0.85

Tested by

no test coverage detected