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

Function hex_number_end

Lib/_pycodecs.py:1461–1465  ·  view source on GitHub ↗
(s, pos, digits)

Source from the content-addressed store, hash-verified

1459
1460
1461def hex_number_end(s, pos, digits):
1462 target_end = pos + digits
1463 while pos < target_end and pos < len(s) and s[pos] in hexdigits:
1464 pos += 1
1465 return pos
1466
1467
1468def hexescape(s, pos, digits, message, errors):

Callers 3

hexescapeFunction · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected