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

Function _decode_uXXXX

Lib/json/decoder.py:74–82  ·  view source on GitHub ↗
(s, pos, _m=HEXDIGITS.match)

Source from the content-addressed store, hash-verified

72}
73
74def _decode_uXXXX(s, pos, _m=HEXDIGITS.match):
75 esc = _m(s, pos + 1)
76 if esc is not None:
77 try:
78 return int(esc.group(), 16)
79 except ValueError:
80 pass
81 msg = "Invalid \\uXXXX escape"
82 raise JSONDecodeError(msg, s, pos)
83
84def py_scanstring(s, end, strict=True,
85 _b=BACKSLASH, _m=STRINGCHUNK.match):

Callers 1

py_scanstringFunction · 0.85

Calls 2

JSONDecodeErrorClass · 0.85
groupMethod · 0.45

Tested by

no test coverage detected